kareila: (Default)
kareila ([personal profile] kareila) wrote in [site community profile] dw_dev2010-07-19 10:59 am

Mercurial: closing named branches

I will shortly be pushing changesets that close the staging and production branches in the dw-free repository. The branch system hasn't been used effectively and causes problems whenever cloning a new copy of the repository, so I'm reverting to using the default branch for all development.

There shouldn't be any user facing changes from this, except for one change to bootstrap.pl. However, if you run into any difficulties please let me know immediately. Thanks!

ETA: my testing shows that you may have to manually do hg update -C tip after pulling in the dw-free changes, since the active branch has been switched. After that everything should work normally, although the branches will not appear to be closed until you update Mercurial to a version that supports branch closings.
pauamma: Cartooney crab wearing hot pink and acid green facemask holding drink with straw (Default)

[personal profile] pauamma 2010-07-19 05:01 pm (UTC)(link)
Was that an attempt to o something along the lines of http://dw-dev.dreamwidth.org/45819.html?thread=403451#cmt403451 ? If so, does that mean we're dropping tbe idea, or just the implementation?
vlion: cut of the flammarion woodcut, colored (Default)

[personal profile] vlion 2010-07-20 12:55 am (UTC)(link)
Interesting. So mq is the One True way now?

/hates mq.

//doesn't do dw dev, so his opinion doesn't count
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2010-07-20 12:58 am (UTC)(link)
We use mercurial for the DW repositories. Some of the developers use MQ, but not everyone by any means. (Also, this entry has nothing to do with MQ that I can see)
vlion: cut of the flammarion woodcut, colored (Default)

[personal profile] vlion 2010-07-20 01:07 am (UTC)(link)
Well, branching is used to keep one's commits off the mainline, which is sometimes what mq is used for - so if branches are not used, then mq must be?
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2010-07-20 01:09 am (UTC)(link)
Oh! Well since we need to get things reviewed before commit, usually changes end up being split off into a patch and uploaded to zilla, instead of having patches committed directly, and pushed to the central repository.
vlion: cut of the flammarion woodcut, colored (Default)

[personal profile] vlion 2010-07-20 04:38 am (UTC)(link)
*durpy stare*

Ooooh. Interesting.....

huh.

Okay.
sophie: A cartoon-like representation of a girl standing on a hill, with brown hair, blue eyes, a flowery top, and blue skirt. ☀ (Default)

[personal profile] sophie 2010-07-23 11:38 am (UTC)(link)
On the Dreamhack machine, everything seems to be fine; there's apparently no need to do any special commands after updating. It's currently using Mercurial 0.9.5 (as the box itself is still on Hardy Heron). tip shows up correctly even without an explicit "hg update -C tip".
sophie: A cartoon-like representation of a girl standing on a hill, with brown hair, blue eyes, a flowery top, and blue skirt. ☀ (Default)

[personal profile] sophie 2010-07-24 10:00 pm (UTC)(link)
Actually, I meant that existing repos are fine too - just update and there's no problem:

dh-testuser@hack:~/dw/cvs/dw-free$ hg heads
changeset:   2582:3d6b9b44d272
branch:      production
tag:         tip
user:        fu
date:        Tue Jul 06 02:34:20 2010 +0800
summary:     http://bugs.dwscoalition.org/show_bug.cgi?id=2289

dh-testuser@hack:~/dw/cvs/dw-free$ ~/dw/bin/cvsreport.pl -u
Updating CVS dir 'dw-free' ...
pulling from http://hg.dwscoalition.org/dw-free
searching for changes
adding changesets
adding manifests
adding file changes
added 62 changesets with 273 changes to 209 files (+2 heads)
(run 'hg heads' to see heads, 'hg merge' to merge)
86 files updated, 0 files merged, 0 files removed, 0 files unresolved

[... snip rest of update ...]

dh-testuser@hack:~/dw/cvs/dw-free$ hg heads
changeset:   2644:9786201db0cb
tag:         tip
user:        kareila
date:        Fri Jul 23 09:35:07 2010 -0500
summary:     http://bugs.dwscoalition.org/show_bug.cgi?id=2837

changeset:   2620:2fa8c5fd7953
branch:      production
parent:      2617:9f696cf19910
user:        kareila
date:        Mon Jul 19 12:13:29 2010 -0500
summary:     closing production branch

changeset:   2618:80bf5c8a0bfc
branch:      staging
parent:      85:74330150fd51
user:        kareila
date:        Mon Jul 19 12:10:55 2010 -0500
summary:     closing staging branch


And indeed, that's the latest change right now. I don't think there are any problems associated with having 3 heads, so nobody actually needs to force an update.

As for upgrading Mercurial, I could compile from source; that should work. But then the Dreamhack box wouldn't be the ideal 'supported installation', I suspect.
sophie: A cartoon-like representation of a girl standing on a hill, with brown hair, blue eyes, a flowery top, and blue skirt. ☀ (Default)

[personal profile] sophie 2010-07-31 09:02 pm (UTC)(link)
I do believe I confused the hg heads and hg parents commands. I apologise, and humbly eat my words.

(for those who aren't aware; hg heads shows the latest revisions for each open branch in the repository, while hg parents shows the revision that the working copy is based on. I thought that the former did what the latter does. Ooooops.)

Sorry 'bout that!
Edited 2010-07-31 21:04 (UTC)