[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Committing only specific hunks in VC
From: |
Deniz Dogan |
Subject: |
Re: Committing only specific hunks in VC |
Date: |
Wed, 12 Jan 2011 10:03:01 +0100 |
2011/1/12 Alberto Luaces <aluaces@udc.es>:
> suvayu ali writes:
>
>> On Mon, Jan 10, 2011 at 9:40 PM, Deniz Dogan <deniz.a.m.dogan@gmail.com>
>> wrote:
>>> I have a bunch of files that have been modified and I'd like to commit
>>> all of these changes except for one hunk in one of the files.
>>>
>>> How would I do this from Emacs? I've heard that it's possible to stage
>>> only specific hunks in magit, but I'm using Mercurial.
>>
>> I don't know of a way to do it from Emacs, but with git its trivial to
>> interactively add the hunks (git add -i file or git add -p file) from
>> the terminal and then commit from the
>> terminal or from emacs using vc-dir. Does mercurial has similar
>> interactive adding facilities?
>
> I think that currently there's no option for doing it from VC. You can
> do it from the command line with "hg record". This requires to have the
> "record" extension enabled.
>
Thanks, Alberto, exactly what I need.
--
Deniz Dogan