changeset 6712:93f127b59793

localrepo: interpret ctx.filectx() exception as a missing file
author Patrick Mezard <pmezard@gmail.com>
date Wed, 18 Jun 2008 23:23:03 +0200
parents 86e1f603a369
children 5f339b6a7eff
files mercurial/localrepo.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/localrepo.py	Wed Jun 18 23:00:20 2008 +0200
+++ b/mercurial/localrepo.py	Wed Jun 18 23:23:03 2008 +0200
@@ -839,8 +839,8 @@
             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()