From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mario Castelan Castro Newsgroups: gmane.emacs.bugs Subject: bug#6249: 23.2: vc-revert don't works in git Date: Sat, 22 May 2010 13:58:59 -0500 Message-ID: <87ljbb226k.fsf@Q6600-0.ver.megared.net.mx> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1274636669 12518 80.91.229.12 (23 May 2010 17:44:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 23 May 2010 17:44:29 +0000 (UTC) Cc: marioxcc@gnu.org To: 6249@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 23 19:44:27 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-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 1OGFDp-0002Gn-CE for geb-bug-gnu-emacs@m.gmane.org; Sun, 23 May 2010 19:44:21 +0200 Original-Received: from localhost ([127.0.0.1]:36852 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OGFDn-0006Tl-LW for geb-bug-gnu-emacs@m.gmane.org; Sun, 23 May 2010 13:44:19 -0400 Original-Received: from [140.186.70.92] (port=36962 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OFuLn-0002Fr-9j for bug-gnu-emacs@gnu.org; Sat, 22 May 2010 15:27:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OFuLj-00039C-J2 for bug-gnu-emacs@gnu.org; Sat, 22 May 2010 15:27:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45032) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OFuLj-000398-H6 for bug-gnu-emacs@gnu.org; Sat, 22 May 2010 15:27:07 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OFu2I-0007Hh-5b; Sat, 22 May 2010 15:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mario Castelan Castro Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 May 2010 19:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6249 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.127455521727992 (code B ref -1); Sat, 22 May 2010 19:07:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 May 2010 19:06:57 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OFu2C-0007HR-Jo for submit@debbugs.gnu.org; Sat, 22 May 2010 15:06:57 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OFttF-0007DI-OD for submit@debbugs.gnu.org; Sat, 22 May 2010 14:57:42 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:47145) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OFttB-0000rZ-7S for submit@debbugs.gnu.org; Sat, 22 May 2010 14:57:37 -0400 Original-Received: from [199.232.76.173] (port=54720 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OFttA-0005tD-O4 for bug-gnu-emacs@gnu.org; Sat, 22 May 2010 14:57:36 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1OFtt9-0000rT-Dv for bug-gnu-emacs@gnu.org; Sat, 22 May 2010 14:57:36 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:43654) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1OFtt9-0000rP-2D for bug-gnu-emacs@gnu.org; Sat, 22 May 2010 14:57:35 -0400 Original-Received: from localhost ([127.0.0.1]:42476 helo=Q6600-0.ver.megared.net.mx) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OFtt5-0003YG-7E; Sat, 22 May 2010 14:57:31 -0400 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Sat, 22 May 2010 15:06:55 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 22 May 2010 15:07:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Sun, 23 May 2010 13:44:08 -0400 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:37212 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 NotDashEscaped: You need GnuPG to verify this message May 22th 2010 in bug-gnu-emacs@gnu.org thread "23.2: vc-revert don't works in git" Hi. I found a possible bug: Running M-x vc-revert from a buffer displaying a GIT-versioned file with non commited changes gives a message like this, for each modified file: FILE: needs update I.e: If the only modified file, wich I want to revert is program.c i get: program.c: needs update If there are more modified files, the message lists all them (I'ts the same message if I run M-x vc-revert from program.c, program.h or *vc-dir*). program.c: needs update program.h: needs update Removing a line from vc-git.el appears to fix the problem. This line was added after 23.1 but before 23.2. 23.1 didn't gave this problem. Here is the "patch" than removes the lines (Made againsting the BZR revision 100413): === modified file 'lisp/vc-git.el' *** lisp/vc-git.el 2010-04-21 02:05:24 +0000 --- lisp/vc-git.el 2010-05-22 18:43:28 +0000 *************** or an empty string if none." *** 577,583 **** "Revert FILE to the version stored in the git repository." (if contents-done (vc-git-command nil 0 file "update-index" "--") - (vc-git-command nil 0 file "reset" "-q" "--") (vc-git-command nil nil file "checkout" "-q" "--"))) ;;; HISTORY FUNCTIONS --- 577,582 ---- Regards and thanks. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEAREIAAYFAkv4KUUACgkQZ4DA0TLic4gZIwCfWABBFCX9Ae5UT2KApGWrWMzy RZAAnjtzDQNQ8zGhAcZCHRYkDsSjj37D =I8j7 -----END PGP SIGNATURE-----