Mercurial workflow

39 views
Skip to first unread message

Cédric Krier

unread,
Jul 8, 2014, 7:06:16 PM7/8/14
to tryton
Hi,

I would like to request a change in our current mercurial workflow.
Sometimes, when we try to push we got a failure because we create a new
head on the server. It happens generally because we forgot to update the
repository before committing.
For now, in such case, we just merge the heads locally and push the 2 new
changesets.
I find it doesn't generate a good history so I think it will be better
to rebase the changeset we just did on top of the head. This will
construct a more linear history which is quite close to reality and
easier to read/search.

Tip to rebase in such case:

# hg rebase -r <my new changeset>


Thanks,
--
Cédric Krier - B2CK SPRL
Email/Jabber: cedric...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Sergi Almacellas Abellana

unread,
Jul 9, 2014, 4:32:47 AM7/9/14
to tryto...@googlegroups.com
El 09/07/14 01:06, Cédric Krier ha escrit:
> I would like to request a change in our current mercurial workflow.
> Sometimes, when we try to push we got a failure because we create a new
> head on the server. It happens generally because we forgot to update the
> repository before committing.
> For now, in such case, we just merge the heads locally and push the 2 new
> changesets.
> I find it doesn't generate a good history so I think it will be better
> to rebase the changeset we just did on top of the head. This will
> construct a more linear history which is quite close to reality and
> easier to read/search.
Completly agree with having cleaner history.
>
> Tip to rebase in such case:
>
> # hg rebase -r <my new changeset>
Just for the record, rebase extension must be activated:

http://mercurial.selenic.com/wiki/RebaseExtension

--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk

Cédric Krier

unread,
Jul 9, 2014, 4:58:32 AM7/9/14
to tryto...@googlegroups.com
Also if you work like me with one clone from hg.tryton.org and many
local clone for parallel development, you should consider setting
publish to False on you repositories:

http://mercurial.selenic.com/wiki/Phases#Publishing_Repository

Tips: you can put it in your ~/.hgrc
Reply all
Reply to author
Forward
0 new messages