mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 18:40:39 -08:00
(vc-hg-annotate-command): Allow white space before version number.
This commit is contained in:
parent
62867b112d
commit
9f94054523
2 changed files with 7 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue