On Sat, 2007-12-08 at 10:38 +0100, Marc wrote:

> empty file ;) After applying the patch, I had some problems, but when
> tidying everything for this mail and making sure I was not doing
> anything wrong, it worked ;) Looks like it's fixed !

Ok, as I was a bit surprised, I retried from scratch... Same config
file, here's the "state" before calling tailor:

----8<----8<----8<----8<----8<----8<----8<
~dkm/git/j-bip-model-2 $ git status
# On branch master
#
# Initial commit
#
nothing to commit (create/copy files and use "git add" to track)
----8<----8<----8<----8<----8<----8<----8<

~/bzr/j-bip-model-2 contains a valid bzr repository.

----8<----8<----8<----8<----8<----8<----8<
~/git$ ls -la
-rw-r--r--   1 dkm dkm   287 2007-12-08 10:32 config
drwxr-xr-x   3 dkm dkm  4096 2007-12-08 10:42 j-bip-model-2
drwxr-xr-x   2 dkm dkm  4096 2007-12-08 10:43 tailor
~/git$ ls -la tailor/
~/git$
----8<----8<----8<----8<----8<----8<----8<

And when I run tailor :
----8<----8<----8<----8<----8<----8<----8<
~/git$ tailor -c config 
10:46:40 [I] Bootstrapping "project" in "/home/dkm/git"
10:46:40 [I] /home/dkm/git/tailor $ git init-db
10:46:40 [I] [Ok]
Traceback (most recent call last):
  File "/tmp/tailor/tailor", line 35, in ?
    main()
  File "/tmp/tailor/vcpx/tailor.py", line 339, in main
    tailorizer()
  File "/tmp/tailor/vcpx/tailor.py", line 144, in __call__
    self.bootstrap()
  File "/tmp/tailor/vcpx/tailor.py", line 65, in bootstrap
    dwd = self.workingDir()
  File "/tmp/tailor/vcpx/project.py", line 204, in workingDir
    self.dwd = DualWorkingDir(self.source, self.target)
  File "/tmp/tailor/vcpx/dualwd.py", line 68, in __init__
    self.target.prepareTargetRepository()
  File "/tmp/tailor/vcpx/target.py", line 569, in
prepareTargetRepository
    self._prepareTargetRepository()
  File "/tmp/tailor/vcpx/repository/git/target.py", line 237, in
_prepareTargetRepository
    self.repository.create()
  File "/tmp/tailor/vcpx/repository/git/__init__.py", line 130, in
create
    mkdir(join(self.basedir, self.METADIR))
OSError: [Errno 17] File exists: '/home/dkm/git/tailor/.git'
----8<----8<----8<----8<----8<----8<----8<

I guess there is something wrong as the '.git' is already created by the
'git init-db' (second line in output), and the __init__ method tries to
create the '.git' again...

Maybe my config file is still wrong ? I tried without changing the
'subdir' (ie letting '.'), but I have the same behavior.

In fact, what I found to make it work is the following:
 - comment the line 130 in tailor/vcpx/repository/git/__init__.py
Then, running tailor will create a git repository in my subdir 'tailor/'
and inject everything from my bzr repository, leaving my
'git/j-bip-model-2' untouched (?). I guess there is something that I
still don't get correct in the config file... Sorry if it is the case.

Marc

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

Reply via email to