# HG changeset patch # User Patrick Mezard # Date 2008-06-18 21:23:03 # Node ID 93f127b5979302406263a2d18eff6fe752d22ebc # Parent 86e1f603a36937ed97e8d3ef6ec2c481d5b10ebd localrepo: interpret ctx.filectx() exception as a missing file diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -839,8 +839,8 @@ class localrepository(repo.repository): commit.sort() for f in commit: self.ui.note(f + "\n") - fctx = wctx.filectx(f) try: + fctx = wctx.filectx(f) new[f] = self.filecommit(fctx, m1, m2, linkrev, trp, changed) new_exec = fctx.isexec() new_link = fctx.islink()