mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-17 17:58:46 +00:00
* lisp/vc/vc-hg.el (vc-hg-working-revision): Use "hg parent" and
vc-hg-command. Fixes: debbugs:17570
This commit is contained in:
parent
28b8329726
commit
f4be80b783
@ -1,3 +1,8 @@
|
||||
2014-06-06 Santiago Payà i Miralta <santiagopim@gmail.com>
|
||||
|
||||
* vc/vc-hg.el (vc-hg-working-revision): Use "hg parent" and
|
||||
vc-hg-command (bug#17570).
|
||||
|
||||
2014-06-06 Stefan Monnier <monnier@iro.umontreal.ca>
|
||||
|
||||
* international/mule-cmds.el (ucs-names): Add special entry for BEL
|
||||
|
@ -227,14 +227,11 @@ highlighting the Log View buffer."
|
||||
|
||||
(defun vc-hg-working-revision (file)
|
||||
"Hg-specific version of `vc-working-revision'."
|
||||
(let ((default-directory (if (file-directory-p file)
|
||||
(file-name-as-directory file)
|
||||
(file-name-directory file))))
|
||||
(ignore-errors
|
||||
(with-output-to-string
|
||||
(process-file vc-hg-program nil standard-output nil
|
||||
"log" "-l" "1" "--template" "{rev}"
|
||||
(file-relative-name file))))))
|
||||
(or (ignore-errors
|
||||
(with-output-to-string
|
||||
(vc-hg-command standard-output 0 file
|
||||
"parent" "--template" "{rev}")))
|
||||
"0"))
|
||||
|
||||
;;; History functions
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user