# HG changeset patch # User Patrick Mezard # Date 1304869709 -7200 # Node ID 50e3fb2ab9fa00cacc553097931eb2c8776b4ac9 # Parent d035ede73434e256d8096d9da8c1b27cf66f6c3b record: unconditionally update the working dir after patching diff -r d035ede73434 -r 50e3fb2ab9fa hgext/record.py --- a/hgext/record.py Sun May 08 17:48:29 2011 +0200 +++ b/hgext/record.py Sun May 08 17:48:29 2011 +0200 @@ -478,9 +478,11 @@ ui.debug('applying patch\n') ui.debug(fp.getvalue()) pfiles = {} - patch.internalpatch(fp, ui, 1, repo.root, files=pfiles, - eolmode=None) - cmdutil.updatedir(ui, repo, pfiles) + try: + patch.internalpatch(fp, ui, 1, repo.root, files=pfiles, + eolmode=None) + finally: + cmdutil.updatedir(ui, repo, pfiles) except patch.PatchError, err: raise util.Abort(str(err)) del fp