GNU bug report logs - #6326
23.1.95; `vc-diff' sometimes reports wrong diff status

Previous Next

Package: emacs;

Reported by: Markus Triska <markus.triska <at> gmx.at>

Date: Wed, 2 Jun 2010 03:12:01 UTC

Severity: normal

Found in version 23.1.95

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 6326 <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> gnu.org>
To: Dan Nicolaescu <dann <at> gnu.org>
Cc: 6326 <at> debbugs.gnu.org, Markus Triska <markus.triska <at> gmx.at>
Subject: Re: bug#6326: 23.1.95; `vc-diff' sometimes reports wrong diff status
Date: Mon, 29 Oct 2012 19:13:12 +0800
Dan Nicolaescu <dann <at> gnu.org> writes:

>> When I open (in emacs -Q) a file under "git" version control and:
>>
>>    1) view its log with: C-x v l
>>    2) open any previous revision, for example: n n n f
>>    3) save the previous revision under a different name:
>>       C-x C-w difrev.txt RET
>>    4) on difrev.txt, run `vc-diff' with: C-x v =
>>
>> it unexpectedly says: "No changes between working revision and
>> workfile". It SHOULD say that the file is NOT under version control.
>> Also other operations like C-x v l should say this but currently don't
>> (C-x v l instead unexpectedly displays the log of the original file).
>
> This because `vc-parent-file' still points to the original file. 
> Maybe `vc-file-clearprops' (called from `write-file') should also
> reset `vc-parent-file'.

I think you're right.  Done in trunk.




This bug report was last modified 12 years and 267 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.