From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: suvayu ali Newsgroups: gmane.emacs.help Subject: Re: Committing only specific hunks in VC Date: Tue, 11 Jan 2011 14:57:32 -0800 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1294786708 10108 80.91.229.12 (11 Jan 2011 22:58:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 11 Jan 2011 22:58:28 +0000 (UTC) Cc: emacs-help To: Deniz Dogan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 11 23:58:24 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PcnAW-0001qY-5J for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Jan 2011 23:58:24 +0100 Original-Received: from localhost ([127.0.0.1]:46138 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PcnAV-00032q-DE for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Jan 2011 17:58:23 -0500 Original-Received: from [140.186.70.92] (port=38595 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PcnA8-00032Y-FR for help-gnu-emacs@gnu.org; Tue, 11 Jan 2011 17:58:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PcnA2-0006C2-K6 for help-gnu-emacs@gnu.org; Tue, 11 Jan 2011 17:58:00 -0500 Original-Received: from mail-fx0-f41.google.com ([209.85.161.41]:34170) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PcnA2-0006AZ-Em for help-gnu-emacs@gnu.org; Tue, 11 Jan 2011 17:57:54 -0500 Original-Received: by fxm12 with SMTP id 12so13914256fxm.0 for ; Tue, 11 Jan 2011 14:57:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:sender:received :in-reply-to:references:from:date:x-google-sender-auth:message-id :subject:to:cc:content-type; bh=2EuR+WDNVD1jU4hCD1hTK6cwYJLr+c4KJp38MZXqPPk=; b=L1Vg3iYIbos9E3XJNKcfsLdgWZ/0VxTpluhEQDovUdFn5ymmP6oYtWqQAA7HbC+yNv 9kRateaICUEbQlg7eCTcRxS4gmSayhPvzlMLEHKBOguhyr+S0HHI31AK7TLXwAbYsmK0 vu+FqOOSox6XCe0hbV+wwLdmslKzoHgRR/Bmo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; b=M4F0os1Co9D1c1KMwpjVn4GNPyAU0ZYLBjvZcH42ePtP2BBTcPaxazbBh3u8dv2JB/ kZ7ZNS7Hs8wmMemu0qa/vESrCO56yEYoND/50+5JkPZxA8XqtkQ0pis/ip/JoanmVhS3 JQ844JestnFCYh2H1Zfs/5yFCPED+ckPq4AxI= Original-Received: by 10.223.95.207 with SMTP id e15mr184545fan.145.1294786672863; Tue, 11 Jan 2011 14:57:52 -0800 (PST) Original-Received: by 10.223.71.207 with HTTP; Tue, 11 Jan 2011 14:57:32 -0800 (PST) In-Reply-To: X-Google-Sender-Auth: 3Yaj1dmznwemYgj6H0Hmlufznrw X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:78397 Archived-At: On Mon, Jan 10, 2011 at 9:40 PM, Deniz Dogan 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? -- Suvayu Open source is the future. It sets us free.