hgext/largefiles/reposetup.py
changeset 16731 dcfc70aab372
parent 16586 ebd2ead59f1c
child 17230 fc4c155658b7
--- a/hgext/largefiles/reposetup.py	Sun May 13 12:01:52 2012 +0200
+++ b/hgext/largefiles/reposetup.py	Sun May 13 12:11:50 2012 +0200
@@ -340,8 +340,9 @@
                                     lfdirstate.normal(lfile)
                     for lfile in lfdirstate:
                         if lfile in modifiedfiles:
-                            if not os.path.exists(
-                                    repo.wjoin(lfutil.standin(lfile))):
+                            if (not os.path.exists(repo.wjoin(
+                               lfutil.standin(lfile)))) or \
+                               (not os.path.exists(repo.wjoin(lfile))):
                                 lfdirstate.drop(lfile)
 
                     result = orig(text=text, user=user, date=date, match=match,