comparison hgext/patchbomb.py @ 30848:7080652af6e6 stable

ui: rename tmpdir parameter to more specific repopath This was requested by Augie and I agree that repopath is more descriptive.
author Sean Farley <sean@farley.io>
date Wed, 18 Jan 2017 18:25:51 -0800
parents eb78ec9e97b7
children 8018b90f8307
comparison
equal deleted inserted replaced
30847:e12553cfd0a4 30848:7080652af6e6
269 if opts.get('desc'): 269 if opts.get('desc'):
270 body = open(opts.get('desc')).read() 270 body = open(opts.get('desc')).read()
271 else: 271 else:
272 ui.write(_('\nWrite the introductory message for the ' 272 ui.write(_('\nWrite the introductory message for the '
273 'patch series.\n\n')) 273 'patch series.\n\n'))
274 body = ui.edit(defaultbody, sender, tmpdir=repo.path) 274 body = ui.edit(defaultbody, sender, repopath=repo.path)
275 # Save series description in case sendmail fails 275 # Save series description in case sendmail fails
276 msgfile = repo.vfs('last-email.txt', 'wb') 276 msgfile = repo.vfs('last-email.txt', 'wb')
277 msgfile.write(body) 277 msgfile.write(body)
278 msgfile.close() 278 msgfile.close()
279 return body 279 return body