Warn when parents != tip?

Giorgos Keramidas keramida at ceid.upatras.gr
Thu Apr 15 06:30:35 CDT 2010


On Wed, 14 Apr 2010 11:36:40 +0100, 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.

Well, this is indeed something that you should watch out for, but it's
also true that committing on top of a past changeset is a very useful
feature.  For example fixing a bug directly on top of the changeset that
introduced it is a neat feature of a graph-based history :)

Before *push* you do get a warning when multiple heads are created.  So
you can still rebase/merge or look at the local heads before pushing.



More information about the Mercurial mailing list