]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/vc/vc-hg.el (vc-hg-clone): Add 'clone' implementation
authorPhilip Kaludercic <philipk@posteo.net>
Thu, 6 Oct 2022 14:49:10 +0000 (16:49 +0200)
committerPhilip Kaludercic <philipk@posteo.net>
Thu, 6 Oct 2022 20:03:14 +0000 (22:03 +0200)
lisp/vc/vc-hg.el

index 61976288e351f1b9f9df27c03c64a73fb141b06b..a4ef7f355099b50a1ac34d18ba645f814ad8289a 100644 (file)
@@ -1249,6 +1249,8 @@ REV is the revision to check out into WORKFILE."
     (add-hook 'after-save-hook #'vc-hg-resolve-when-done nil t)
     (vc-message-unresolved-conflicts buffer-file-name)))
 
+(defun vc-hg-clone (remote directory)
+  (vc-hg-command nil 0 '() "clone" remote directory))
 
 ;; Modeled after the similar function in vc-bzr.el
 (defun vc-hg-revert (file &optional contents-done)