# HG changeset patch # User mpm@selenic.com # Date 1118294558 28800 # Node ID f8d56da6ac8f843f14974080004954a177a6cb46 # Parent 11d64332a1cb8fca4e1eeccc4ca01c16815a3f56 hg patch: fix to actually take a list of patches diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -362,13 +362,15 @@ def parents(ui, repo, node = None): 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"]