hgext/mq.py
changeset 7729 dd08e1e0cea1
parent 7639 ae7a614a6a57
child 7772 88887054d277
--- a/hgext/mq.py	Sun Jan 25 13:20:43 2009 -0500
+++ b/hgext/mq.py	Sun Jan 25 13:49:15 2009 -0500
@@ -1737,7 +1737,10 @@
     if dest is None:
         dest = hg.defaultdest(source)
     sr = hg.repository(ui, ui.expandpath(source))
-    patchespath = opts['patches'] or patchdir(sr)
+    if opts['patches']:
+        patchespath = ui.expandpath(opts['patches'])
+    else:
+        patchespath = patchdir(sr)
     try:
         pr = hg.repository(ui, patchespath)
     except error.RepoError: