help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Committing only specific hunks in VC


From: Alberto Luaces
Subject: Re: Committing only specific hunks in VC
Date: Wed, 12 Jan 2011 09:53:34 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

suvayu ali writes:

> On Mon, Jan 10, 2011 at 9:40 PM, Deniz Dogan <address@hidden> 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.

-- 
Alberto




reply via email to

[Prev in Thread] Current Thread [Next in Thread]