Shelve extension
Bill Barry
after.fallout at gmail.com
Mon Feb 23 14:41:43 CST 2009
Peter Hosey wrote:
> I will say, though, that the index-based procedure to add the missing
> change is much simpler than your mq-based procedure:
>
>> 5.fold the additional fix into mypatch (hg qrecord fix, hg shelve, hg
>> qpop, hg qpop, hg qfold mypatch fix, hg qpush, hg unshelve)
>
> Git:
> git add -i
>
> It will guide you the rest of the way with its interactive prompts,
> and each of your answers is only one character.
This will hopefully be resolved when somebody integrates the record
functionality into the core and adds hg qrefresh --interactive
The way I have there in the parenthesis is really the most generic-catch
all way to do it. There are several shortcuts already:
"hg qrefresh" if you want to just add everything in the working copy
into the current patch
"hg qrefresh --short" if you want to add only whatever is in the files
that are in the current patch
"hg qrefresh -X glob" to exclude files matching glob, ...
The point being that you could very well stop whatever you might be
doing at any point along the way and go in a different direction.
More information about the Mercurial
mailing list