hg equivalent of git push -f?
Tony Mechelynck
antoine.mechelynck at gmail.com
Tue Mar 7 14:24:07 UTC 2017
See "hg help phases" (without the quotes, of course).
Best regards,
Tony.
On Mon, Mar 6, 2017 at 4:44 PM, Jeremy . <voldermort at hotmail.com> wrote:
> 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?
>
>
> _______________________________________________
> Mercurial mailing list
> Mercurial at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial
>
More information about the Mercurial
mailing list