Why you don't want to allow disabling "branches are global and permanent, did you want a bookmark"?
mg at aragost.com
Tue Aug 14 06:02:43 CDT 2012
Arne Babenhauserheide <arne_bab at web.de> writes:
> Am Mittwoch, 8. August 2012, 20:46:53 schrieben Sie:
>> $ hg branch foo
>> marked working directory as branch foo
>> (the branch name will be permanently recorded on commit)
> PS: this actually gives two additional pieces of information:
> - branch names are permanent
> - they are recorded on commit
> The one thing I miss is how to undo the marking.
That is described in 'hg help branch', the -C option will reset the
branch name to what it was in the working copy parent changeset.
> Maybe like this:
> $ hg branch foo
> marked working directory as branch foo (previous name: bar)
> (the branch name will be permanently recorded on commit)
> I’m not really happy with that, though. Too cluttered.
I think leaving out the old branch name is fine. If people want to
revert to it and don't know about 'hg branch -C', then they should be
able to look it up in 'hg log'.
Btw, I also think it's great that the new message mentions that the
branch name is recorded on commit -- that's an important detail.
> Maybe it helps someone find a better wording.
> Information which should be in there:
> - new branch name
> - branches are permanent
> - the branch name is recorded on commit
> - old branch name (to be able to undo the change without looking up stuff)
> Best wishes,
Commercial Mercurial support
More information about the Mercurial-devel