[PATCH] clone: update to @ bookmark if it exists

Thomas Arendsen Hein thomas at intevation.de
Fri Oct 26 13:18:36 CDT 2012


* Adrian Buehlmann <adrian at cadifra.com> [20121026 19:32]:
> On 2012-10-26 15:10, Thomas Arendsen Hein wrote:
> > The message that gets printed looks like:
> >    $ hg clone . cloned-bookmarks
> >    updating to branch default
> >    2 files updated, 0 files merged, 0 files removed, 0 files unresolved
> >    active bookmark: @
> 
> When I read your code changes, I asked myself why shouldn't this be
> 
>     $ hg clone . cloned-bookmarks
>     updating to bookmark @
>     2 files updated, 0 files merged, 0 files removed, 0 files unresolved
> 
> because you are updating to a bookmark in that case, not to a branch.
> 
> The branch seems of rather subordinated importance to me in that case.

There still might be a named branch, e.g. right now you will get the
stable branch when checking out main or crew, but in after the
release it will be the default branch again.

Additionally to not break software grepping for this for some
reason.

Regards,
Thomas

-- 
thomas at intevation.de - http://intevation.de/~thomas/ - OpenPGP key: 0x5816791A
Intevation GmbH, Neuer Graben 17, 49074 Osnabrueck - AG Osnabrueck, HR B 18998
Geschaeftsfuehrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner


More information about the Mercurial-devel mailing list