glob2-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [glob2-devel] don't use "hg push -f" as default


From: Bradley Arsenault
Subject: Re: [glob2-devel] don't use "hg push -f" as default
Date: Sun, 10 Feb 2008 21:11:04 -0500

On Feb 9, 2008 2:49 PM, Kai Antweiler <address@hidden> wrote:
Hi *,

recently some (wrong) extra heads have been created in our repository.
This happens (e.g.), if you "hg push -f" a revision and someone else
has pushed before.

If you use "hg push" without "-f", mercurial will warn you and exit in
such cases.
Then you can use "hg incoming ...#default" or ("hg pull ...#default"
and "hg glog -l 4) to see what's wrong.

If you come to the conclusion, that creating a new head is the best thing
that you can do in this situation, then you can still use "hg push -f".

If you see that someone has pushed a new revision, you problably want to merge:
# hg pull http://hg.globulation2.org/glob2#default
# hg merge
# hg commit -m "merged my and xy commits"
# hg push https://hg.globulation2.org/glob2

If you know beforehand, that you want to create a new head (probably
due to a new
named branch), then you should use "hg push -f ..." directly.
--
Kai Antweiler

I likely forgot to pull and merge before I pushed recently. I'll take better care in the future.
 

--
Extra cheese comes at a cost. Bradley Arsenault.
reply via email to

[Prev in Thread] Current Thread [Next in Thread]