Details
- Reviewers
durin42 - Group Reviewers
hg-reviewers - Commits
- rHG4de15c54e59f: clone: updates the help text for hg clone -{r,b} (issue5654)
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
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".
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.
Yeah, I had a long discussion regarding this on IRC, this is finally what all agreed upon.
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)
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.