Shelve extension
Bill Barry
after.fallout at gmail.com
Mon Feb 23 16:31:43 CST 2009
Martin Geisler wrote:
> Bill Barry <after.fallout at gmail.com> writes:
>
>
>> 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
>>
>
> I think this is called qrecord -- a combination of qnew and record.
>
qrecord is a combination of qnew and record; this should be turned into
qnew --interactive
by moving the interactive stuff out of the record extension and into
core there are other possibilities that can be done:
hg import --interactive
hg qrefresh --interactive
hg backout --interactive
hg revert --interactive
hg qfold --interactive
hg record would be hg commit --interactive
The core functionality should have a method which takes in a patch and
returns a list of split patches, the first being interactively selected
for, the second being everything not in the first. When you run a
command with a --interactive switch, you would be selecting hunks for
use in that command (ie the first list element would be used in the
command, the second element would be left wherever it was before.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://selenic.com/pipermail/mercurial/attachments/20090223/0a3df061/attachment.htm
More information about the Mercurial
mailing list