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

Thomas Arendsen Hein thomas at intevation.de
Fri Oct 26 08:10:08 CDT 2012


* Thomas Arendsen Hein <thomas at intevation.de> [20121023 12:34]:
> * dsp at php.net <dsp at php.net> [20121023 12:12]:
> > On Tue 23 Oct 2012 12:04:14 PM CEST, Thomas Arendsen Hein wrote:
> > > * Kevin Bullock <kbullock+mercurial at ringworld.org> [20120828 17:52]:
> > >> # HG changeset patch
> > >> # User Kevin Bullock <kbullock at ringworld.org>
> > >> # Date 1332366819 18000
> > >> # Node ID 579afc1a4378a55f64f6fd185f3de40da5bfbb4a
> > >> # Parent  99a2a4ae35e2180b7f825ef2677c36d538eac4ba
> > >> clone: update to @ bookmark if it exists
> > >
> > > This is in 2.4-rc now and I have just used it for the first time.
> > >
> > > One thing confuses me: Shouldn't the bookmark "@" be active after
> > > the clone? Currently it isn't
> > 
> > I think it should
> 
> hg clone foo
> hack in foo
> hg ci -m fix
> hg push
> ... the next one who pulls does not get the fix and there never was
> a message that something special happened.
> 
> So I'd say this is a must-have feature.

After my changes in c9339efed653 this was trivial to implement, I
just pushed these to crew-stable:

changeset:   17870:7d2dd10ce9ea
branch:      stable
user:        Thomas Arendsen Hein <thomas at intevation.de>
date:        Fri Oct 26 14:37:03 2012 +0200
summary:     clone: activate @ bookmark if updating to it

changeset:   17871:52c7e171e355
branch:      stable
user:        Thomas Arendsen Hein <thomas at intevation.de>
date:        Fri Oct 26 14:53:31 2012 +0200
summary:     clone: print bookmark name when clone activates a bookmark


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: @

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