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

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

?? mailer.py

?? subversion-1.4.3-1.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一区二区三区免费野_久草精品视频
欧美国产欧美亚州国产日韩mv天天看完整| 麻豆传媒一区二区三区| 亚洲成人午夜电影| 免费看黄色91| 国产v综合v亚洲欧| 欧美综合一区二区三区| 精品欧美一区二区在线观看 | 免费观看日韩电影| 国产美女在线观看一区| 色婷婷av一区二区三区大白胸| 欧美一二三四在线| 国产精品成人免费 | 2017欧美狠狠色| 亚洲免费观看高清完整版在线| 日本 国产 欧美色综合| 99亚偷拍自图区亚洲| 日韩欧美国产综合在线一区二区三区| 中文字幕不卡在线播放| 日韩不卡一区二区| 不卡电影一区二区三区| 91精品国产综合久久福利软件| 国产欧美一区二区三区鸳鸯浴 | 日韩一级在线观看| 国产精品乡下勾搭老头1| 中文字幕亚洲电影| 日韩和的一区二区| 成人黄色av电影| 欧美一区二区视频在线观看2020| 国产精品九色蝌蚪自拍| 麻豆国产精品一区二区三区 | 亚洲高清三级视频| 懂色av中文字幕一区二区三区| 欧美自拍丝袜亚洲| 国产精品美女久久福利网站| 蜜桃av一区二区在线观看| 色婷婷久久久综合中文字幕| 国产欧美日韩久久| 精品亚洲成a人| 欧美日韩国产片| 亚洲精选免费视频| 高清免费成人av| 日韩欧美一二三区| 婷婷久久综合九色综合绿巨人| 91啪亚洲精品| 中文字幕在线一区二区三区| 国产在线国偷精品产拍免费yy| 欧美久久婷婷综合色| 亚洲男人的天堂在线aⅴ视频| 成人黄色av电影| 国产色婷婷亚洲99精品小说| 国产做a爰片久久毛片| 日韩亚洲欧美综合| 肉丝袜脚交视频一区二区| 色婷婷亚洲综合| 亚洲精品乱码久久久久久黑人| 成人av电影观看| 亚洲国产精华液网站w| 国内精品久久久久影院薰衣草 | 国产精品亚洲一区二区三区在线 | 国产成人av福利| 精品成人佐山爱一区二区| 麻豆专区一区二区三区四区五区| 在线播放中文字幕一区| 亚洲h动漫在线| 欧美三片在线视频观看| 亚洲成人中文在线| 欧美日韩综合在线| 亚洲成人福利片| 欧美理论在线播放| 偷拍日韩校园综合在线| 欧美色精品天天在线观看视频| 亚洲黄色性网站| 91福利在线看| 亚洲成人动漫一区| 欧美性感一区二区三区| 婷婷久久综合九色综合伊人色| 在线观看91精品国产麻豆| 视频一区视频二区中文| 日韩欧美一级二级| 国产一区 二区| 国产日韩欧美精品综合| 成人精品视频.| 亚洲精选视频在线| 欧美乱妇15p| 日本vs亚洲vs韩国一区三区 | 国产成人免费视频网站| 国产精品毛片大码女人| 色综合天天综合网国产成人综合天 | 精品在线你懂的| 久久蜜桃av一区二区天堂| 国产91精品一区二区麻豆亚洲| 国产精品视频看| 一本一本大道香蕉久在线精品| 亚洲v日本v欧美v久久精品| 欧美一区二区二区| 国产成人丝袜美腿| 亚洲欧美日韩人成在线播放| 欧美日韩国产乱码电影| 精品亚洲porn| 亚洲天堂网中文字| 欧美精品久久一区| 国产一区二区三区美女| 亚洲视频一区二区在线观看| 欧美日韩国产一区| 国产一区二区成人久久免费影院 | 欧美三级日韩三级| 九九九精品视频| 中文字幕一区二区三区色视频| 91久久精品一区二区三区| 欧美aⅴ一区二区三区视频| 国产亚洲va综合人人澡精品 | 日本女人一区二区三区| 久久久久久日产精品| 91网上在线视频| 蜜桃视频在线一区| |精品福利一区二区三区| 欧美日韩五月天| 国产精品1区2区| 午夜在线成人av| 久久精品夜夜夜夜久久| 欧美在线观看视频一区二区| 精品一区二区免费看| 亚洲乱码精品一二三四区日韩在线| 91精品国产欧美一区二区| 成人性生交大片免费| 同产精品九九九| 国产精品九色蝌蚪自拍| 欧美不卡一区二区三区| 一本色道亚洲精品aⅴ| 国产一区二区女| 亚洲妇女屁股眼交7| 国产欧美日韩综合精品一区二区| 欧美日韩亚洲综合| 成人黄页在线观看| 蜜臀av在线播放一区二区三区| 日韩美女视频19| 久久久久久久久伊人| 欧美剧情电影在线观看完整版免费励志电影| 国产黄色91视频| 日韩经典一区二区| 亚洲美女精品一区| 国产视频一区在线观看| 欧美一级搡bbbb搡bbbb| 99久久精品免费| 国产九色sp调教91| 青草国产精品久久久久久| 亚洲精品免费在线| 国产精品久久久久久久蜜臀 | 成人午夜视频网站| 九色综合国产一区二区三区| 婷婷综合在线观看| 亚洲一区二区三区四区五区黄| 中文字幕欧美日韩一区| 精品国产乱码久久| 欧美一区二区三区小说| 欧美午夜一区二区三区免费大片| 成人视屏免费看| 国产精品亚洲第一区在线暖暖韩国| 麻豆精品久久精品色综合| 日韩av一二三| 亚洲综合色丁香婷婷六月图片| 中文字幕在线不卡国产视频| 国产日韩欧美综合一区| 亚洲精品一区二区三区蜜桃下载| 欧美一区二区三区不卡| 欧美精三区欧美精三区| 欧美日韩一级黄| 欧美人与性动xxxx| 欧美午夜在线观看| 欧美三级电影网| 欧美人成免费网站| 欧美日韩亚洲丝袜制服| 欧美日本一区二区三区| 欧美精品日韩综合在线| 337p亚洲精品色噜噜噜| 91精品婷婷国产综合久久| 制服丝袜激情欧洲亚洲| 91精品国产免费| 日韩一区二区三区三四区视频在线观看| 7777精品伊人久久久大香线蕉 | 国内成+人亚洲+欧美+综合在线| 久久er99热精品一区二区| 久草在线在线精品观看| 国内偷窥港台综合视频在线播放| 国内一区二区在线| 岛国一区二区三区| 不卡视频一二三四| 91国偷自产一区二区开放时间 | 久久精品免费观看| 国内精品伊人久久久久影院对白| 国产麻豆精品在线观看| 国产成人午夜精品5599| 成+人+亚洲+综合天堂| 色狠狠一区二区三区香蕉| 欧美视频第二页| 欧美一区二区三区色| 欧美精品一区视频| 国产精品视频九色porn| 一级中文字幕一区二区| 天堂一区二区在线|