diff -r c9fbd6ec3489 -r b148e9099133 mercurial/patch.py --- a/mercurial/patch.py Wed Jun 25 17:35:20 2008 -0500 +++ b/mercurial/patch.py Thu Jun 26 13:46:29 2008 -0500 @@ -1192,12 +1192,11 @@ if not modified and not added and not removed: return + ctx2 = repo.changectx(node2) if node2: - ctx2 = repo.changectx(node2) execf2 = ctx2.manifest().execf linkf2 = ctx2.manifest().linkf else: - ctx2 = repo.workingctx() execf2 = util.execfunc(repo.root, None) linkf2 = util.linkfunc(repo.root, None) if execf2 is None: