Comments
Patch
@@ -862,7 +862,6 @@
msg = _('applied to working directory')
rejects = False
- dsguard = None
try:
cmdline_message = logmessage(ui, opts)
@@ -904,7 +903,6 @@
n = None
if update:
- dsguard = dirstateguard(repo, 'tryimportone')
if p1 != parents[0]:
updatefunc(repo, p1.node())
if p2 != parents[1]:
@@ -950,7 +948,6 @@
editor=editor)
finally:
repo.ui.restoreconfig(allowemptyback)
- dsguard.close()
else:
if opts.get('exact') or opts.get('import_branch'):
branch = branch or 'default'
@@ -988,7 +985,6 @@
msg = _('created %s') % short(n)
return (msg, n, rejects)
finally:
- lockmod.release(dsguard)
os.unlink(tmpname)
def export(repo, revs, template='hg-%h.patch', fp=None, switch_parent=False,