D3084: heads: add support for specying branches by revset

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Wed Apr 4 20:51:23 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG924258526b12: heads: add support for specying branches by revset (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3084?vs=7658&id=7670

REVISION DETAIL
  https://phab.mercurial-scm.org/D3084

AFFECTED FILES
  mercurial/commands.py

CHANGE DETAILS

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -2648,7 +2648,8 @@
         heads = [repo[h] for h in heads]
 
     if branchrevs:
-        branches = set(repo[br].branch() for br in branchrevs)
+        branches = set(repo[r].branch()
+                       for r in scmutil.revrange(repo, branchrevs))
         heads = [h for h in heads if h.branch() in branches]
 
     if opts.get('active') and branchrevs:



To: martinvonz, #hg-reviewers, indygreg
Cc: mercurial-devel


More information about the Mercurial-devel mailing list