GNU bug report logs -
#2092
23.0.60; vc-svn-diff
Previous Next
Reported by: Nick Roberts <nickrob <at> snap.net.nz>
Date: Wed, 28 Jan 2009 07:15:02 UTC
Severity: normal
Done: Nick Roberts <nickrob <at> snap.net.nz>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 2092 in the body.
You can then email your comments to 2092 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#2092
; Package
emacs
.
(Wed, 28 Jan 2009 07:15:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Nick Roberts <nickrob <at> snap.net.nz>
:
New bug report received and forwarded. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Wed, 28 Jan 2009 07:15:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
vc-svn-diff fails when oldvers equals (vc-working-revision f).
In that case "svn diff" executes with no -r argument and only gives
a diff if the file is locally modified.
To see this bug, do vc-print-log on a file under Subversion control that
needs an update (newer revisions have been committed by someone else).
Place the cursor over the revision after (in time) the working-revision (the
revison with the number in the modeline) and press d (log-viw-diff).
I think this clause needs to be removed:
(and oldvers
files
(catch 'no
(dolist (f files)
(or (equal oldvers (vc-working-revision f))
(throw 'no nil)))
t)
;; Use nil rather than the current revision because svn handles
;; it better (i.e. locally). Note that if _any_ of the files
;; has a different revision, we fetch the lot, which is
;; obviously sub-optimal.
(setq oldvers nil))
I don't see how it could ever work (please note that I'm not saying that
it could never work just that I don't see how it could).
--
Nick http://www.inet.net.nz/~nickrob
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#2092
; Package
emacs
.
(Mon, 02 Feb 2009 17:15:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Stefan Monnier <monnier <at> iro.umontreal.ca>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Mon, 02 Feb 2009 17:15:03 GMT)
Full text and
rfc822 format available.
Message #10 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
> vc-svn-diff fails when oldvers equals (vc-working-revision f).
> In that case "svn diff" executes with no -r argument and only gives
> a diff if the file is locally modified.
That's the right behavior when newvers is nil, isn't it?
> I don't see how it could ever work (please note that I'm not saying that
> it could never work just that I don't see how it could).
I think it was written assuming (incorrectly) that "newvers == nil".
Is the bug fixed if you add (null newvers) to the conjunction?
Stefan
PS: I see you've already removed this code, but I remember we added
specifically upon request from some users, so it would be better to fix
it than to remove it.
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#2092
; Package
emacs
.
(Mon, 02 Feb 2009 17:15:04 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Stefan Monnier <monnier <at> iro.umontreal.ca>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Mon, 02 Feb 2009 17:15:04 GMT)
Full text and
rfc822 format available.
Reply sent
to
Nick Roberts <nickrob <at> snap.net.nz>
:
You have taken responsibility.
(Wed, 04 Feb 2009 11:10:04 GMT)
Full text and
rfc822 format available.
Notification sent
to
Nick Roberts <nickrob <at> snap.net.nz>
:
bug acknowledged by developer.
(Wed, 04 Feb 2009 11:10:04 GMT)
Full text and
rfc822 format available.
Message #20 received at 2092-done <at> emacsbugs.donarmstrong.com (full text, mbox):
> > vc-svn-diff fails when oldvers equals (vc-working-revision f).
> > In that case "svn diff" executes with no -r argument and only gives
> > a diff if the file is locally modified.
>
> That's the right behavior when newvers is nil, isn't it?
>
> > I don't see how it could ever work (please note that I'm not saying that
> > it could never work just that I don't see how it could).
>
> I think it was written assuming (incorrectly) that "newvers == nil".
> Is the bug fixed if you add (null newvers) to the conjunction?
>
>
> Stefan
>
>
> PS: I see you've already removed this code, but I remember we added
> specifically upon request from some users, so it would be better to fix
> it than to remove it.
OK, I've looked through the archives. I find it odd because:
1) I think that svn should be able to work out whether it can handle a
request locally (a bug in svn?).
2) If you do "C-x v =" there is no problem.
3) I can only see a problem with "C-u C-x v =" with the default values which
is eqivalent to 2).
So it looks very much like a corner case.
Anyway I've done as you say.
--
Nick http://www.inet.net.nz/~nickrob
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#2092
; Package
emacs
.
(Wed, 04 Feb 2009 12:15:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Nick Roberts <nickrob <at> snap.net.nz>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Wed, 04 Feb 2009 12:15:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#2092
; Package
emacs
.
(Wed, 04 Feb 2009 19:50:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Stefan Monnier <monnier <at> IRO.UMontreal.CA>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Wed, 04 Feb 2009 19:50:03 GMT)
Full text and
rfc822 format available.
Message #30 received at 2092 <at> emacsbugs.donarmstrong.com (full text, mbox):
> OK, I've looked through the archives. I find it odd because:
> 1) I think that svn should be able to work out whether it can handle a
> request locally (a bug in svn?).
Agreed.
> 2) If you do "C-x v =" there is no problem.
Yes, in that case OLDVERS is nil.
> 3) I can only see a problem with "C-u C-x v =" with the default values which
> is eqivalent to 2).
Indeed. Basically, `svn diff foo' works locally, whereas `svn diff -r
REV foo' never works locally, even if VERS is the current working
revision (in which case the result should be identical to `svn diff
foo'). It's arguably a misfeature of `svn'.
> So it looks very much like a corner case.
It is.
> Anyway I've done as you say.
Thank you.
Stefan
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> emacsbugs.donarmstrong.com
.
(Thu, 05 Mar 2009 15:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 16 years and 110 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.