This is an archive of the discontinued Mercurial Phabricator instance.

clone: updates the help text for hg clone -r (issue5654) [bugzilla] and hg clone -b
ClosedPublic

Authored by sangeet259 on Feb 8 2018, 1:05 PM.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

sangeet259 created this revision.Feb 8 2018, 1:05 PM
sangeet259 retitled this revision from updates the help text for hg clone -r (issue5654) on bugzilla to clone: updates the help text for hg clone -r (issue5654) [bugzilla] and hg clone -b.Feb 9 2018, 9:28 AM
sangeet259 updated this revision to Diff 5370.
sangeet259 updated this revision to Diff 5371.Feb 9 2018, 9:36 AM
dlax added a subscriber: dlax.EditedFeb 9 2018, 9:42 AM

As mentioned in the issue, there's already an explanation paragraph in help:

To pull only a subset of changesets, specify one or more revisions
identifiers with -r/--rev or branches with -b/--branch. The resulting
clone will contain only the specified changesets and their ancestors.

@dlax Yes, but the short summary didn't say what it does! It just says "include the specified changeset".

dlax added a comment.Feb 11 2018, 1:29 PM

sangeet259 (Sangeet Kumar Mishra) wrote:

@dlax https://phab.mercurial-scm.org/p/dlax/ Yes, but the short
summary didn't say what it does! It just says "include the specified
changeset".

I agree it's not super-clear. Perhaps we could say "clone only specified
changeset" for -r (help for -b looks ok to me).

There was a longish discussion on IRC about this. The problem is that the flags by themselves do not document the interaction of -r and -b or multiple instances of either at all. The change was a compromise trying to address that.

There was a longish discussion on IRC about this. The problem is that the flags by themselves do not document the interaction of -r and -b or multiple instances of either at all. The change was a compromise trying to address that.

Yeah, I had a long discussion regarding this on IRC, this is finally what all agreed upon.

durin42 accepted this revision as: durin42.Feb 14 2018, 8:37 PM
durin42 added a subscriber: durin42.

I can live with this as a strict improvement over what we've got. Anyone object or want to agree with me?

(I'm happy to fix the inevitable test changes in flight)

pulkit added a subscriber: pulkit.Feb 18 2018, 8:24 AM

For future bug fixes: we don't append [bugzilla] at the end of commits which fixes bug, we only mention the issue number. We use bugzilla only for bugs/issues, so an issue number in the commit message refers to the issue on bugzilla.

Oh! Thanks for letting me know!
I will keep that in mind.

durin42 accepted this revision.Mar 2 2018, 5:27 PM
This revision is now accepted and ready to land.Mar 2 2018, 5:27 PM
This revision was automatically updated to reflect the committed changes.