##// END OF EJS Templates
mercurial.el: implement hg-pull, and stub in hg-update.
Bryan O'Sullivan -
r1246:ae96c85f default
parent child Browse files
Show More
@@ -993,9 +993,16 b' Variable hg-log-limit controls the numbe'
993 993 (or repo hg-outgoing-repository))
994 994 (hg-log-mode)))
995 995
996 (defun hg-pull ()
997 (interactive)
998 (error "not implemented"))
996 (defun hg-pull (&optional repo)
997 "Pull changes from repository REPO.
998 This does not update the working directory."
999 (interactive (list (hg-read-repo-name " to pull from")))
1000 (hg-view-output ((format "Mercurial: Pull to %s from %s"
1001 (hg-abbrev-file-name (hg-root))
1002 (hg-abbrev-file-name
1003 (or repo hg-incoming-repository))))
1004 (call-process (hg-binary) nil t nil "pull"
1005 (or repo hg-incoming-repository))))
999 1006
1000 1007 (defun hg-push (&optional repo)
1001 1008 "Push changes to repository REPO."
@@ -1079,6 +1086,10 b' Names are displayed relative to the repo'
1079 1086 (interactive)
1080 1087 (error "not implemented"))
1081 1088
1089 (defun hg-update ()
1090 (interactive)
1091 (error "not implemented"))
1092
1082 1093 (defun hg-version-other-window ()
1083 1094 (interactive)
1084 1095 (error "not implemented"))
General Comments 0
You need to be logged in to leave comments. Login now