mercurial/revset.py
changeset 20445 507261c0914f
parent 20443 b68984d288d4
child 20446 d258486604f4
equal deleted inserted replaced
20444:1478a9ce6790 20445:507261c0914f
   428         kind, pattern, matcher = _stringmatcher(b)
   428         kind, pattern, matcher = _stringmatcher(b)
   429         if kind == 'literal':
   429         if kind == 'literal':
   430             # note: falls through to the revspec case if no branch with
   430             # note: falls through to the revspec case if no branch with
   431             # this name exists
   431             # this name exists
   432             if pattern in repo.branchmap():
   432             if pattern in repo.branchmap():
   433                 return baseset([r for r in subset if matcher(repo[r].branch())])
   433                 return lazyset(subset, lambda r: matcher(repo[r].branch()))
   434         else:
   434         else:
   435             return baseset([r for r in subset if matcher(repo[r].branch())])
   435             return lazyset(subset, lambda r: matcher(repo[r].branch()))
   436 
   436 
   437     s = getset(repo, baseset(repo), x)
   437     s = getset(repo, baseset(repo), x)
   438     b = set()
   438     b = set()
   439     for r in s:
   439     for r in s:
   440         b.add(repo[r].branch())
   440         b.add(repo[r].branch())
   441     s = s.set()
   441     s = s.set()
   442     return baseset([r for r in subset if r in s or repo[r].branch() in b])
   442     return lazyset(subset, lambda r: r in s or repo[r].branch() in b)
   443 
   443 
   444 def bumped(repo, subset, x):
   444 def bumped(repo, subset, x):
   445     """``bumped()``
   445     """``bumped()``
   446     Mutable changesets marked as successors of public changesets.
   446     Mutable changesets marked as successors of public changesets.
   447 
   447