diff hgext/graphlog.py @ 16407:49ef1c382965

graphlog: support changeset identifiers in --branch
author Patrick Mezard <patrick@mezard.eu>
date Wed, 11 Apr 2012 11:17:26 +0200
parents 4aa4f50c52b9
children d74099ac2ac1
line wrap: on
line diff
--- 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