]> code.delx.au - gnu-emacs/commitdiff
(vc-hg-annotate-command): Allow white space before version number.
authorDan Nicolaescu <dann@ics.uci.edu>
Sat, 17 May 2008 15:16:50 +0000 (15:16 +0000)
committerDan Nicolaescu <dann@ics.uci.edu>
Sat, 17 May 2008 15:16:50 +0000 (15:16 +0000)
lisp/ChangeLog
lisp/vc-hg.el

index ab6fb19c1ee9acea266966bb8084a6e1da88b4ff..e4ea722702d6222f1ad43481c30b4090a001c532 100644 (file)
@@ -1,3 +1,8 @@
+2008-05-17  David Hull <david@snap.com>  (tiny change)
+
+       * vc-hg.el (vc-hg-annotate-command): Allow white space before
+       version number.
+
 2008-05-12  Simon Marshall  <simon@gnu.org>
 
        * obsolete/fast-lock.el (fast-lock-cache-directories): Remove "."
index 77a52611ca74b6583da27f84eb1fd716054da5ee..7bd54528a6e926581349228f3cf62938104c54b5 100644 (file)
@@ -311,8 +311,8 @@ Optional arg VERSION is a version to annotate from."
   (vc-hg-command buffer 0 file "annotate" "-d" "-n" (if version (concat "-r" version)))
   (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: