##// END OF EJS Templates
imported patch mq-refresh-git.patch
Bryan O'Sullivan -
r4426:807c7b99 default
parent child Browse files
Show More
@@ -197,13 +197,14 b' If PATCH is nil, pop at most one patch."'
197 197 (message "Refreshing %s... done." patch)
198 198 (error "Refreshing %s... %s" patch (hg-chomp (cdr ret)))))))
199 199
200 (defun mq-refresh ()
201 "Refresh the topmost applied patch."
202 (interactive)
200 (defun mq-refresh (&optional git)
201 "Refresh the topmost applied patch.
202 With a prefix argument, generate a git-compatible patch."
203 (interactive "P")
203 204 (let ((root (hg-root)))
204 205 (unless root
205 206 (error "Cannot refresh outside of a repository!"))
206 (mq-refresh-internal root)))
207 (apply 'mq-refresh-internal root (if git '("--git")))))
207 208
208 209 (defun mq-patch-info (cmd &optional msg)
209 210 (let* ((ret (hg-run cmd))
General Comments 0
You need to be logged in to leave comments. Login now