all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#6249: 23.2: vc-revert don't works in git
@ 2010-05-22 18:58 Mario Castelan Castro
  2010-05-23 19:49 ` Dan Nicolaescu
  0 siblings, 1 reply; 4+ messages in thread
From: Mario Castelan Castro @ 2010-05-22 18:58 UTC (permalink / raw)
  To: 6249; +Cc: marioxcc

-----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-----





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#6249: 23.2: vc-revert don't works in git
  2010-05-22 18:58 bug#6249: 23.2: vc-revert don't works in git Mario Castelan Castro
@ 2010-05-23 19:49 ` Dan Nicolaescu
  2010-05-26 20:27   ` Mario Castelan Castro
  0 siblings, 1 reply; 4+ messages in thread
From: Dan Nicolaescu @ 2010-05-23 19:49 UTC (permalink / raw)
  To: Mario Castelan Castro; +Cc: 6249

Mario Castelan Castro <marioxcc@gnu.org> writes:

> 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*).


I can't reproduce this.
Can you please describe step by step what you are doing, starting with 
emacs -Q?






^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#6249: 23.2: vc-revert don't works in git
  2010-05-23 19:49 ` Dan Nicolaescu
@ 2010-05-26 20:27   ` Mario Castelan Castro
  2010-06-01  7:09     ` Dan Nicolaescu
  0 siblings, 1 reply; 4+ messages in thread
From: Mario Castelan Castro @ 2010-05-26 20:27 UTC (permalink / raw)
  To: Dan Nicolaescu; +Cc: marioxcc, 6249

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

May 26th 2010 for Dan Nicolaescu <dann@gnu.org> copy in
6249@debbugs.gnu.org thread "bug#6249: 23.2: vc-revert don't works in
git".

Hi Dan.

Please excuse my late reponse.  I got a bit busy.

I just installed git 1.7.1, and this appears to fix the problem too,
more likely it's a bug or design change in GIT what makes vc-revert
don't work with the old GIT version.

When I had the problem I was using GIT 1.5.6.5 (The one than comes
with debian lenny.

Regards and thanks.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEAREIAAYFAkv9hDcACgkQZ4DA0TLic4igigCfX/06SOKW7ghIfU2FM5IqhLSA
nKwAn33pgUS25O/C8kOKRhFymM+umyXO
=ntZI
-----END PGP SIGNATURE-----





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#6249: 23.2: vc-revert don't works in git
  2010-05-26 20:27   ` Mario Castelan Castro
@ 2010-06-01  7:09     ` Dan Nicolaescu
  0 siblings, 0 replies; 4+ messages in thread
From: Dan Nicolaescu @ 2010-06-01  7:09 UTC (permalink / raw)
  To: Mario Castelan Castro; +Cc: 6249-done

Mario Castelan Castro <marioxcc@gnu.org> writes:

> May 26th 2010 for Dan Nicolaescu <dann@gnu.org> copy in
> 6249@debbugs.gnu.org thread "bug#6249: 23.2: vc-revert don't works in
> git".
>
> Hi Dan.
>
> Please excuse my late reponse.  I got a bit busy.
>
> I just installed git 1.7.1, and this appears to fix the problem too,

Closing the bug then.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-06-01  7:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-22 18:58 bug#6249: 23.2: vc-revert don't works in git Mario Castelan Castro
2010-05-23 19:49 ` Dan Nicolaescu
2010-05-26 20:27   ` Mario Castelan Castro
2010-06-01  7:09     ` Dan Nicolaescu

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.