| From | Sent On | Attachments |
|---|---|---|
| arne...@web.de | Nov 4, 2011 2:41 am | |
| arne...@web.de | Nov 4, 2011 2:41 am | |
| arne...@web.de | Nov 4, 2011 2:41 am | |
| arne...@web.de | Nov 4, 2011 2:41 am | |
| arne...@web.de | Nov 4, 2011 2:41 am | |
| Gilles Moris | Nov 6, 2011 2:11 am | |
| Arne Babenhauserheide | Nov 6, 2011 2:24 am | |
| Martin Geisler | Nov 6, 2011 3:20 am | |
| Arne Babenhauserheide | Nov 6, 2011 3:58 am | |
| Matt Mackall | Nov 6, 2011 10:21 am | |
| Matt Mackall | Nov 6, 2011 11:37 am | |
| Matt Mackall | Nov 6, 2011 12:28 pm | |
| Sean Farley | Nov 6, 2011 12:34 pm | |
| Matt Mackall | Nov 7, 2011 12:59 pm | |
| Arne Babenhauserheide | Nov 7, 2011 11:24 pm | |
| Victor Suba | Nov 10, 2011 9:43 am | |
| Victor Suba | Nov 10, 2011 10:07 am | |
| Arne Babenhauserheide | Nov 10, 2011 1:01 pm | |
| Victor Suba | Nov 10, 2011 6:00 pm | |
| Arne Babenhauserheide | Nov 10, 2011 10:32 pm | |
| Victor Suba | Nov 11, 2011 12:29 am | |
| Victor Suba | Nov 11, 2011 12:56 am | |
| timeless | Nov 11, 2011 5:35 am | |
| Sean Farley | Nov 11, 2011 8:04 am | |
| Victor Suba | Nov 11, 2011 8:20 am | |
| Victor Suba | Nov 11, 2011 11:03 am | |
| timeless | Nov 11, 2011 1:30 pm | |
| timeless | Nov 11, 2011 1:41 pm | |
| Sean Farley | Nov 11, 2011 2:12 pm | |
| Sean Farley | Nov 11, 2011 2:18 pm | |
| Victor Suba | Nov 12, 2011 2:01 pm | |
| timeless | Nov 13, 2011 4:32 am | |
| Martin Geisler | Nov 13, 2011 7:38 am | |
| Victor Suba | Nov 13, 2011 1:55 pm | |
| Arne Babenhauserheide | Nov 13, 2011 11:12 pm | |
| Victor Suba | Nov 13, 2011 11:56 pm | |
| Martin Geisler | Nov 14, 2011 12:08 am | |
| Sean Farley | Nov 15, 2011 8:47 am | |
| David Soria Parra | Nov 15, 2011 9:32 am | |
| Victor Suba | Nov 15, 2011 10:10 am | |
| Arne Babenhauserheide | Nov 29, 2011 2:26 am | |
| Arne Babenhauserheide | Nov 29, 2011 7:21 am | |
| Matt Mackall | Nov 29, 2011 11:28 am | |
| Arne Babenhauserheide | Dec 2, 2011 2:28 pm | |
| Matt Mackall | Dec 2, 2011 2:45 pm | |
| Arne Babenhauserheide | Dec 2, 2011 5:06 pm |
| Subject: | Re: [PATCH 2 of 4] clone to master bookmark if available | |
|---|---|---|
| From: | Matt Mackall (mp...@selenic.com) | |
| Date: | Nov 6, 2011 11:37:37 am | |
| List: | com.selenic.mercurial-devel | |
On Fri, 2011-11-04 at 10:42 +0100, arne...@web.de wrote:
# HG changeset patch # User Arne Babenhauserheide <ba...@draketo.de> # Date 1320398369 -3600 # Node ID 8f614fd777b7190329b9fe705b6e1f518d9193ab # Parent 0cc7332a0bb20c3daf003f3fe0a140f5925f0eb8 clone to master bookmark if available.
(this is not at all the standard commit summary style)
I think making this built-in default behavior is mildly interesting, but I really don't like the git nomenclature here. The progressive in me has always winced at master/slave terminology in computing and while this usage is arguably partly in the sense 'master key', I think it's still mostly in the sense of 'ruler'. Since I have a say here (unlike in SCSI, DMA, and SPI specs), I'd prefer to pick something more neutral. (This is not an invitation to debate or nitpick my politics of language, folks.)
The precedent in Mercurial of course is "default": default path and default branch. It's obviously a bit problematic to have both a default branch and a default bookmark since they're both in the lookup namespace, so perhaps a simple variant of that is needed. We could perhaps have a notion of the default bookmark on the default branch, ie default/default'.
Also, I think that there are some other loose ends with bookmarks that need to be tied up before we get too far thinking about this.
For instance, Alice clones Bob's bookmark B. Alice and Bob both commit and advance B. Now when Alice pulls, she gets a warning that her B bookmark is 'divergent'. Now Alice has an extra head but only one bookmark (her own). This works fine if she now has only two heads on her branch: merge picks the right one, then B points to the merge and push pushes it.
But if her current branch already had several heads, 'hg merge' won't have a default choice, nor will 'hg merge B' do anything useful. She may end up merging with the wrong head and then push will refuse to move B on the server. And if B is actually your 'master' concept, things are now a bit messy.
..which all suggests we need to figure out a nice way to track multiple bookmarks of the same name first. Git does this with a "namespace" notion, which is one possibility.
-- Mathematics is the supreme nostalgia of our time.
_______________________________________________ Mercurial-devel mailing list Merc...@selenic.com http://selenic.com/mailman/listinfo/mercurial-devel





