comparison unixSoft/bin/apply-patchbomb @ 379:0b8457903012

apply-patchbomb: discard --partial, which doesn't fit my workflow
author Augie Fackler <raf@durin42.com>
date Thu, 10 Mar 2016 18:54:46 -0500
parents 4b661cede8ad
children 6cc5a0550281
comparison
equal deleted inserted replaced
378:20e47bc8eea9 379:0b8457903012
17 'com.apple.Mail') 17 'com.apple.Mail')
18 messages = list(sorted(mail.selection(), 18 messages = list(sorted(mail.selection(),
19 cmp=lambda x,y: cmp(x.subject(), y.subject()))) 19 cmp=lambda x,y: cmp(x.subject(), y.subject())))
20 for m in messages: 20 for m in messages:
21 print 'Applying', m.subject() 21 print 'Applying', m.subject()
22 p = subprocess.Popen(['hg', 'import', '--partial', '--obsolete', '-'], stdin=subprocess.PIPE) 22 p = subprocess.Popen(['hg', 'import', '--obsolete', '-'], stdin=subprocess.PIPE)
23 p.stdin.write(m.source()) 23 p.stdin.write(m.source())
24 p.stdin.close() 24 p.stdin.close()
25 if p.wait() != 0: 25 if p.wait() != 0:
26 print 'hg import failed, bailing' 26 print 'hg import failed, bailing'
27 return 2 27 return 2