It seems the hg folks renamed find to findcmd. I wonder if you should
attempt a compatibility layer to catch the exception and retry with find.

It would also be great if there was an attempt at rollback of the
changes applied when something goes wrong, it looks like I ended up with
a corrupted tree. I could always try do the rollback externally with a
cp -a backup before starting tailor and a restore if tailor returns an
error though it's not the most efficient, especially for large projects.

diff -rN -u old-tailor/vcpx/repository/hg.py new-tailor/vcpx/repository/hg.py
--- old-tailor/vcpx/repository/hg.py    2006-07-09 08:10:00.000000000 +0200
+++ new-tailor/vcpx/repository/hg.py    2006-07-09 08:10:00.000000000 +0200
@@ -302,7 +302,7 @@
     def _defaultOpts(self, cmd):
         # Not sure this is public. commands.parse might be, but this
         # is easier, and while dispatch is easiest, you lose ui.
-        return dict([(f[1].replace('-', '_'), f[2]) for f in 
commands.find(cmd)[1][1]])
+        return dict([(f[1].replace('-', '_'), f[2]) for f in 
commands.findcmd(cmd)[1][1]])
 
     def _hgCommand(self, cmd, *args, **opts):
         import os

_______________________________________________
Tailor mailing list
[email protected]
http://lists.zooko.com/mailman/listinfo/tailor

Reply via email to