コード例 #1
0
 def transplantwalk(repo, root, branches, match=util.always):
     if not branches:
         branches = repo.heads()
     ancestors = []
     for branch in branches:
         ancestors.append(repo.changelog.ancestor(root, branch))
     for node in repo.changelog.nodesbetween(ancestors, branches)[0]:
         if match(node):
             yield node
コード例 #2
0
 def transplantwalk(repo, root, branches, match=util.always):
     if not branches:
         branches = repo.heads()
     ancestors = []
     for branch in branches:
         ancestors.append(repo.changelog.ancestor(root, branch))
     for node in repo.changelog.nodesbetween(ancestors, branches)[0]:
         if match(node):
             yield node
コード例 #3
0
ファイル: transplant.py プロジェクト: spraints/for-example
 def transplantwalk(repo, dest, heads, match=util.always):
     '''Yield all nodes that are ancestors of a head but not ancestors
     of dest.
     If no heads are specified, the heads of repo will be used.'''
     if not heads:
         heads = repo.heads()
     ancestors = []
     for head in heads:
         ancestors.append(repo.changelog.ancestor(dest, head))
     for node in repo.changelog.nodesbetween(ancestors, heads)[0]:
         if match(node):
             yield node
コード例 #4
0
 def transplantwalk(repo, dest, heads, match=util.always):
     '''Yield all nodes that are ancestors of a head but not ancestors
     of dest.
     If no heads are specified, the heads of repo will be used.'''
     if not heads:
         heads = repo.heads()
     ancestors = []
     for head in heads:
         ancestors.append(repo.changelog.ancestor(dest, head))
     for node in repo.changelog.nodesbetween(ancestors, heads)[0]:
         if match(node):
             yield node
コード例 #5
0
ファイル: transplant.py プロジェクト: spraints/for-example
 def incwalk(repo, csets, match=util.always):
     for node in csets:
         if match(node):
             yield node
コード例 #6
0
 def incwalk(repo, incoming, branches, match=util.always):
     if not branches:
         branches = None
     for node in repo.changelog.nodesbetween(incoming, branches)[0]:
         if match(node):
             yield node
コード例 #7
0
 def incwalk(repo, csets, match=util.always):
     for node in csets:
         if match(node):
             yield node
コード例 #8
0
ファイル: transplant.py プロジェクト: MezzLabs/mercurial
 def incwalk(repo, incoming, branches, match=util.always):
     if not branches:
         branches = None
     for node in repo.changelog.nodesbetween(incoming, branches)[0]:
         if match(node):
             yield node