ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] Q: tailor -- что-то не то с загрузкой из Mercurial (hg) репозитариев.
@ 2008-05-01 22:19 Aleksey Avdeev
  2008-05-01 22:38 ` Alexander Myltsev
  0 siblings, 1 reply; 14+ messages in thread
From: Aleksey Avdeev @ 2008-05-01 22:19 UTC (permalink / raw)
  To: ALT Linux Team development discussions

[-- Attachment #1: Type: text/plain, Size: 2398 bytes --]

Приветствую.

  Что-то не получается у меня преобразовать Mercurial`овский репозитарий
в git, используя tailor... Симптомы следующие:

$ tailor --verbose -s hg -t git --repository
http://xenbits.xensource.com/xen-2.0-testing.hg >xen.tailor
You should put the following configuration in some file, adjust it as needed
and use --configfile option with that file as argument:

$ tailor --configfile xen.tailor
22:57:12 [I] Bootstrapping "project" in "/home/solo/tailor/xen"
22:57:12 [I] /home/solo/tailor/xen $ git init-db
22:57:12 [I] [Ok]
22:57:12 [C] Checkout of project 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 338, in main
    tailorizer()
  File "/usr/lib/python2.4/site-packages/vcpx/tailor.py", line 143, in
__call__
    self.bootstrap()
  File "/usr/lib/python2.4/site-packages/vcpx/tailor.py", line 73, in
bootstrap
    actual = dwd.checkoutUpstreamRevision(revision)
  File "/usr/lib/python2.4/site-packages/vcpx/source.py", line 252, in
checkoutUpstreamRevision
    last = self._checkoutUpstreamRevision(revision)
  File "/usr/lib/python2.4/site-packages/vcpx/repository/hg.py", line
70, in _checkoutUpstreamRevision
    opts = self._defaultOpts('clone')
  File "/usr/lib/python2.4/site-packages/vcpx/repository/hg.py", line
316, in _defaultOpts
    findcmd = commands.find
AttributeError: 'module' object has no attribute 'find'

  Смотрю код hg.py:

    def _defaultOpts(self, cmd):
        # Not sure this is public. commands.parse might be, but this
        # is easier, and while dispatch is easiest, you lose ui.
        if hasattr(commands, 'findcmd'):
            if commands.findcmd.func_code.co_argcount == 1:
                findcmd = commands.findcmd
            else:
                def findcmd(cmd):
                    return commands.findcmd(self._getUI(), cmd)
        else:
            findcmd = commands.find
        return dict([(f[1].replace('-', '_'), f[2]) for f in
findcmd(cmd)[1][1]])

  Обращаю внимание на commands.find (316 строка) и commands.findcmd (выше).

  После grep`а по /usr/lib64/python2.4/site-packages/mercurial вижу что
по крайней мере findcmd присутствует у cmdutil, но никак не у
commands... Это нормально? (Или я что-то не так понял?)

-- 

С уважением. Алексей.



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 544 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2008-05-30 22:00 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-01 22:19 [devel] Q: tailor -- что-то не то с загрузкой из Mercurial (hg) репозитариев Aleksey Avdeev
2008-05-01 22:38 ` Alexander Myltsev
2008-05-01 22:46   ` Aleksey Avdeev
2008-05-01 22:50   ` Grigory Batalov
2008-05-02  0:02     ` Alexey Morozov
2008-05-02 12:20       ` Aleksey Avdeev
2008-05-02 22:02         ` Aleksey Avdeev
2008-05-03  9:06           ` [devel] A: tailor обновил, прошу NMU (was: Q: tailor -- что-то не то с загрузкой из Mercurial (hg) репозитариев.) Aleksey Avdeev
2008-05-05  3:10   ` [devel] Q: tailor -- что-то не то с загрузкой из Mercurial (hg) репозитариев Alexey Tourbin
2008-05-05  7:02     ` Aleksey Avdeev
2008-05-05  8:30       ` Alexey I. Froloff
2008-05-05  8:41         ` Aleksey Avdeev
2008-05-05 12:21           ` [devel] Q: fast-export, вопросы по упаковке (was: Q: tailor -- что-то не то с загрузкой из Mercurial (hg) репозитариев.) Aleksey Avdeev
2008-05-30 22:00           ` [devel] I: hg-fast-export для загрузки xen (was: tailor -- что-то не то с загрузкой из Mercurial (hg) репозитариев) Aleksey Avdeev

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git