# HG changeset patch # User Patrick Mezard # Date 1334135846 -7200 # Node ID 49ef1c3829655489d72b1c3aee2f324dda46e862 # Parent 4aa4f50c52b9f14947bc41eb7b332e045e304a66 graphlog: support changeset identifiers in --branch diff -r 4aa4f50c52b9 -r 49ef1c382965 hgext/graphlog.py --- a/hgext/graphlog.py Wed Apr 11 11:14:07 2012 +0200 +++ b/hgext/graphlog.py Wed Apr 11 11:17:26 2012 +0200 @@ -306,6 +306,7 @@ # 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 diff -r 4aa4f50c52b9 -r 49ef1c382965 tests/test-glog.t --- a/tests/test-glog.t Wed Apr 11 11:14:07 2012 +0200 +++ b/tests/test-glog.t Wed Apr 11 11:17:26 2012 +0200 @@ -1464,7 +1464,7 @@ 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