Lele Gaifax wrote:

> Neal Becker ha scritto:
>>     self.source.prepareSourceRepository()
>> AttributeError: 'HgWorkingDir' object has no attribute
>> 'prepareSourceRepository'
> 
> It seems you are trying to use the CLI version of the hg backend, which
> is a target only implementation. Use "hglib" instead, which implements
> both directions.
> 
> This should probably be properly catched and alerted, feel free to open
> a ticket.
> 
> Another approach would be of dismissing the CLI backend, leaving only
> the native implementation, as it was done for bazaar-ng. Any takers?
> 

Thanks.  I got further.

I'm trying to duplicate my hg repos to darcs.  Both are on same filesystem.

tailor --config tailor.config -r HEAD
13:45:14 [I] Bootstrapping "project" in "/home/nbecker/tmp"
13:45:14 [I] /home/nbecker/tmp $ darcs initialize
13:45:14 [I] [Ok]
13:45:14 [I] Extracting revision INITIAL from /home/nbecker/shannon2.mercurial 
into /home/nbecker/tmp
resolving manifests
[ get lots of files ... ]
13:45:15 [I] /home/nbecker/tmp $ darcs add --case-ok --recursive --quiet .
13:45:16 [I] [Ok]
13:45:16 [I] /home/nbecker/tmp $ darcs record --all --pipe
13:45:17 [I] [Ok]
13:45:17 [I] Bootstrap completed
13:45:17 [I] Updating "project" in "/home/nbecker/tmp"
pulling from default
13:45:17 [C] Unable to get changes for "project"
Traceback (most recent call last):
  File "/usr/bin/tailor", line 33, in ?
    main()
  File "/usr/lib/python2.4/site-packages/vcpx/tailor.py", line 332, in main
    tailorizer()
  File "/usr/lib/python2.4/site-packages/vcpx/tailor.py", line 144, in __call__
    self.update()
  File "/usr/lib/python2.4/site-packages/vcpx/tailor.py", line 94, in update
    pendings = dwd.getPendingChangesets()
  File "/usr/lib/python2.4/site-packages/vcpx/source.py", line 213, in 
getPendingChangesets
    self.state_file.setPendingChangesets(changesets)
  File "/usr/lib/python2.4/site-packages/vcpx/statefile.py", line 253, in 
setPendingChangesets
    self._write(changesets)
  File "/usr/lib/python2.4/site-packages/vcpx/statefile.py", line 86, in _write
    for cs in changesets:
  File "/usr/lib/python2.4/site-packages/vcpx/hglib.py", line 55, in 
_getUpstreamChangesets
    commands.pull(ui, repo, "default", ssh=None, remotecmd=None, update=None, 
rev=None)
  File "/usr/lib64/python2.4/site-packages/mercurial/commands.py", line 1810, 
in pull
    other = hg.repository(ui, source)
  File "/home/nbecker/hg/build/lib.linux-x86_64-2.4/mercurial/hg.py", line 28, 
in repository
    return localrepo.localrepository(ui, path, create)
  File "/usr/lib64/python2.4/site-packages/mercurial/localrepo.py", line 30, in 
__init__
    raise repo.RepoError(_("repository %s not found") % path)
mercurial.repo.RepoError: repository default not found

I tried in shannon2.mercurial (my repos) setting in .hg/hgrc:
[paths]
default = file:///home/nbecker/shannon2.mercurial/


Here is tailor.config:
[DEFAULT]
verbose = True

[project]
target = darcs:target
start-revision = INITIAL
root-directory = /home/nbecker/tmp
state-file = tailor.state
source = hglib:source
subdir = .

[hglib:source]
repository = /home/nbecker/shannon2.mercurial

[darcs:target]

The project name 'project' is not set to anything real.  There is only 1 
project in my hg.

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

Reply via email to