Patchwork D3084: heads: add support for specying branches by revset

login
register
mail settings
Submitter phabricator
Date April 5, 2018, 12:51 a.m.
Message ID <b894d9420a35a8f51a7992aad760fbff@localhost.localdomain>
Download mbox | patch
Permalink /patch/30315/
State Not Applicable
Headers show

Comments

phabricator - April 5, 2018, 12:51 a.m.
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




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

Patch

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: