Mercurial > hg
changeset 4426:807c7b99ff13
imported patch mq-refresh-git.patch
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Tue, 08 May 2007 11:54:39 -0700 |
parents | a57ac6049e22 |
children | b59611e9dd64 |
files | contrib/mq.el |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/mq.el Tue May 08 11:54:39 2007 -0700 +++ b/contrib/mq.el Tue May 08 11:54:39 2007 -0700 @@ -197,13 +197,14 @@ (message "Refreshing %s... done." patch) (error "Refreshing %s... %s" patch (hg-chomp (cdr ret))))))) -(defun mq-refresh () - "Refresh the topmost applied patch." - (interactive) +(defun mq-refresh (&optional git) + "Refresh the topmost applied patch. +With a prefix argument, generate a git-compatible patch." + (interactive "P") (let ((root (hg-root))) (unless root (error "Cannot refresh outside of a repository!")) - (mq-refresh-internal root))) + (apply 'mq-refresh-internal root (if git '("--git"))))) (defun mq-patch-info (cmd &optional msg) (let* ((ret (hg-run cmd))