aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2021-01-30 08:59:48 +0100
committerLars Ingebrigtsen2021-01-30 08:59:48 +0100
commit32dc433dbb83a5c38650769dc064c082bf79ee8c (patch)
tree77e096a0a0be75d595b6dc513c1ba520db54fda9
parentcc2d3a62c2a1f5be7907eda55d3c678e1149eb7b (diff)
downloademacs-32dc433dbb83a5c38650769dc064c082bf79ee8c.tar.gz
emacs-32dc433dbb83a5c38650769dc064c082bf79ee8c.zip
Fix vc-hg-rename-file on file names like ~/foo/bar
* lisp/vc/vc-hg.el (vc-hg-rename-file): Use absolute file names, because hg doesn't like getting file names like "~/foo/bar" (bug#36932).
-rw-r--r--lisp/vc/vc-hg.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/vc/vc-hg.el b/lisp/vc/vc-hg.el
index c4b82ab11eb..1d163a64ab2 100644
--- a/lisp/vc/vc-hg.el
+++ b/lisp/vc/vc-hg.el
@@ -1166,7 +1166,8 @@ hg binary."
1166;; Modeled after the similar function in vc-bzr.el 1166;; Modeled after the similar function in vc-bzr.el
1167(defun vc-hg-rename-file (old new) 1167(defun vc-hg-rename-file (old new)
1168 "Rename file from OLD to NEW using `hg mv'." 1168 "Rename file from OLD to NEW using `hg mv'."
1169 (vc-hg-command nil 0 new "mv" old)) 1169 (vc-hg-command nil 0 (expand-file-name new) "mv"
1170 (expand-file-name old)))
1170 1171
1171(defun vc-hg-register (files &optional _comment) 1172(defun vc-hg-register (files &optional _comment)
1172 "Register FILES under hg. COMMENT is ignored." 1173 "Register FILES under hg. COMMENT is ignored."