You need to specify the encoding you are using. Please, try something
as
tailor -D -v --source-kind cvs --target-kind hg --repository
:pserver:[EMAIL PROTECTED]:/cvs/dak --module dak -r INITIAL
--subdir dak --encoding ascii
(or --encoding utf-8)
It works for me. Please, tell me if this is ok for you (so that I close
the bug).
I agreed with you that the error message is not really helpful. I CC the
upstream maintainer so that he can improve this.
Best
Vincent
Frederic Daniel Luc LEHOBEY wrote:
Package: tailor
Version: 0.9.15-1
Severity: normal
Hi,
I am trying to use tailor. I have used (among others) the following
lines:
$ tailor -D -v --source-kind cvs --target-kind hg --repository :pserver:[EMAIL
PROTECTED]:/cvs/dak --module dak -r INITIAL --subdir /tmp/dak
and
$ tailor -D -v --source-kind cvs --target-kind hg --repository :ext:[EMAIL
PROTECTED]:/cvsroot/gnobog --module gnobog-test -r INITIAL --subdir /tmp/gnobog
Both fail with the same error:
=============================================================================
Error: Checkout of 'project' failed! -- Exception exceptions.ValueError: Empty
module name
Traceback (most recent call last):
File "/usr/bin/tailor", line 32, in ?
main()
File "/usr/lib/python2.3/site-packages/vcpx/tailor.py", line 376, in main
tailorizer()
File "/usr/lib/python2.3/site-packages/vcpx/tailor.py", line 153, in __call__
self.bootstrap()
File "/usr/lib/python2.3/site-packages/vcpx/tailor.py", line 73, in bootstrap
actual = dwd.checkoutUpstreamRevision(revision)
File "/usr/lib/python2.3/site-packages/vcpx/source.py", line 220, in
checkoutUpstreamRevision
last = self._checkoutUpstreamRevision(revision)
File "/usr/lib/python2.3/site-packages/vcpx/cvs.py", line 366, in
_checkoutUpstreamRevision
last = CvspsWorkingDir._checkoutUpstreamRevision(self, revision)
File "/usr/lib/python2.3/site-packages/vcpx/cvsps.py", line 285, in
_checkoutUpstreamRevision
csets = list(self.getPendingChangesets(revision))
File "/usr/lib/python2.3/site-packages/vcpx/source.py", line 187, in
getPendingChangesets
changesets = self._getUpstreamChangesets(revision)
File "/usr/lib/python2.3/site-packages/vcpx/cvs.py", line 356, in
_getUpstreamChangesets
reader = getreader(self.repository.encoding)
File "/usr/lib/python2.3/codecs.py", line 642, in getreader
return lookup(encoding)[2]
File "/usr/lib/python2.3/encodings/__init__.py", line 84, in search_function
globals(), locals(), _import_tail)
ValueError: Empty module name
I am new to tailor so there may be a misunderstanding on my side. I
have tried with upstream version that fails in the same way. I have
not yet been able to download anything successfully (with different
combinations, like -r HEAD or -r 1.1) from any of the above
repositories.
(From /usr/share/doc/trailor/README.gz) Am I hit by this?
-----------------------------------------------------------------------
Shortcomings
============
Tailor currently suffers of the following reported problems:
a) It does not handle "empty" CVS checkouts, in other words you cannot
bootstrap a project that has nothing in its CVS upstream
repository, or from a point in time where this condition was true.
-----------------------------------------------------------------------
Do you have examples where similar commands work? (Is it a bug in
upstream or does it come from the above repositories unsuited to
tailor?).
Thanks and best regards,
Frederic Lehobey
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/dash
Kernel: Linux 2.6.8-2-k7
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Versions of packages tailor depends on:
ii python 2.3.5-3 An interactive high-level object-o
tailor recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]