[Checkins] SVN: z3c.vcsync/trunk/src/z3c/vcsync/vc.py Apparently the last version of this code was completely broken! This

Martijn Faassen faassen at infrae.com
Tue Feb 19 14:11:53 EST 2008


Log message for revision 84063:
  Apparently the last version of this code was completely broken! This
  means that perhaps it didn't actually fix anything..
  

Changed:
  U   z3c.vcsync/trunk/src/z3c/vcsync/vc.py

-=-
Modified: z3c.vcsync/trunk/src/z3c/vcsync/vc.py
===================================================================
--- z3c.vcsync/trunk/src/z3c/vcsync/vc.py	2008-02-19 18:54:54 UTC (rev 84062)
+++ z3c.vcsync/trunk/src/z3c/vcsync/vc.py	2008-02-19 19:11:53 UTC (rev 84063)
@@ -123,8 +123,9 @@
         # well and gone though, as we don't want them to reappear in
         # the ZODB when we do a load.
         for to_remove in self._to_remove:
-            if to_remove.exists():
-                py.path.local(to_remove).remove(rec=True)
+            p = py.path.local(to_remove)
+            if p.check():
+                p.remove(rec=True)
         # store what was removed and modified in checkout now
         files_removed = self.checkout.removed(revision_nr)
         files_changed = self.checkout.files(revision_nr)



More information about the Checkins mailing list