comparison mercurial/commands.py @ 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
comparison
equal deleted inserted replaced
293:11d64332a1cb 294:f8d56da6ac8f
360 360
361 for n in p: 361 for n in p:
362 if n != hg.nullid: 362 if n != hg.nullid:
363 ui.write("%d:%s\n" % (repo.changelog.rev(n), hg.hex(n))) 363 ui.write("%d:%s\n" % (repo.changelog.rev(n), hg.hex(n)))
364 364
365 def patch(ui, repo, patches, **opts): 365 def patch(ui, repo, patch1, *patches, **opts):
366 """import an ordered set of patches""" 366 """import an ordered set of patches"""
367 try: 367 try:
368 import psyco 368 import psyco
369 psyco.full() 369 psyco.full()
370 except: 370 except:
371 pass 371 pass
372
373 patches = patch1 + patches
372 374
373 d = opts["base"] 375 d = opts["base"]
374 strip = opts["strip"] 376 strip = opts["strip"]
375 quiet = opts["quiet"] and "> /dev/null" or "" 377 quiet = opts["quiet"] and "> /dev/null" or ""
376 378