comparison mozillatry.py @ 26:fa1215cee8c4

abort: ":" cannot be used in the name of a patch
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 07 Dec 2012 15:31:24 -0800
parents 295112b3e143
children bd358da5c346
comparison
equal deleted inserted replaced
25:295112b3e143 26:fa1215cee8c4
52 patches = os.path.join(hg_dir, 'patches') 52 patches = os.path.join(hg_dir, 'patches')
53 if os.path.exists(patches): 53 if os.path.exists(patches):
54 shutil.rmtree(patches) 54 shutil.rmtree(patches)
55 call(['hg', 'qinit'], cwd=repo) 55 call(['hg', 'qinit'], cwd=repo)
56 # TODO: ensure there's something to commit 56 # TODO: ensure there's something to commit
57 call(['hg', 'qnew', datetime.datetime.now().isoformat()], cwd=repo) 57 call(['hg', 'qnew', datetime.datetime.now().strftime("%Y%m%d%H%M%S")], cwd=repo)
58 58
59 # apply patches 59 # apply patches
60 for patch in patches: 60 for patch in patches:
61 call(['hg', 'qimport', patch], cwd=repo) 61 call(['hg', 'qimport', patch], cwd=repo)
62 call(['hg', 'qpush', '--all'], cwd=repo) 62 call(['hg', 'qpush', '--all'], cwd=repo)