graphlog: support changeset identifiers in --branch

This commit is contained in:
Patrick Mezard 2012-04-11 11:17:26 +02:00
parent a87c281f59
commit d269778e3e
2 changed files with 2 additions and 1 deletions

View File

@ -306,6 +306,7 @@ def _makelogrevset(repo, pats, opts, revs):
# branch and only_branch are really aliases and must be handled at
# the same time
opts['branch'] = opts.get('branch', []) + opts.get('only_branch', [])
opts['branch'] = [repo.lookupbranch(b) for b in opts['branch']]
# pats/include/exclude are passed to match.match() directly in
# _matchfile() revset but walkchangerevs() builds its matcher with
# scmutil.match(). The difference is input pats are globbed on

View File

@ -1464,7 +1464,7 @@ glog always reorders nodes which explains the difference with log
abort: unknown revision 'not-a-branch'!
abort: unknown revision 'not-a-branch'!
abort: unknown revision 'not-a-branch'!
$ testlog -b default -b branch --only-branch branch
$ testlog -b 35 -b 36 --only-branch branch
[]
(group
(group