mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
graphlog: support changeset identifiers in --branch
This commit is contained in:
parent
a87c281f59
commit
d269778e3e
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user