亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? mailer.py

?? subversion-1.4.5.tar.gz 配置svn的源碼
?? PY
?? 第 1 頁 / 共 3 頁
字號:
class TextCommitRenderer:  "This class will render the commit mail in plain text."  def __init__(self, output):    self.output = output  def render(self, data):    "Render the commit defined by 'data'."    w = self.output.write    w('Author: %s\nDate: %s\nNew Revision: %s\n' % (data.author,                                                      data.date,                                                      data.rev))    if data.commit_url:      w('URL: %s\n\n' % data.commit_url)    else:      w('\n')    w('Log:\n%s\n\n' % data.log)    # print summary sections    self._render_list('Added', data.added_data)    self._render_list('Removed', data.removed_data)    self._render_list('Modified', data.modified_data)    if data.other_added_data or data.other_removed_data \           or data.other_modified_data:      if data.show_nonmatching_paths:        w('\nChanges in other areas also in this revision:\n')        self._render_list('Added', data.other_added_data)        self._render_list('Removed', data.other_removed_data)        self._render_list('Modified', data.other_modified_data)      else:        w('and changes in other areas\n')    self._render_diffs(data.diffs, '')    if data.other_diffs:      self._render_diffs(data.other_diffs,                         '\nDiffs of changes in other areas also'                         ' in this revision:\n')  def _render_list(self, header, data_list):    if not data_list:      return    w = self.output.write    w(header + ':\n')    for d in data_list:      if d.is_dir:        is_dir = '/'      else:        is_dir = ''      if d.props_changed:        if d.text_changed:          props = '   (contents, props changed)'        else:          props = '   (props changed)'      else:        props = ''      w('   %s%s%s\n' % (d.path, is_dir, props))      if d.copied:        if is_dir:          text = ''        elif d.text_changed:          text = ', changed'        else:          text = ' unchanged'        w('      - copied%s from r%d, %s%s\n'          % (text, d.base_rev, d.base_path, is_dir))  def _render_diffs(self, diffs, section_header):    """Render diffs. Write the SECTION_HEADER iff there are actually    any diffs to render."""    w = self.output.write    section_header_printed = False    for diff in diffs:      if not diff.diff and not diff.diff_url:        continue      if not section_header_printed:        w(section_header)        section_header_printed = True      if diff.kind == 'D':        w('\nDeleted: %s\n' % diff.base_path)      elif diff.kind == 'C':        w('\nCopied: %s (from r%d, %s)\n'          % (diff.path, diff.base_rev, diff.base_path))      elif diff.kind == 'A':        w('\nAdded: %s\n' % diff.path)      else:        # kind == 'M'        w('\nModified: %s\n' % diff.path)      if diff.diff_url:        w('URL: %s\n' % diff.diff_url)      if not diff.diff:        continue      w(SEPARATOR + '\n')      if diff.binary:        if diff.singular:          w('Binary file. No diff available.\n')        else:          w('Binary files. No diff available.\n')        continue      for line in diff.content:        w(line.raw)class Repository:  "Hold roots and other information about the repository."  def __init__(self, repos_dir, rev, pool):    self.repos_dir = repos_dir    self.rev = rev    self.pool = pool    self.repos_ptr = svn.repos.open(repos_dir, pool)    self.fs_ptr = svn.repos.fs(self.repos_ptr)    self.roots = { }    self.root_this = self.get_root(rev)    self.author = self.get_rev_prop(svn.core.SVN_PROP_REVISION_AUTHOR)  def get_rev_prop(self, propname):    return svn.fs.revision_prop(self.fs_ptr, self.rev, propname, self.pool)  def get_root(self, rev):    try:      return self.roots[rev]    except KeyError:      pass    root = self.roots[rev] = svn.fs.revision_root(self.fs_ptr, rev, self.pool)    return rootclass Config:  # The predefined configuration sections. These are omitted from the  # set of groups.  _predefined = ('general', 'defaults', 'maps')  def __init__(self, fname, repos, global_params):    cp = ConfigParser.ConfigParser()    cp.read(fname)    # record the (non-default) groups that we find    self._groups = [ ]    for section in cp.sections():      if not hasattr(self, section):        section_ob = _sub_section()        setattr(self, section, section_ob)        if section not in self._predefined:          self._groups.append(section)      else:        section_ob = getattr(self, section)      for option in cp.options(section):        # get the raw value -- we use the same format for *our* interpolation        value = cp.get(section, option, raw=1)        setattr(section_ob, option, value)    # be compatible with old format config files    if hasattr(self.general, 'diff') and not hasattr(self.defaults, 'diff'):      self.defaults.diff = self.general.diff    if not hasattr(self, 'maps'):      self.maps = _sub_section()    # these params are always available, although they may be overridden    self._global_params = global_params.copy()    # prepare maps. this may remove sections from consideration as a group.    self._prep_maps()    # process all the group sections.    self._prep_groups(repos)  def is_set(self, option):    """Return None if the option is not set; otherwise, its value is returned.    The option is specified as a dotted symbol, such as 'general.mail_command'    """    ob = self    for part in string.split(option, '.'):      if not hasattr(ob, part):        return None      ob = getattr(ob, part)    return ob  def get(self, option, group, params):    "Get a config value with appropriate substitutions and value mapping."    # find the right value    value = None    if group:      sub = getattr(self, group)      value = getattr(sub, option, None)    if value is None:      value = getattr(self.defaults, option, '')    # parameterize it    if params is not None:      value = value % params    # apply any mapper    mapper = getattr(self.maps, option, None)    if mapper is not None:      value = mapper(value)      # Apply any parameters that may now be available for      # substitution that were not before the mapping.      if value is not None and params is not None:        value = value % params    return value  def get_diff_cmd(self, group, args):    "Get a diff command as a list of argv elements."    ### do some better splitting to enable quoting of spaces    diff_cmd = string.split(self.get('diff', group, None))    cmd = [ ]    for part in diff_cmd:      cmd.append(part % args)    return cmd  def _prep_maps(self):    "Rewrite the [maps] options into callables that look up values."    mapsections = []    for optname, mapvalue in vars(self.maps).items():      if mapvalue[:1] == '[':        # a section is acting as a mapping        sectname = mapvalue[1:-1]        if not hasattr(self, sectname):          raise UnknownMappingSection(sectname)        # construct a lambda to look up the given value as an option name,        # and return the option's value. if the option is not present,        # then just return the value unchanged.        setattr(self.maps, optname,                lambda value,                       sect=getattr(self, sectname): getattr(sect, value,                                                             value))        # mark for removal when all optnames are done        if sectname not in mapsections:          mapsections.append(sectname)      # elif test for other mapper types. possible examples:      #   dbm:filename.db      #   file:two-column-file.txt      #   ldap:some-query-spec      # just craft a mapper function and insert it appropriately      else:        raise UnknownMappingSpec(mapvalue)    # remove each mapping section from consideration as a group    for sectname in mapsections:      self._groups.remove(sectname)  def _prep_groups(self, repos):    self._group_re = [ ]    repos_dir = os.path.abspath(repos.repos_dir)    # compute the default repository-based parameters. start with some    # basic parameters, then bring in the regex-based params.    self._default_params = self._global_params    try:      match = re.match(self.defaults.for_repos, repos_dir)      if match:        self._default_params = self._default_params.copy()        self._default_params.update(match.groupdict())    except AttributeError:      # there is no self.defaults.for_repos      pass    # select the groups that apply to this repository    for group in self._groups:      sub = getattr(self, group)      params = self._default_params      if hasattr(sub, 'for_repos'):        match = re.match(sub.for_repos, repos_dir)        if not match:          continue        params = params.copy()        params.update(match.groupdict())      # if a matching rule hasn't been given, then use the empty string      # as it will match all paths      for_paths = getattr(sub, 'for_paths', '')      exclude_paths = getattr(sub, 'exclude_paths', None)      if exclude_paths:        exclude_paths_re = re.compile(exclude_paths)      else:        exclude_paths_re = None      self._group_re.append((group, re.compile(for_paths),                             exclude_paths_re, params))    # after all the groups are done, add in the default group    try:      self._group_re.append((None,                             re.compile(self.defaults.for_paths),                             None,                             self._default_params))    except AttributeError:      # there is no self.defaults.for_paths      pass  def which_groups(self, path):    "Return the path's associated groups."    groups = []    for group, pattern, exclude_pattern, repos_params in self._group_re:      match = pattern.match(path)      if match:        if exclude_pattern and exclude_pattern.match(path):          continue        params = repos_params.copy()        params.update(match.groupdict())        groups.append((group, params))    if not groups:      groups.append((None, self._default_params))    return groupsclass _sub_section:  passclass _data:  "Helper class to define an attribute-based hunk o' data."  def __init__(self, **kw):    vars(self).update(kw)class MissingConfig(Exception):  passclass UnknownMappingSection(Exception):  passclass UnknownMappingSpec(Exception):  passclass UnknownSubcommand(Exception):  pass# enable True/False in older vsns of Pythontry:  _unused = Trueexcept NameError:  True = 1  False = 0if __name__ == '__main__':  def usage():    scriptname = os.path.basename(sys.argv[0])    sys.stderr.write("""USAGE: %s commit      REPOS REVISION [CONFIG-FILE]       %s propchange  REPOS REVISION AUTHOR REVPROPNAME [CONFIG-FILE]       %s propchange2 REPOS REVISION AUTHOR REVPROPNAME ACTION [CONFIG-FILE]       %s lock        REPOS AUTHOR [CONFIG-FILE]       %s unlock      REPOS AUTHOR [CONFIG-FILE]If no CONFIG-FILE is provided, the script will first search for a mailer.conffile in REPOS/conf/.  Failing that, it will search the directory in whichthe script itself resides.ACTION was added as a fifth argument to the post-revprop-change hookin Subversion 1.2.0.  Its value is one of 'A', 'M' or 'D' to indicateif the property was added, modified or deleted, respectively.""" % (scriptname, scriptname, scriptname, scriptname, scriptname))    sys.exit(1)  # Command list:  subcommand -> number of arguments expected (not including  #                              the repository directory and config-file)  cmd_list = {'commit'     : 1,              'propchange' : 3,              'propchange2': 4,              'lock'       : 1,              'unlock'     : 1,              }  config_fname = None  argc = len(sys.argv)  if argc < 3:    usage()  cmd = sys.argv[1]  repos_dir = svn.core.svn_path_canonicalize(sys.argv[2])  try:    expected_args = cmd_list[cmd]  except KeyError:    usage()  if argc < (expected_args + 3):    usage()  elif argc > expected_args + 4:    usage()  elif argc == (expected_args + 4):    config_fname = sys.argv[expected_args + 3]  # Settle on a config file location, and open it.  if config_fname is None:    # Default to REPOS-DIR/conf/mailer.conf.    config_fname = os.path.join(repos_dir, 'conf', 'mailer.conf')    if not os.path.exists(config_fname):      # Okay.  Look for 'mailer.conf' as a sibling of this script.      config_fname = os.path.join(os.path.dirname(sys.argv[0]), 'mailer.conf')  if not os.path.exists(config_fname):    raise MissingConfig(config_fname)  svn.core.run_app(main, cmd, config_fname, repos_dir,                   sys.argv[3:3+expected_args])# ------------------------------------------------------------------------# TODO## * add configuration options#   - each group defines delivery info:#     o whether to set Reply-To and/or Mail-Followup-To#       (btw: it is legal do set Reply-To since this is the originator of the#        mail; i.e. different from MLMs that munge it)#   - each group defines content construction:#     o max size of diff before trimming#     o max size of entire commit message before truncation#   - per-repository configuration#     o extra config living in repos#     o optional, non-mail log file#     o look up authors (username -> email; for the From: header) in a#       file(s) or DBM# * get rid of global functions that should properly be class methods

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩中文字幕精品| 欧美精品一区在线观看| 色一情一乱一乱一91av| 91精品国产91久久综合桃花| 久久久午夜精品理论片中文字幕| 2021国产精品久久精品| 亚洲国产日韩在线一区模特| 国内成人自拍视频| 国产真实乱对白精彩久久| 国产精品第五页| 日韩综合一区二区| 欧美唯美清纯偷拍| 中文字幕一区二区三| 丁香婷婷综合五月| 日韩欧美二区三区| 国产一区欧美一区| 久久综合久久鬼色中文字| 在线91免费看| 欧美aaa在线| 日韩一区二区三区视频在线| 丝袜亚洲精品中文字幕一区| 亚洲精品高清在线| 色婷婷av一区二区三区大白胸| 国产成人激情av| 亚洲天堂福利av| 久久久综合激的五月天| 日韩午夜在线观看| 91精品国产乱| 欧美一区二区三区在线观看| 欧美视频中文一区二区三区在线观看 | 精品国一区二区三区| 91精品国产色综合久久不卡蜜臀| 欧美三级电影网站| 欧美日韩在线综合| 日韩精品一区二区三区中文不卡 | 亚洲欧美日韩国产手机在线| 91麻豆国产福利在线观看| 亚洲资源中文字幕| 欧美激情一区二区三区四区| 在线视频综合导航| 成人在线视频一区| 奇米色一区二区| 国产高清在线观看免费不卡| 97国产一区二区| 亚洲777理论| 一区2区3区在线看| 亚洲同性gay激情无套| 日本sm残虐另类| 成人性视频免费网站| 欧美日韩国产一级二级| 99天天综合性| 91免费看视频| 欧美激情艳妇裸体舞| 偷拍自拍另类欧美| 日韩中文字幕亚洲一区二区va在线 | 日韩高清一区二区| 日韩精品一二区| 欧美视频一区在线观看| 国产精品三级av| 亚洲国产成人在线| 国产一区欧美日韩| 麻豆一区二区三| 国产精品国产三级国产普通话三级| 亚洲最新在线观看| 91同城在线观看| 亚洲精品视频在线看| 成人精品在线视频观看| 国产亚洲综合在线| 亚洲素人一区二区| 日韩av一区二区三区四区| 色哦色哦哦色天天综合| 一区二区三区中文字幕精品精品| 国产麻豆91精品| 中文幕一区二区三区久久蜜桃| 麻豆精品视频在线观看视频| 日韩一区二区免费高清| 国产原创一区二区三区| 国产亚洲人成网站| 丁香六月久久综合狠狠色| 国产欧美一区二区精品仙草咪| 综合电影一区二区三区 | 日本精品免费观看高清观看| 在线观看网站黄不卡| 亚洲午夜三级在线| 欧美日韩性生活| 日本不卡一区二区| 久久精品视频一区| 色噜噜偷拍精品综合在线| 亚洲国产cao| 国产欧美日韩另类一区| 欧美日韩视频在线观看一区二区三区 | 蜜臀av性久久久久蜜臀av麻豆| 精品国产髙清在线看国产毛片 | 欧美日韩一本到| 成人国产精品视频| 国产欧美一区二区精品婷婷| 91精品福利视频| 99久久亚洲一区二区三区青草| 亚洲超丰满肉感bbw| 亚洲人精品午夜| 欧美成人一区二区三区片免费| 亚洲国产精品久久久男人的天堂 | 日韩精品一区二区三区在线播放| 北条麻妃国产九九精品视频| 免费精品视频最新在线| 日本不卡一区二区三区高清视频| 国产精品久久99| 欧美高清在线精品一区| 久久久久久久性| 精品国产乱码久久久久久影片| 欧美亚洲丝袜传媒另类| 欧美视频你懂的| 欧美人体做爰大胆视频| 在线成人高清不卡| 国产资源在线一区| 国产精品一区二区91| 国产精品传媒入口麻豆| 国产精品久久久久久久久晋中 | 蜜桃久久久久久久| 久久成人免费网站| 国产精品第四页| 日韩激情中文字幕| 久久爱另类一区二区小说| 国产1区2区3区精品美女| 暴力调教一区二区三区| 欧美日韩免费在线视频| 精品久久久久久久久久久久久久久久久| 欧洲视频一区二区| 欧美一区二区三区免费| 欧美xxxx老人做受| 亚洲欧美日韩在线播放| 亚洲一区二区三区中文字幕在线| 亚洲黄色小视频| 国产99久久久国产精品潘金网站| 日本欧美加勒比视频| 国产精品久久久久影院| 一区二区三区在线不卡| 亚洲成av人影院| 在线精品视频一区二区三四 | 欧美日韩国产精品自在自线| 制服丝袜中文字幕亚洲| 欧美国产日本韩| 日韩一区精品视频| 欧美日韩综合一区| 国产欧美日韩另类一区| 美女视频一区在线观看| 日本道色综合久久| 亚洲视频一区二区在线| 精品一区二区三区免费毛片爱| 国产香蕉久久精品综合网| 免费看黄色91| 欧美一区二区三区不卡| 亚洲女女做受ⅹxx高潮| 99久久99久久精品免费观看| 久久午夜国产精品| 精品伊人久久久久7777人| 欧美一三区三区四区免费在线看 | 国产馆精品极品| 中文字幕国产一区| 韩国女主播一区| 亚洲天堂久久久久久久| 色综合视频在线观看| 亚洲视频在线观看一区| 91极品视觉盛宴| 亚洲成a人v欧美综合天堂下载| 91福利小视频| 亚洲午夜视频在线| 久久久www成人免费毛片麻豆| 高清成人在线观看| 国产精品国产三级国产aⅴ无密码 国产精品国产三级国产aⅴ原创 | 午夜国产精品影院在线观看| 欧美大片日本大片免费观看| 国产91在线|亚洲| 亚洲大尺度视频在线观看| 欧美精品一区二区三区在线| 丁香一区二区三区| 免费在线观看视频一区| 欧美电视剧免费观看| 暴力调教一区二区三区| 偷拍一区二区三区| 亚洲欧美偷拍另类a∨色屁股| 欧美系列日韩一区| 99这里都是精品| 精品一区二区免费在线观看| 亚洲欧洲日韩在线| 精品国产成人系列| 欧洲激情一区二区| 97久久精品人人澡人人爽| 蜜臀久久99精品久久久画质超高清| 国产精品久久久久久户外露出 | 91麻豆文化传媒在线观看| 婷婷中文字幕一区三区| 亚洲成a人v欧美综合天堂下载 | 日韩电影在线一区二区三区| 中文在线一区二区| 久久午夜国产精品| 精品久久久久久久人人人人传媒| 色婷婷久久久综合中文字幕 | 成人一区在线看| 国精品**一区二区三区在线蜜桃|