Lele, I am currently trying to use Tailor to migrate changesets from Mercurial to subversion (I've pretty much abandoned CVS at this point). I've been trying Tailor versions 0.9.28 and 0.9.29, with versions of Mercurial from 0.9.1 to 0.9.4. This is using Python 2.4.3 as installed on Ubuntu 6.06. My configuration file is: [DEFAULT] verbose = True debug = True [v2_hg_to_svn] root-directory = /volumes/work/tailor/hg_to_svn2 source = hg:corba2 target = svn:corba2 state-file = v2_hg_to_svn.state [v2_svn_to_hg] root-directory = /volumes/work/tailor/hg_to_svn2 source = svn:corba2 target = hg:corba2 state-file = v2_svn_to_hg.state [hg:corba2] hg-command = /usr/bin/hg repository = http://falcon/hg/hgwebdir.cgi/corba-master-v2 subdir = hg [svn:corba2] repository = http://hermes/svn/ module = corba/branches/SJSAS91_FCS_BRANCH subdir = svn When I use tailor 0.9.29 and mercurial 0.9.4, tailor/mercurial correctly pull over the changesets from the source to the root-directory subdir, then fail with the following stack trace: [EMAIL PROTECTED] tailor -c hg_to_svn.conf v2_hg_to_svn 18:17:29 [I] Bootstrapping "v2_hg_to_svn" in "/volumes/work/tailor/hg_to_svn2" 18:17:29 [I] $ svn ls http://hermes/svn corba/ 18:17:29 [I] [Ok] 18:17:29 [I] $ svn ls http://hermes/svn/corba/branches/SJSAS91_FCS_BRANCH 18:17:30 [I] [Ok] sending heads command requesting all changes sending changegroup command adding changesets add changeset d5ccce208f92 add changeset 9fa651a97899 add changeset 76a1b92f9a11 adding manifests adding file changes ... (many lines omitted from pull adding files) ... added 3 changesets with 3775 changes to 3774 files 18:18:08 [I] Extracting revision 'INITIAL' from 'http://falcon/hg/hgwebdir.cgi/corba-master-v2' into '/volumes/work/tailor/hg_to_svn2/hg' 18:18:08 [C] Checkout of v2_hg_to_svn failed! Traceback (most recent call last): File "/usr/bin/tailor", line 35, in ? main() File "/usr/lib/python2.4/site-packages/vcpx/tailor.py", line 339, in main tailorizer() File "/usr/lib/python2.4/site-packages/vcpx/tailor.py", line 144, in __call__ self.bootstrap() File "/usr/lib/python2.4/site-packages/vcpx/tailor.py", line 74, in bootstrap actual = dwd.checkoutUpstreamRevision(revision) File "/usr/lib/python2.4/site-packages/vcpx/source.py", line 253, in checkoutUpstreamRevision last = self._checkoutUpstreamRevision(revision) File "/usr/lib/python2.4/site-packages/vcpx/repository/hg.py", line 91, in _checkoutUpstreamRevision repo.update(node) File "/usr/local/lib/python2.4/site-packages/mercurial/localrepo.py", line 102, in __getattr__ raise AttributeError, name AttributeError: update What I am seeing is that Tailor attempts to call mercurial/localrepo.update, which is only present in mercurial 0.9.1: the later versions are very different in this area. Since localrepo defines a __getAttr__ function, it gets called and raises the AttributeError, complaining that the update method is not preset. Indeed update has been removed from Mercurial versions later than 0.9.1. I'd like to use the latest Mercurial. I'm still experimenting with different versions (hg 0.9.1 and tailor 0.9.28 or 29 seems like the best bet), so I'm not sure what will work. Any help with this would be appreciated. Thanks, Ken Cavanaugh. |
_______________________________________________ Tailor mailing list Tailor@lists.zooko.com http://lists.zooko.com/mailman/listinfo/tailor