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

2018-12-26 Thread yuja (Yuya Nishihara)
yuja added a comment. Looks mostly good. Can you update the commit message to conform to our style? https://www.mercurial-scm.org/wiki/ContributingChanges#Submission_checklist You'll see some lint errors if you run `test-check-*`. And you'll probably need to update

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

2018-12-26 Thread Yuya Nishihara
Looks mostly good. Can you update the commit message to conform to our style? https://www.mercurial-scm.org/wiki/ContributingChanges#Submission_checklist You'll see some lint errors if you run `test-check-*`. And you'll probably need to update `test-completion.t`. > opts =

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

2018-12-25 Thread navaneeth.suresh (Navaneeth Suresh)
navaneeth.suresh added a comment. @yuja Thank you so much for the information. I've updated the revision. Please review when you're free. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D5477 To: navaneeth.suresh, #hg-reviewers Cc: pulkit, yuja, mercurial-devel

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

2018-12-25 Thread navaneeth.suresh (Navaneeth Suresh)
navaneeth.suresh updated this revision to Diff 12978. REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D5477?vs=12969=12978 REVISION DETAIL https://phab.mercurial-scm.org/D5477 AFFECTED FILES mercurial/commands.py tests/test-branches.t CHANGE DETAILS

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

2018-12-25 Thread yuja (Yuya Nishihara)
yuja added a comment. > > 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

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

2018-12-25 Thread Yuya Nishihara
> > 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

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

2018-12-24 Thread navaneeth.suresh (Navaneeth Suresh)
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

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

2018-12-24 Thread yuja (Yuya Nishihara)
yuja added a comment. > 0. I move metaedit command to core > 1. I move branch changing functionality to metaedit No opinion about 0 and 1. I've never used the metaedit. > 2. and then we implement `hg branch -r ` to show a branch name? I want to avoid it because no other

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

2018-12-24 Thread Yuya Nishihara
> 0. I move metaedit command to core > 1. I move branch changing functionality to metaedit No opinion about 0 and 1. I've never used the metaedit. > 2. and then we implement `hg branch -r ` to show a branch name? I want to avoid it because no other namespace commands (i.e. bookmark and

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

2018-12-24 Thread yuja (Yuya Nishihara)
yuja added a comment. > 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. REPOSITORY

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

2018-12-24 Thread Yuya Nishihara
> 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. ___

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

2018-12-24 Thread pulkit (Pulkit Goyal)
pulkit added subscribers: yuja, pulkit. pulkit added a comment. Didn't looked at the code in detail yet, but this patch needs tests. Also, @yuja how do you think of the following: 0. I move metaedit command to core 1. I move branch changing functionality to metaedit 2. and

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

2018-12-24 Thread navaneeth.suresh (Navaneeth Suresh)
navaneeth.suresh created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D5477 AFFECTED FILES mercurial/commands.py CHANGE DETAILS diff --git a/mercurial/commands.py