Warn when parents != tip?

Dirkjan Ochtman dirkjan at ochtman.nl
Wed Apr 14 06:18:16 CDT 2010


On Wed, Apr 14, 2010 at 12:36, Keith Edmunds <kae at midnighthax.com> wrote:
> I've recently converted from svn to hg. Developing on two systems and
> pushing changes between them, I've been burnt a couple of times because I
> haven't done an 'hg up' after having received a push. I understand what it
> is going on, and why, but has anyone come up with a warning when working
> in a repository where the parents are not the tip? I'm imagining some
> clever bash prompt or similar.

A bunch of people have done VCS-enabled prompts.

Here's one: http://vc.gerg.ca/hg/vcprompt/, but I know there are a
bunch more (search on bitbucket, for example).

I can also recommend using pull -u always. :)

Cheers,

Dirkjan


More information about the Mercurial mailing list