; Account for spaces before the filename
This commit is contained in:
parent
c71e1e86df
commit
cca0f93359
2 changed files with 3 additions and 3 deletions
|
@ -397,7 +397,7 @@ Optional arg REVISION is a revision to annotate from."
|
||||||
(concat
|
(concat
|
||||||
"^\\(?: *[^ ]+ +\\)?\\([0-9]+\\) " ;User and revision.
|
"^\\(?: *[^ ]+ +\\)?\\([0-9]+\\) " ;User and revision.
|
||||||
"\\([0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]\\)" ;Date.
|
"\\([0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]\\)" ;Date.
|
||||||
"\\( [^:]+\\)?:")) ;Filename,
|
"\\(?: +\\([^:]+\\)\\)?:")) ;Filename.
|
||||||
|
|
||||||
(defun vc-hg-annotate-time ()
|
(defun vc-hg-annotate-time ()
|
||||||
(when (looking-at vc-hg-annotate-re)
|
(when (looking-at vc-hg-annotate-re)
|
||||||
|
@ -415,7 +415,7 @@ Optional arg REVISION is a revision to annotate from."
|
||||||
(when (looking-at vc-hg-annotate-re)
|
(when (looking-at vc-hg-annotate-re)
|
||||||
(if (match-beginning 3)
|
(if (match-beginning 3)
|
||||||
(cons (match-string-no-properties 1)
|
(cons (match-string-no-properties 1)
|
||||||
(expand-file-name (substring (match-string-no-properties 3) 1)
|
(expand-file-name (match-string-no-properties 3)
|
||||||
(vc-hg-root default-directory)))
|
(vc-hg-root default-directory)))
|
||||||
(match-string-no-properties 1)))))
|
(match-string-no-properties 1)))))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue