D5477: branches: Added -r option to show branch name(s) of a given rev (Issue5948)

navaneeth.suresh (Navaneeth Suresh) phabricator at mercurial-scm.org
Mon Dec 24 09:05:21 EST 2018


navaneeth.suresh added a comment.


  In https://phab.mercurial-scm.org/D5477#81095, @yuja wrote:
  
  > >   fm.startitem()
  > > 
  > > +        rev = ctx.rev()
  > >  +        if opts.get('rev') and rev not in revs:
  > >  +            continue
  >
  > ctx points to the tipmost branch head. so `rev not in revs` doesn't mean any
  >  of the `revs` do not belong to the branch.
  
  
  Is there any possibility of workaround within this iteration itself @yuja? I can do outside the current loop by creating a branches list and map it by iterating over scmutil.revrange() as suggested by you. But, that won't fetch all details. Just changeset and corresponding branch. We need to keep the same output format, right?

REPOSITORY
  rHG Mercurial

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

To: navaneeth.suresh, #hg-reviewers
Cc: pulkit, yuja, mercurial-devel


More information about the Mercurial-devel mailing list