changeset 294:f8d56da6ac8f

hg patch: fix to actually take a list of patches
author mpm@selenic.com
date Wed, 08 Jun 2005 21:22:38 -0800
parents 11d64332a1cb
children 38919e1c254d
files mercurial/commands.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Wed Jun 08 20:11:57 2005 -0800
+++ b/mercurial/commands.py	Wed Jun 08 21:22:38 2005 -0800
@@ -362,13 +362,15 @@
         if n != hg.nullid:
             ui.write("%d:%s\n" % (repo.changelog.rev(n), hg.hex(n)))
 
-def patch(ui, repo, patches, **opts):
+def patch(ui, repo, patch1, *patches, **opts):
     """import an ordered set of patches"""
     try:
         import psyco
         psyco.full()
     except:
         pass
+
+    patches = patch1 + patches
     
     d = opts["base"]
     strip = opts["strip"]