* 23.0.60; vc-hg-annotate-command version number bug + patch
@ 2008-05-16 20:22 David Hull
2008-05-17 15:18 ` Dan Nicolaescu
0 siblings, 1 reply; 2+ messages in thread
From: David Hull @ 2008-05-16 20:22 UTC (permalink / raw)
To: emacs-pretest-bug
There is a small problem in the function vc-hg-annotate-command that
causes the code that deletes up to the first line of the sources to
delete too far if the first line of sources starts with a space, such
as the following:
0 Fri Apr 25 18:04:19 2008 -0700: #! /usr/bin/perl
0 Fri Apr 25 18:04:19 2008 -0700:
36 Tue May 13 17:55:19 2008 -0700: my @fields = @{$e->{field}};
This patch fixes the problem:
Index: vc-hg.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/vc-hg.el,v
retrieving revision 1.77
diff -u -r1.77 vc-hg.el
--- vc-hg.el 15 May 2008 17:38:47 -0000 1.77
+++ vc-hg.el 16 May 2008 19:49:59 -0000
@@ -288,8 +288,8 @@
(when revision (concat "-r" revision)))
(with-current-buffer buffer
(goto-char (point-min))
- (re-search-forward "^[0-9]")
- (delete-region (point-min) (1- (point)))))
+ (re-search-forward "^[ \t]*[0-9]")
+ (delete-region (point-min) (match-beginning 0))))
;; The format for one line output by "hg annotate -d -n" looks like this:
--
David Hull
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: 23.0.60; vc-hg-annotate-command version number bug + patch
2008-05-16 20:22 23.0.60; vc-hg-annotate-command version number bug + patch David Hull
@ 2008-05-17 15:18 ` Dan Nicolaescu
0 siblings, 0 replies; 2+ messages in thread
From: Dan Nicolaescu @ 2008-05-17 15:18 UTC (permalink / raw)
To: David Hull; +Cc: emacs-pretest-bug
David Hull <david@snap.com> writes:
> There is a small problem in the function vc-hg-annotate-command that
> causes the code that deletes up to the first line of the sources to
> delete too far if the first line of sources starts with a space, such
> as the following:
>
> 0 Fri Apr 25 18:04:19 2008 -0700: #! /usr/bin/perl
> 0 Fri Apr 25 18:04:19 2008 -0700:
> 36 Tue May 13 17:55:19 2008 -0700: my @fields = @{$e->{field}};
>
> This patch fixes the problem:
I checked in this patch on the 22 branch, it will be merged to HEAD in a
few days.
Thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-05-17 15:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-16 20:22 23.0.60; vc-hg-annotate-command version number bug + patch David Hull
2008-05-17 15:18 ` Dan Nicolaescu
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).