I'm confused about --close-branch
Gilles Moris
gilles.moris at free.fr
Wed Nov 11 14:52:18 CST 2009
On Wednesday 11 November 2009 07:58:57 pm CG Linden wrote:
> So, for now:
> - Only close named branches?
> - push -f still required?
> - Use hg up -C tip?
> Is pull going to cause problems after I push -f a closed branch?
If you use named branches, you will have to do a 'push -f' the first time to
create the named branch remotely. After this points, heads are counted per
named branch: these are branch heads. As long as you have only one head per
named branch, you should not have to use push -f.
Also be careful with hg up -C (upper case C), as it stands for --clear and
wipe out any local changes. You'd better use -c (lower case c) that stands
for --check which just verify that you do not have outstanding local changes.
Actually, you may want to consult this page:
http://mercurial.selenic.com/wiki/PruningDeadBranches
It explains the different alternatives for closing branches.
Regards.
Gilles.
More information about the Mercurial-devel
mailing list