Named branches

Arne Babenhauserheide arne_bab at web.de
Wed Oct 8 01:57:00 CDT 2008


Am Mittwoch 08 Oktober 2008 02:50:16 schrieb Douglas Philips:
> The case in point could be recast as the branch name of the tip of the
> pulled-from/cloned-from repo.
> But... the longer this discussion goes on, the more I think having
> update as part of clone causes more confusion than it is worth...

What I expected is having the tip of the remote as the local tip, so getting 
the default branch confused me quite a lot. 

Just check the following branch test repo. 

- http://freehg.org/u/ArneBab/branch_test/

hg log gives: 

changeset:   1:f92b1d044086
branch:      other
tag:         tip
user:        Arne Babenhauserheide <bab at draketo.de>
date:        Wed Oct 08 08:36:26 2008 +0200
summary:     other branch commit.

changeset:   0:808531a532f2
user:        Arne Babenhauserheide <bab at draketo.de>
date:        Wed Oct 08 08:35:54 2008 +0200
summary:     default branch commit.


What would be your gut feeling, which revisions most users would expect to see 
(and would like to work with)? 

Besides: It works if I do a 
hg branch -f default
and then commit, but that removes the information that I'm in the other 
branch. 

Being able to just mark a specific branch as default (in a sticky way) would 
be far more convenient for me. 

for example 

hg branch --set-default other

could set the other branch as default branch, so the working directory would 
get updated to the other branch automatically. 

This doesn't create the confusion that a recent branch commit can suddenly 
make all users get stuck in an otherwise inactive branch (as using the tip 
would do), but it allows me to keep the information that we're currently 
working on release-1.0 - and to update that information later on. 

Or does this violate some basic design principles (like "no connection to the 
workdir state as seen by clone" - but then why choose default branch)? 

Best wishes, 
Arne
-- 
-- My stuff: http://draketo.de - stories, songs, poems, programs and stuff :)
-- Infinite Hands: http://infinite-hands.draketo.de - singing a part of the 
history of free software.
-- Ein Würfel System: http://1w6.org - einfach saubere (Rollenspiel-) Regeln.

-- PGP/GnuPG: http://draketo.de/inhalt/ich/pubkey.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://selenic.com/pipermail/mercurial/attachments/20081008/5d26fa4a/attachment.pgp 


More information about the Mercurial mailing list