hg equivalent of git push -f

Jeremy . voldermort at hotmail.com
Mon Mar 6 15:34:21 UTC 2017


I've been thinking of what it would take to convert my work place from git to hg, and the one thing which doesn't seem to have any equivalent is git push -f. hg may also have a push -f, but it leaves dangling anonymous heads which have to be stripped on the server. Evolve may help, but it doesn't like changing branches which have been pushed to a publishing repository, and we don't need or want the overhead of keeping obsolete changesets and markers.


Some examples of how we use it:

1) Whenever our CI server sees pushes to a particular branch, it builds it and deploys to a sandbox. Developers can experiment with deploying their changes by force-pushing whatever they want to this branch, no need to worry about merges with some old experiment.

2) We use feature branches. Developers frequently force-push their work in progress, so that others can see it, and for the side-effect of (ab)using GitHub as backup.


Is it possible to easily do this in mercurial?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mercurial-scm.org/pipermail/mercurial-devel/attachments/20170306/0f4192f9/attachment.html>


More information about the Mercurial-devel mailing list