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).
This commit is contained in:
parent
cc2d3a62c2
commit
32dc433dbb
1 changed files with 2 additions and 1 deletions
|
@ -1166,7 +1166,8 @@ hg binary."
|
|||
;; Modeled after the similar function in vc-bzr.el
|
||||
(defun vc-hg-rename-file (old new)
|
||||
"Rename file from OLD to NEW using `hg mv'."
|
||||
(vc-hg-command nil 0 new "mv" old))
|
||||
(vc-hg-command nil 0 (expand-file-name new) "mv"
|
||||
(expand-file-name old)))
|
||||
|
||||
(defun vc-hg-register (files &optional _comment)
|
||||
"Register FILES under hg. COMMENT is ignored."
|
||||
|
|
Loading…
Add table
Reference in a new issue