On Fri, 07 Dec 2007 18:49:19 +0100
[EMAIL PROTECTED] (Marc Poulhiès) wrote:

> I'm trying to convert a bzr repository in git format. I think I found
> a bug, and wanted to add it to the BTS, but after creating an account
> on Trac, I couldn't find how to submit it... Strange, I must have
> misunderstood something... So I'm writing to this "low traffic"
> mailing-list...

Give me your account, and I'll give you needed permissions. I hope to
renew the tracs RSN, and will probably use some sort of captcha to
stop spammerbot...

> 
> I have a project using "bzr" that I want to migrate to "git". Here's
> what I have in my config file:
> 
> ,----
> | [DEFAULT]
> | verbose = True
> | 
> | [project]
> | target = git:target
> | start-revision = INITIAL
> | root-directory = /home/marc/git
> | state-file = tailor.state
> | source = bzr:source
> | subdir = /tmp/tmp-dir/
> 
> I don't understand exactly what are 'subdir' or 'root-directory'...

The root-directory is the top of the tree tailor will use to do its
job: subdir possibly force the name of the subdirectory [relative to
root-directory] used to contain one [or the other, or both] of the
working dirs of the source and target repos (cfr. the wiki_). So your
usage above is definitely wrong.

> When I run tailor (I tried both with latest debian package and latest
> source using a darcs checkout):
> 
> ,----
> | Traceback (most recent call last):
> |   File "/usr/bin/tailor", line 35, in ?
> |     main()
> |   File "/tmp/tailor/vcpx/tailor.py", line 337, in main
> |     tailorizer = Tailorizer(projname, config)
> |   File "/tmp/tailor/vcpx/project.py", line 95, in __init__
> |     self._load()
> |   File "/tmp/tailor/vcpx/project.py", line 140, in _load
> |     self.target = self.__loadRepository('target')
> |   File "/tmp/tailor/vcpx/project.py", line 187, in __loadRepository
> |     return Repository(repname, self, which)
> |   File "/tmp/tailor/vcpx/repository/__init__.py", line 79, in
> __init__ |     self._load(project)
> |   File "/tmp/tailor/vcpx/repository/git/__init__.py", line 60, in
> _load |     self.env['GIT_DIR'] = join(self.basedir, self.METADIR)
> | AttributeError: 'GitRepository' object has no attribute 'basedir'
> `----

Can you try latest patch_? It should fix that problem...

ciao, lele.

.. _wiki:: http://progetti.arstecnica.it/tailor/wiki/RootDirectory
.. _patch:: http://progetti.arstecnica.it/tailor/changeset/1454
-- 
nickname: Lele Gaifax    | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas    | comincerò ad aver paura di chi mi copia.
[EMAIL PROTECTED] |                 -- Fortunato Depero, 1929.
_______________________________________________
Tailor mailing list
[email protected]
http://lists.zooko.com/mailman/listinfo/tailor

Reply via email to