deactivate hg up -C (or alias is to shelve)

Malcolm Matalka mmatalka at gmail.com
Fri Jan 10 09:54:43 UTC 2020


Uwe Brauer <oub at mat.ucm.es> writes:

> Hi 
>
> I just, by mistake, run hg up -C and deleted important changes. 
>
> I thought to alias it to shelve, but I don't know how to do that. 
>
> Any ideas?

Doesn't really help you but having done this myself my current practice
is I never use hg up -C, I only use hg revert if I want to throw away
changes.

Perhaps it's possible to make an extension that removes unsafe
parameters?

>
> Thanks 
>
> Uwe Brauer
> _______________________________________________
> Mercurial mailing list
> Mercurial at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial




More information about the Mercurial mailing list