hg update does nothing, but hg update -r tip does

Matt Mackall mpm at selenic.com
Wed Nov 10 14:01:49 CST 2010

On Wed, 2010-11-10 at 17:10 +0100, Mads Kiilerich wrote:
> On 11/10/2010 04:45 PM, Felix Dorner wrote:
> > Hi,
> >
> > Why would hg update just do nothing, and hg update -r tip would? The
> > latter fetches three newly created files into the working directory,
> > which is what I'd expect.
> That is probably because you are using named branches. "hg up" will 
> update to the head of the branch (and do nothing if that is where you 
> are), while "hg up -r tip" will update to the tip revision and switch 
> branch if necessary.

This is an excellent time to recommend 'hg summary'.

hg summary: Mercurial's "did you try rebooting?"

Mathematics is the supreme nostalgia of our time.

More information about the Mercurial mailing list