strip -f doesn't exist?

j w jwdevel at gmail.com
Fri Jul 4 11:16:47 CDT 2008


I just tried this out with a more recent hg, and strip -f is indeed
supported (yay), but it blows away local changes (boo).

It seems like strip -f does the equivalent of "update -C"... I still
don't get why this should be. Why should strip care about local
changes at all - it is only manipulating committed changesets. Or
perhaps I misunderstand the strip command?

-John

On Thu, Jul 3, 2008 at 10:44 PM, j w <jwdevel at gmail.com> wrote:
> On Wed, Jul 2, 2008 at 10:58 PM, Dirkjan Ochtman <dirkjan at ochtman.nl> wrote:
>> j w wrote:
>>> What I'm really trying to accomplish is to turn an mq patch into local changes.
>>
>> Why would you want to do this? You know about qrefresh and qdelete -r,
>> right? The documentation for strip has been fixed in crew, I think.
>>
>
> I believe I was trying to use mq as a "poor man's shelve" (or pickle,
> or whatever you want to call it).
> I had some local changes, but then needed to work on a hot bug.
> So I dumped the changes into a patch in mq, fixed the bug, then wanted
> to get back to the state I was in before.
> But it was not so easy (:
>
> Of course, there are other ways to tackle the problem, this just
> seemed handy at the time, but didn't work out how I expected.
>
> Actually, I never expected strip to care about local changes at all -
> anybody know why that restriction is in place?
>
> -John
>


More information about the Mercurial mailing list