comparison mercurial/commands.py @ 266:4af7677de4a9

Fix argument processing for patch and rawcommit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Fix argument processing for patch and rawcommit manifest hash: fc76fcd22ca69185bbec1855f72dda5b692e03f3 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCpVNMywK+sNU5EO8RAn2nAJ4gBbdn8K6xN55Igh6J2ZJEMgRGBACgr0Xb KkjbnOrNL5uQmBHx59C7HdY= =qsQi -----END PGP SIGNATURE-----
author mpm@selenic.com
date Mon, 06 Jun 2005 23:57:00 -0800
parents 4c1d7072d5cd
children 1634a7ea6748
comparison
equal deleted inserted replaced
265:7ca05593bd30 266:4af7677de4a9
323 323
324 for n in p: 324 for n in p:
325 if n != hg.nullid: 325 if n != hg.nullid:
326 ui.write("%d:%s\n" % (repo.changelog.rev(n), hg.hex(n))) 326 ui.write("%d:%s\n" % (repo.changelog.rev(n), hg.hex(n)))
327 327
328 def patch(ui, repo, patches, opts): 328 def patch(ui, repo, patches, **opts):
329 """import an ordered set of patches""" 329 """import an ordered set of patches"""
330 try: 330 try:
331 import psyco 331 import psyco
332 psyco.full() 332 psyco.full()
333 except: 333 except:
370 370
371 other = hg.repository(ui, source) 371 other = hg.repository(ui, source)
372 cg = repo.getchangegroup(other) 372 cg = repo.getchangegroup(other)
373 repo.addchangegroup(cg) 373 repo.addchangegroup(cg)
374 374
375 def rawcommit(ui, repo, files, rc): 375 def rawcommit(ui, repo, files, **rc):
376 "raw commit interface" 376 "raw commit interface"
377 377
378 text = rc['text'] 378 text = rc['text']
379 if not text and rc['logfile']: 379 if not text and rc['logfile']:
380 try: text = open(rc['logfile']).read() 380 try: text = open(rc['logfile']).read()