Using bookmarks in Mercurial itself

timeless timeless at gmail.com
Mon Jun 20 10:54:48 CDT 2011


Mozilla's try servers tend to have hundreds or thousands of heads...

On 6/20/11, Sune Foldager <cryo at cyanite.org> wrote:
> On 2011-06-19 19:19, Martin Geisler wrote:
>>Peter Arrenbrecht <peter.arrenbrecht at gmail.com> writes:
>>
>>> On Fri, Jun 17, 2011 at 3:36 PM, Martin Geisler <mg at aragost.com> wrote:
>>>> Patrick Mézard <pmezard at gmail.com> writes:
>>>>
>>>>> Le 17/06/11 13:08, Martin Geisler a écrit :
>>>>>>
>>>>>> It's of course just a gut feeling, but I feel that a DVCS should
>>>>>> allow us to commit and experiment more freely than we do today.
>>>>>
>>>>> Mercurial is a DVCS, not your everyday project library or web
>>>>> framework. If broken stuff is pushed,
>>>>
>>>> I did not talk about pushing broken stuff, I talked about pushing stuff
>>>> where the test suite still passes.
>>>>
>>>>> I lose data because I run tip.
>>>>
>>>> If bookmarked branches are even slightly useful, then it should be
>>>> possible to have them in a repository while also have a stable default
>>>> branch tip. But you're right that
>>>>
>>>>  hg update stable
>>>>  hg update default
>>>>
>>>> might take you back to a "random" head on the default branch, including
>>>> a head on an experimental branch. That does sound dangerous -- would a
>>>> "crew" bookmark on the right default head solve this?
>>>
>>> Bookmarks on anonymous branches which live in a named branch "crew" or
>>> "features"?
>>
>>Yeah, that is a possibility! Right now switching branches only "works"
>>because both of our branches have a single head -- if a branch has more
>>than one head, 'hg update branch' becomes scary.
>
> As another curious thing, the prepush logic spends a lot of code on getting
> the
> multi-head-per-branch cases right, but they are hardly ever used in practice
> :-p.
>
> -Sune
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel
>

-- 
Sent from my mobile device


More information about the Mercurial-devel mailing list