<sheepish> I think I forgot to attach the patch...

-- John
diff -rN -u old-tla-load-dirs/tla_support/tla_wc.py 
new-tla-load-dirs/tla_support/tla_wc.py
--- old-tla-load-dirs/tla_support/tla_wc.py     2005-04-18 20:23:21.000000000 
-0500
+++ new-tla-load-dirs/tla_support/tla_wc.py     2005-04-20 21:56:23.000000000 
-0500
@@ -84,14 +84,15 @@
         if self.verb:
             print "Moving file %s to %s" % (src, dest)
         src, dest = self.slashstrip(src, dest)
-        destdir = os.path.dirname(util.chdircmd(self.wcpath,
-                                                os.path.abspath, dest))
-        if not os.path.exists(destdir):
-            self.makedirs(destdir)
 
-        if not isdarcs():
-            # darcs moves it itself
-            util.chdircmd(self.wcpath, os.rename, src, dest)
+        def doit():
+            if not os.path.exists(dest):
+                self.makedirs(dest)
+            if not isdarcs():
+                # Darcs moves it itself
+                os.rename(src, dest)
+
+        util.chdircmd(self.wcpath, doit)
 
     def delfile(self, file):
         if self.verb:

Reply via email to