From unknown Thu Aug 21 14:53:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17454: lisp/vc/vc-hg.el: vc-hg-unregister fixed with the hg forget command. Resent-From: Santiago =?UTF-8?Q?Pay=C3=A0?= i Miralta Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 May 2014 17:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 17454 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 17454@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.139974246727350 (code B ref -1); Sat, 10 May 2014 17:22:02 +0000 Received: (at submit) by debbugs.gnu.org; 10 May 2014 17:21:07 +0000 Received: from localhost ([127.0.0.1]:58268 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WjAxO-000771-2j for submit@debbugs.gnu.org; Sat, 10 May 2014 13:21:07 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39599) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wj9Lh-0002ta-IR for submit@debbugs.gnu.org; Sat, 10 May 2014 11:38:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wj9La-00010g-J3 for submit@debbugs.gnu.org; Sat, 10 May 2014 11:37:59 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:54494) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wj9La-00010c-Fh for submit@debbugs.gnu.org; Sat, 10 May 2014 11:37:58 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41300) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wj9LZ-0000Zb-79 for bug-gnu-emacs@gnu.org; Sat, 10 May 2014 11:37:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wj9LU-0000zq-4y for bug-gnu-emacs@gnu.org; Sat, 10 May 2014 11:37:57 -0400 Received: from mail-lb0-x233.google.com ([2a00:1450:4010:c04::233]:36512) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wj9LT-0000zQ-NN for bug-gnu-emacs@gnu.org; Sat, 10 May 2014 11:37:52 -0400 Received: by mail-lb0-f179.google.com with SMTP id c11so6181206lbj.24 for ; Sat, 10 May 2014 08:37:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=7sx9dienj2lT89mFUSgmBJWQZCmSG44L8OuQrO5FxUE=; b=G5muaUYhhlDnWvwGTnQVOpB7AwfxGu6qqPVq7u5Hr49/QU24E33fzzsfGk165qukse HYG8QYqDVpyGcg68oh1Br6uQNd7y8vMQ6pGvWI52xZlMN6Tm3cnz+cGXsnHK7AcnmDtF pkuh16oE6us2hAfRtI7Ns73Z9eksj4yUVlvaMyxqGu0QV3FARhWJ3WdtiijdeBc3CV03 9ApsBDzuC6NFCHS+TGVJi+N9EDOEq8jXK26ETDt9NmZ9SUomblhgC5/f2AU7rrbLy26i /9yEqKysK/rrpXYyzodIV0k3uGtNgbdzPIDD9eRVk5n+wdENbbjfhBaM2cmWnkVnaQUH QyVQ== MIME-Version: 1.0 X-Received: by 10.112.135.39 with SMTP id pp7mr15919982lbb.29.1399736269763; Sat, 10 May 2014 08:37:49 -0700 (PDT) Received: by 10.112.170.105 with HTTP; Sat, 10 May 2014 08:37:49 -0700 (PDT) Date: Sat, 10 May 2014 17:37:49 +0200 Message-ID: From: Santiago =?UTF-8?Q?Pay=C3=A0?= i Miralta Content-Type: multipart/alternative; boundary=089e01228d1a237b9e04f90d7fd8 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Mailman-Approved-At: Sat, 10 May 2014 13:21:04 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --089e01228d1a237b9e04f90d7fd8 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi emacs, I wish to fix the lisp/vc/vc-hg.el (vc-hg-unregister) function with the hg forget command. Since Mercurial 1.3 (2009) "forget" shorthands "remove -Af". As the forget help says forget mark the specified files so they will no longer be tracked after the next commit. This only removes files from the current branch, not from the entire project history, and it does not delete them from the working directory. 2014-05-17 Santiago Pay=C3=A0 i Miralta * lisp/vc/vc-hg.el (vc-hg-unregister): Fixed with the hg forget command. >From f38abf59917445fb96c2950e8880f3e40b896ecc Mon Sep 17 00:00:00 2001 From: Santiago Pay=C3=A0 i Miralta Date: Sat, 10 May 2014 11:54:49 +0200 Subject: [PATCH] * lisp/vc/vc-hg.el (vc-hg-unregister): Fixed with the hg forget command. Since Mercurial 1.3 (2009) "forget" shorthands "remove -Af". Forget mark the specified files so they will no longer be tracked after the next commit. This only removes files from the current branch, not from the entire project history, and it does not delete them from the working directory. --- lisp/vc/vc-hg.el | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lisp/vc/vc-hg.el b/lisp/vc/vc-hg.el index a53ed87..05b53a3 100644 --- a/lisp/vc/vc-hg.el +++ b/lisp/vc/vc-hg.el @@ -60,7 +60,7 @@ ;; - responsible-p (file) OK ;; - could-register (file) OK ;; - receive-file (file rev) ?? PROBABLY NOT NEEDED -;; - unregister (file) COMMENTED OUT, MAY BE INCORRECT +;; - unregister (file) OK ;; * checkin (files rev comment) OK ;; * find-revision (file rev buffer) OK ;; * checkout (file &optional editable rev) OK @@ -436,10 +436,9 @@ COMMENT is ignored." ;; registered. (error)))) -;; FIXME: This would remove the file. Is that correct? -;; (defun vc-hg-unregister (file) -;; "Unregister FILE from hg." -;; (vc-hg-command nil nil file "remove")) +(defun vc-hg-unregister (file) + "Unregister FILE from hg." + (vc-hg-command nil 0 file "forget")) (declare-function log-edit-extract-headers "log-edit" (headers string)) --=20 1.7.9.5 --089e01228d1a237b9e04f90d7fd8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi emacs,
=

I wish to fix = the lisp/vc/vc-hg.el (vc-hg-unregister) function with the hg forget command= .

Since Mercurial 1.3 (2009)= "forget" shorthands "remove -Af".

As the forget help says fo= rget mark the specified files so they will no longer be tracked=C2=A0after the next commit. This only removes files from the current=C2=A0<= /span>branch, not f= rom the entire project history, and it does not delete=C2=A0them= from the working directory.

2014-05-17 Santiago Pay=C3= =A0 i Miralta <santiagopim@gmai= l.com>

=C2=A0 =C2=A0 =C2=A0 =C2= =A0 *=C2=A0lisp/vc/vc-hg.el (vc-hg-unregister):
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Fixed with the hg forget comman= d.

From f38abf59917445fb96= c2950e8880f3e40b896ecc Mon Sep 17 00:00:00 2001
From: Santiago Pay=C3=A0 i Miralta <santiagopim@gmail.com>
Date: Sat, 10 May 2014 11:54:49 +0200
Subject: [PATCH] * lisp/vc/vc-hg.el (vc-hg-unr= egister): Fixed with the hg
=C2=A0forget = command.

Since Mercurial 1.3 (2009) "forget" shorthands "remov= e -Af".

Forget = mark the specified files so they will no longer be tracked
after the next commit. This only removes files from the = current
branch, not from the entire project history, a= nd it does not delete
them from the worki= ng directory.
---
=C2=A0lisp/vc/vc-hg.el | =C2=A0 =C2=A09 ++++-----
=C2=A01 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/l= isp/vc/vc-hg.el b/lisp/vc/vc-hg.el
index a53ed87..05b53a3 100644
--- a/lisp/vc/vc-hg.el
+++ b/lisp/vc/vc-hg.el
@@ -60,7 +60,7 @@=
=C2=A0;; - responsible-p (file) =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0OK
=C2=A0;; - could-register (file) =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 OK
=C2=A0;; - receive-file (file rev) =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ?? PROBABLY NOT NEEDED
-;; - unregister (file) =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 COMMENTED OU= T, MAY BE INCORRECT
+;; - unregister (fil= e) =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 OK
=C2=A0;; * checkin (files rev comment) =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 OK
=C2=A0;; * find-revision= (file rev buffer) =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 OK
=C2=A0;; * checkout (file &optional editable rev) =C2= =A0 =C2=A0OK
@@ -436,10 +436,9 @@ COMMENT is ignored."=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 ;; registered.
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 (error))))
=C2=A0
-;; FIXME: This would remove the file. Is that= correct?
-;; (defun vc-hg-unregister (fi= le)
-;; =C2=A0 "Unregister FILE from= hg."
-;; =C2=A0 (vc-hg-command nil nil file "r= emove"))
+(defun vc-hg-unregister (f= ile)
+ =C2=A0"Unregister FILE from h= g."
+ =C2=A0(vc-hg-command nil 0 file "forget= "))
=C2=A0
=C2=A0(declare-function log-edit-extract-headers "log-edit&qu= ot; (headers string))
=C2=A0
--=C2= =A0
1.7.9.5

--089e01228d1a237b9e04f90d7fd8-- From unknown Thu Aug 21 14:53:02 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Santiago =?UTF-8?Q?Pay=C3=A0?= i Miralta Subject: bug#17454: closed (Re: bug#17454: lisp/vc/vc-hg.el: vc-hg-unregister fixed with the hg forget command.) Message-ID: References: X-Gnu-PR-Message: they-closed 17454 X-Gnu-PR-Package: emacs Reply-To: 17454@debbugs.gnu.org Date: Sun, 11 May 2014 02:02:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1399773723-15973-1" This is a multi-part message in MIME format... ------------=_1399773723-15973-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #17454: lisp/vc/vc-hg.el: vc-hg-unregister fixed with the hg forget command. which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 17454@debbugs.gnu.org. --=20 17454: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D17454 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1399773723-15973-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 17454-done) by debbugs.gnu.org; 11 May 2014 02:01:43 +0000 Received: from localhost ([127.0.0.1]:58507 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WjJ5C-000490-5W for submit@debbugs.gnu.org; Sat, 10 May 2014 22:01:42 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:37816 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WjJ59-00048p-Ia for 17454-done@debbugs.gnu.org; Sat, 10 May 2014 22:01:40 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1WjJ58-0005rJ-3d; Sat, 10 May 2014 22:01:38 -0400 From: Glenn Morris To: 17454-done@debbugs.gnu.org Subject: Re: bug#17454: lisp/vc/vc-hg.el: vc-hg-unregister fixed with the hg forget command. References: X-Spook: Dick Cheney analyzer TELINT Craig Livingstone White Water X-Ran: W`1!b(w]\jyHkrDC*zZh.ALXCOQ1y68;\\2U7FtlDU63hO"C!uERBAwNK2iplU+Mx=nzgG X-Hue: green X-Debbugs-No-Ack: yes X-Attribution: GM Date: Sat, 10 May 2014 22:01:37 -0400 In-Reply-To: ("Santiago =?utf-8?Q?Pay=C3=A0?= i Miralta"'s message of "Sat, 10 May 2014 17:37:49 +0200") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.7 (-----) X-Debbugs-Envelope-To: 17454-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.7 (-----) Version: 24.3.91 Thank you; applied to emacs-24 branch. ------------=_1399773723-15973-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 10 May 2014 17:21:07 +0000 Received: from localhost ([127.0.0.1]:58268 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WjAxO-000771-2j for submit@debbugs.gnu.org; Sat, 10 May 2014 13:21:07 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39599) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wj9Lh-0002ta-IR for submit@debbugs.gnu.org; Sat, 10 May 2014 11:38:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wj9La-00010g-J3 for submit@debbugs.gnu.org; Sat, 10 May 2014 11:37:59 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:54494) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wj9La-00010c-Fh for submit@debbugs.gnu.org; Sat, 10 May 2014 11:37:58 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41300) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wj9LZ-0000Zb-79 for bug-gnu-emacs@gnu.org; Sat, 10 May 2014 11:37:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wj9LU-0000zq-4y for bug-gnu-emacs@gnu.org; Sat, 10 May 2014 11:37:57 -0400 Received: from mail-lb0-x233.google.com ([2a00:1450:4010:c04::233]:36512) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wj9LT-0000zQ-NN for bug-gnu-emacs@gnu.org; Sat, 10 May 2014 11:37:52 -0400 Received: by mail-lb0-f179.google.com with SMTP id c11so6181206lbj.24 for ; Sat, 10 May 2014 08:37:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=7sx9dienj2lT89mFUSgmBJWQZCmSG44L8OuQrO5FxUE=; b=G5muaUYhhlDnWvwGTnQVOpB7AwfxGu6qqPVq7u5Hr49/QU24E33fzzsfGk165qukse HYG8QYqDVpyGcg68oh1Br6uQNd7y8vMQ6pGvWI52xZlMN6Tm3cnz+cGXsnHK7AcnmDtF pkuh16oE6us2hAfRtI7Ns73Z9eksj4yUVlvaMyxqGu0QV3FARhWJ3WdtiijdeBc3CV03 9ApsBDzuC6NFCHS+TGVJi+N9EDOEq8jXK26ETDt9NmZ9SUomblhgC5/f2AU7rrbLy26i /9yEqKysK/rrpXYyzodIV0k3uGtNgbdzPIDD9eRVk5n+wdENbbjfhBaM2cmWnkVnaQUH QyVQ== MIME-Version: 1.0 X-Received: by 10.112.135.39 with SMTP id pp7mr15919982lbb.29.1399736269763; Sat, 10 May 2014 08:37:49 -0700 (PDT) Received: by 10.112.170.105 with HTTP; Sat, 10 May 2014 08:37:49 -0700 (PDT) Date: Sat, 10 May 2014 17:37:49 +0200 Message-ID: Subject: lisp/vc/vc-hg.el: vc-hg-unregister fixed with the hg forget command. From: =?UTF-8?Q?Santiago_Pay=C3=A0_i_Miralta?= To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=089e01228d1a237b9e04f90d7fd8 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 10 May 2014 13:21:04 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --089e01228d1a237b9e04f90d7fd8 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi emacs, I wish to fix the lisp/vc/vc-hg.el (vc-hg-unregister) function with the hg forget command. Since Mercurial 1.3 (2009) "forget" shorthands "remove -Af". As the forget help says forget mark the specified files so they will no longer be tracked after the next commit. This only removes files from the current branch, not from the entire project history, and it does not delete them from the working directory. 2014-05-17 Santiago Pay=C3=A0 i Miralta * lisp/vc/vc-hg.el (vc-hg-unregister): Fixed with the hg forget command. >From f38abf59917445fb96c2950e8880f3e40b896ecc Mon Sep 17 00:00:00 2001 From: Santiago Pay=C3=A0 i Miralta Date: Sat, 10 May 2014 11:54:49 +0200 Subject: [PATCH] * lisp/vc/vc-hg.el (vc-hg-unregister): Fixed with the hg forget command. Since Mercurial 1.3 (2009) "forget" shorthands "remove -Af". Forget mark the specified files so they will no longer be tracked after the next commit. This only removes files from the current branch, not from the entire project history, and it does not delete them from the working directory. --- lisp/vc/vc-hg.el | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lisp/vc/vc-hg.el b/lisp/vc/vc-hg.el index a53ed87..05b53a3 100644 --- a/lisp/vc/vc-hg.el +++ b/lisp/vc/vc-hg.el @@ -60,7 +60,7 @@ ;; - responsible-p (file) OK ;; - could-register (file) OK ;; - receive-file (file rev) ?? PROBABLY NOT NEEDED -;; - unregister (file) COMMENTED OUT, MAY BE INCORRECT +;; - unregister (file) OK ;; * checkin (files rev comment) OK ;; * find-revision (file rev buffer) OK ;; * checkout (file &optional editable rev) OK @@ -436,10 +436,9 @@ COMMENT is ignored." ;; registered. (error)))) -;; FIXME: This would remove the file. Is that correct? -;; (defun vc-hg-unregister (file) -;; "Unregister FILE from hg." -;; (vc-hg-command nil nil file "remove")) +(defun vc-hg-unregister (file) + "Unregister FILE from hg." + (vc-hg-command nil 0 file "forget")) (declare-function log-edit-extract-headers "log-edit" (headers string)) --=20 1.7.9.5 --089e01228d1a237b9e04f90d7fd8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi emacs,
=

I wish to fix = the lisp/vc/vc-hg.el (vc-hg-unregister) function with the hg forget command= .

Since Mercurial 1.3 (2009)= "forget" shorthands "remove -Af".

As the forget help says fo= rget mark the specified files so they will no longer be tracked=C2=A0after the next commit. This only removes files from the current=C2=A0<= /span>branch, not f= rom the entire project history, and it does not delete=C2=A0them= from the working directory.

2014-05-17 Santiago Pay=C3= =A0 i Miralta <santiagopim@gmai= l.com>

=C2=A0 =C2=A0 =C2=A0 =C2= =A0 *=C2=A0lisp/vc/vc-hg.el (vc-hg-unregister):
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Fixed with the hg forget comman= d.

From f38abf59917445fb96= c2950e8880f3e40b896ecc Mon Sep 17 00:00:00 2001
From: Santiago Pay=C3=A0 i Miralta <santiagopim@gmail.com>
Date: Sat, 10 May 2014 11:54:49 +0200
Subject: [PATCH] * lisp/vc/vc-hg.el (vc-hg-unr= egister): Fixed with the hg
=C2=A0forget = command.

Since Mercurial 1.3 (2009) "forget" shorthands "remov= e -Af".

Forget = mark the specified files so they will no longer be tracked
after the next commit. This only removes files from the = current
branch, not from the entire project history, a= nd it does not delete
them from the worki= ng directory.
---
=C2=A0lisp/vc/vc-hg.el | =C2=A0 =C2=A09 ++++-----
=C2=A01 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/l= isp/vc/vc-hg.el b/lisp/vc/vc-hg.el
index a53ed87..05b53a3 100644
--- a/lisp/vc/vc-hg.el
+++ b/lisp/vc/vc-hg.el
@@ -60,7 +60,7 @@=
=C2=A0;; - responsible-p (file) =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0OK
=C2=A0;; - could-register (file) =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 OK
=C2=A0;; - receive-file (file rev) =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ?? PROBABLY NOT NEEDED
-;; - unregister (file) =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 COMMENTED OU= T, MAY BE INCORRECT
+;; - unregister (fil= e) =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 OK
=C2=A0;; * checkin (files rev comment) =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 OK
=C2=A0;; * find-revision= (file rev buffer) =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 OK
=C2=A0;; * checkout (file &optional editable rev) =C2= =A0 =C2=A0OK
@@ -436,10 +436,9 @@ COMMENT is ignored."=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 ;; registered.
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 (error))))
=C2=A0
-;; FIXME: This would remove the file. Is that= correct?
-;; (defun vc-hg-unregister (fi= le)
-;; =C2=A0 "Unregister FILE from= hg."
-;; =C2=A0 (vc-hg-command nil nil file "r= emove"))
+(defun vc-hg-unregister (f= ile)
+ =C2=A0"Unregister FILE from h= g."
+ =C2=A0(vc-hg-command nil 0 file "forget= "))
=C2=A0
=C2=A0(declare-function log-edit-extract-headers "log-edit&qu= ot; (headers string))
=C2=A0
--=C2= =A0
1.7.9.5

--089e01228d1a237b9e04f90d7fd8-- ------------=_1399773723-15973-1--