Merging with descendants

Kastner Masilko, Friedrich kastner-masilko at at.festo.com
Tue Jul 23 17:28:37 UTC 2013


> From: Kevin Bullock [mailto:kbullock+mercurial at ringworld.org]
> 
> > In Mercurial, we neither have fast-forward merges nor the possibility
> for Oedipus merges on bookmarks. The former is by design (don't do two
> things in one command), the later is an artificial block in the merge
> code.
> 
> No, the latter is a consciously-decided usability tradeoff. For named
> branches, we altered the rule so that you can e.g. always have your
> continuous-integration stack (or your users) update to 'stable',
> without having to generate an artificial commit or --force a branch
> name.
> 
> Bookmarks don't have that issue (anymore) -- to move a bookmark forward
> to a descendent, you just move it. So I don't think allowing oedipal
> merges between bookmarks makes much sense -- it's likely to lead to the
> problems Stephen described. That means more work for us sifting through
> bug reports instead of hacking.

As I've written before, a bookmark-based gitflow approach is not possible without debug commands, then. Thus bookmarks are still second-class citizens in Mercurial w.r.t. named-branches. I don't know about others, but I found the procedures in gitflow with git branches making a ton of sense for corporate workflows. Named-branches are not the same as git branches, we all know that, and we often point to bookmarks for allowing the same in Mercurial. They just don't do that at the moment.

So I have a case where Oedipus merges for bookmarks make a ton of sense, but I can't use them*.

I still fail to see why I should not have the option to create an Oedipus merge without named branches. Especially since the same problems (DAG aesthetics, diff is confusing, merge algorithm could be irritated) exist with Oedipus merges in the named-branch case, too. Sorry, but to me this seems arbitrary, and not a usability tradeoff at all. The later would be if it is very cumbersome to get the result with regular commands (like e.g. with long option-names or special situations) instead of having it supported implicitly or via a neat shortcut. I would understand this. But as it is now, it is just forcing a certain workflow on the user (named-branches if you want a gitflow-like procedure).

And please let me repeat this: having a fast-forward merge option and allowing Oedipus merges for bookmarks are different things. I get the feeling that people often interconnect them here.

I've suggested not to support fast-forward merges before, and I am happy with the situation as it is in this regards, but this is not the same for Oedipus merges.

Just my 2 cents, of course.
Fritz

*) Well, this is not totally true, of course. And you know that, too: http://bz.selenic.com/show_bug.cgi?id=2538#c9
Development Software Systems
Festo Gesellschaft m.b.H.
Linzer Strasse 227
Austria - 1140 Wien

Firmenbuch Wien
FN 38435y
UID: ATU14650108

Tel: +43(1)91075-198
Fax: +43(1)91075-282
www.festo.at

Der Inhalt dieser E-Mail und moeglicher Anhaenge sind ausschliesslich fuer den bezeichneten Adressaten bestimmt.
Jede Form der Kenntnisnahme, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail und
moeglicher Anhaenge durch unberechtigte Dritte ist unzulaessig. Wir bitten Sie, sich mit dem Absender der E-Mail in
Verbindung zu setzen, falls Sie nicht der Adressat dieser E-Mail sind sowie das Material von Ihrem Computer zu loeschen.

This e-mail and any attachments are confidential and intended solely for the addressee. The perusal, publication, copying or
dissemination of the contents of this e-mail by unauthorised third parties is prohibited. If you are not the intended recipient of this
e-mail, please delete it and immediately notify the sender.



More information about the Mercurial mailing list