GNU bug report logs -
#14169
vc: [bzr] Small nuissance when invoking 'log-view-diff-changeset'
Previous Next
Reported by: Lluís Vilanova <vilanova <at> ac.upc.edu>
Date: Tue, 9 Apr 2013 20:12:02 UTC
Severity: minor
Fixed in version 24.4
Done: Glenn Morris <rgm <at> gnu.org>
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 14169 in the body.
You can then email your comments to 14169 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14169
; Package
emacs
.
(Tue, 09 Apr 2013 20:12:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Lluís Vilanova <vilanova <at> ac.upc.edu>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 09 Apr 2013 20:12:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
When issuing 'vc-print-log', the results of "bzr log" have a line of '-'
characters prepended to every revision.
The net result is that point is set to the first line of the output, which is a
line with '-' characters, and 'log-view-diff-changeset' is unable to show the
diff for that line.
It also feels inconsistent that hitting 'D' on any other line of '-' characters
shows the diff for the previous revision (while that line is, in fact, a prefix
for the revision that comes below).
Thanks,
Lluis
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14169
; Package
emacs
.
(Thu, 25 Apr 2013 01:53:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 14169 <at> debbugs.gnu.org (full text, mbox):
Lluís Vilanova wrote:
> When issuing 'vc-print-log', the results of "bzr log" have a line of '-'
> characters prepended to every revision.
>
> The net result is that point is set to the first line of the output,
> which is a line with '-' characters, and 'log-view-diff-changeset' is
> unable to show the diff for that line.
There's two issues here.
svn also has ----- lines, yet vc-print-log manages to move point to the
line with the first revision number on.
When visiting a file under SVN, we manage to set the working revision to
the last revision in which that file was modified. See comment in
vc-svn-parse-status:
;; Use the last-modified revision, so that searching in vc-print-log
;; output works.
vc-print-log is able to move point to this revision.
With bzr, the only revision number we can get is the one in which the
repository was last modified. If the file in question was not modified
in this revision, vc-print-log doesn't find that revision and so leaves
point at point-min.
I don't think there is any bzr fix for this.
> It also feels inconsistent that hitting 'D' on any other line of '-'
> characters shows the diff for the previous revision (while that line
> is, in fact, a prefix for the revision that comes below).
(Same issue for svn. svn also fails if you move to the first line of the
buffer.)
The second issue is that log-view-current-entry assumes that the
revision number is always on the first line of a log entry.
It finds revisions by doing (forward-line 1), then searching backwards
for log-view-message-re. This can miss revisions.
Maybe it could instead first search forwards, then backwards.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14169
; Package
emacs
.
(Thu, 25 Apr 2013 05:19:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 14169 <at> debbugs.gnu.org (full text, mbox):
Maybe this is good enough in practice:
*** lisp/vc/log-view.el 2013-01-01 09:11:05 +0000
--- lisp/vc/log-view.el 2013-04-25 05:07:46 +0000
***************
*** 317,323 ****
result)
(save-excursion
(when pos (goto-char pos))
! (forward-line 1)
(while looping
(setq pos (re-search-backward log-view-message-re nil 'move)
looping (and pos (log-view-inside-comment-p (point)))))
--- 317,324 ----
result)
(save-excursion
(when pos (goto-char pos))
! (forward-line 0)
! (forward-line (if (looking-at "-\\{20,\\}$") 2 1))
(while looping
(setq pos (re-search-backward log-view-message-re nil 'move)
looping (and pos (log-view-inside-comment-p (point)))))
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14169
; Package
emacs
.
(Fri, 26 Apr 2013 11:15:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 14169 <at> debbugs.gnu.org (full text, mbox):
Glenn Morris writes:
> Maybe this is good enough in practice:
Works like a charm, thanks.
Reply sent
to
Glenn Morris <rgm <at> gnu.org>
:
You have taken responsibility.
(Sat, 27 Apr 2013 21:30:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Lluís Vilanova <vilanova <at> ac.upc.edu>
:
bug acknowledged by developer.
(Sat, 27 Apr 2013 21:30:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 14169-done <at> debbugs.gnu.org (full text, mbox):
Version: 24.4
Applied.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 26 May 2013 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 12 years and 2 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.