all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: "Lluís Vilanova" <vilanova@ac.upc.edu>
Cc: 14169@debbugs.gnu.org
Subject: bug#14169: vc: [bzr] Small nuissance when invoking 'log-view-diff-changeset'
Date: Wed, 24 Apr 2013 21:47:08 -0400	[thread overview]
Message-ID: <rnzjwns7oj.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <87bo9nxyc1.fsf@fimbulvetr.bsc.es> ("Lluís Vilanova"'s message of "Tue, 09 Apr 2013 22:07:10 +0200")

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.
 





  reply	other threads:[~2013-04-25  1:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-09 20:07 bug#14169: vc: [bzr] Small nuissance when invoking 'log-view-diff-changeset' Lluís Vilanova
2013-04-25  1:47 ` Glenn Morris [this message]
2013-04-25  5:12   ` Glenn Morris
2013-04-26 11:14     ` Lluís Vilanova
2013-04-27 21:29     ` Glenn Morris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=rnzjwns7oj.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=14169@debbugs.gnu.org \
    --cc=vilanova@ac.upc.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.