<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>16362</bug_id>
          
          <creation_ts>2008-07-15 19:06:33 +0400</creation_ts>
          <short_desc>Не импортирует нелокальные репозитории</short_desc>
          <delta_ts>2012-03-16 13:59:20 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>hg2git</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexey Gladkov">legion</reporter>
          <assigned_to name="real@altlinux.org">real</assigned_to>
          <cc>led</cc>
    
    <cc>solo</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>74056</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Gladkov">legion</who>
    <bug_when>2008-07-15 19:06:33 +0400</bug_when>
    <thetext>hg2git работает с локальными репозиториями, но отказывается импортировать нелокальные репозитории:

[legion@localhost tmp]$ mkdir mozilla
[legion@localhost tmp]$ cd mozilla/
[legion@localhost mozilla]$ git-init
Initialized empty Git repository in /tmp/mozilla/.git/
[legion@localhost mozilla]$ hg2git -r http://hg.mozilla.org/index.cgi/mozilla-central
Traceback (most recent call last):
  File &quot;/usr/bin/hg2git.py&quot;, line 453, in &lt;module&gt;
    options.statusfile,authors=a,sob=options.sob,force=options.force))
  File &quot;/usr/bin/hg2git.py&quot;, line 388, in hg2git
    if not verify_heads(ui,repo,heads_cache,force):
  File &quot;/usr/bin/hg2git.py&quot;, line 351, in verify_heads
    branches=repo.branchtags()
AttributeError: &apos;httprepository&apos; object has no attribute &apos;branchtags&apos;
git-fast-import statistics:
---------------------------------------------------------------------
Alloc&apos;d objects:       5000
Total objects:            0 (         0 duplicates                  )
      blobs  :            0 (         0 duplicates          0 deltas)
      trees  :            0 (         0 duplicates          0 deltas)
      commits:            0 (         0 duplicates          0 deltas)
      tags   :            0 (         0 duplicates          0 deltas)
Total branches:           0 (         0 loads     )
      marks:           1024 (         0 unique    )
      atoms:              0
Memory total:          2204 KiB
       pools:          2048 KiB
     objects:           156 KiB
---------------------------------------------------------------------
pack_report: getpagesize()            =       4096
pack_report: core.packedGitWindowSize =   33554432
pack_report: core.packedGitLimit      =  268435456
pack_report: pack_used_ctr            =          0
pack_report: pack_mmap_calls          =          0
pack_report: pack_open_windows        =          0 /          0
pack_report: pack_mapped              =          0 /          0
---------------------------------------------------------------------

Каждый раз затягивать весь репозиторий ради инкрементального обновления очень неудобно. Есть ли способ научить его этому ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74057</commentid>
    <comment_count>1</comment_count>
    <who name="Sir Raorn">raorn</who>
    <bug_when>2008-07-15 19:17:36 +0400</bug_when>
    <thetext>hg2git помер, теперь вместо него http://repo.or.cz/w/fast-export.git (прямой потомок по коммитам).

Чем не устраивает ситуация сделать один раз hg clone, а потом в нём hg update?  Импорт через временный репозитарий, вполне инкрементально получается.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74058</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Gladkov">legion</who>
    <bug_when>2008-07-15 19:26:14 +0400</bug_when>
    <thetext>(In reply to comment #1)
&gt; hg2git помер, теперь вместо него http://repo.or.cz/w/fast-export.git (прямой потомок по
&gt; коммитам).

Спасибо за ссылку. Посмотрю обязательно.

&gt; Чем не устраивает ситуация сделать один раз hg clone, а потом в нём hg update?  Импорт
&gt; через временный репозитарий, вполне инкрементально получается.

Не устраивает то что нужно держать оооооочень большой репозиторий hg ради одного только импорта в git. Если бы цена вопроса была бы в метр, то я не стал бы заморачиваться.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74059</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Gladkov">legion</who>
    <bug_when>2008-07-15 19:48:35 +0400</bug_when>
    <thetext>(In reply to comment #2)
&gt; Спасибо за ссылку. Посмотрю обязательно.

fast-export/hg-fast-export.sh падает точно также.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84758</commentid>
    <comment_count>4</comment_count>
    <who name="">led</who>
    <bug_when>2009-01-23 01:58:21 +0300</bug_when>
    <thetext>(В ответ на комментарий №3)
&gt; (In reply to comment #2)
&gt; &gt; Спасибо за ссылку. Посмотрю обязательно.
&gt; 
&gt; fast-export/hg-fast-export.sh падает точно также.

При том, что погуглив, получил впечатлений, что у всех всё чудесно раьотает, не работает только у нас :(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84760</commentid>
    <comment_count>5</comment_count>
    <who name="">led</who>
    <bug_when>2009-01-23 02:19:11 +0300</bug_when>
    <thetext>(В ответ на комментарий №4)
&gt; При том, что погуглив, получил впечатлений, что у всех всё чудесно раьотает, не
&gt; работает только у нас :(

...но, похоже, это всё про локальные репозитории. потому что:

Notes/Limitations
.............
The way the hg API and remote access protocol is designed it is not
possible to use hg-fast-export on remote repositories
(http/ssh). First clone the repository, then convert it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90531</commentid>
    <comment_count>6</comment_count>
    <who name="Andrey Rahmatullin">wrar</who>
    <bug_when>2009-04-30 17:09:40 +0400</bug_when>
    <thetext>(В ответ на комментарий №5)
&gt; The way the hg API and remote access protocol is designed it is not
&gt; possible to use hg-fast-export on remote repositories
&gt; (http/ssh). First clone the repository, then convert it.
Да.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90549</commentid>
    <comment_count>7</comment_count>
    <who name="solo">solo</who>
    <bug_when>2009-04-30 20:44:17 +0400</bug_when>
    <thetext>(В ответ на комментарий №1)
&gt; hg2git помер, теперь вместо него http://repo.or.cz/w/fast-export.git (прямой
&gt; потомок по коммитам).

  Несколько пропатченная версия есть здесь: &lt;http://git.altlinux.org/people/solo/packages/?p=hg2git.git;a=shortlog;h=refs/heads/solo/master&gt;. Основные изменения: привязка импорта выполняется не по номеру ревизии (в разных &quot;родственных&quot; hg репозитариях он может плавать), а по id коммитов (в hg эта сущьность постоянная, как и в git). (Подробности описаны здесь: &lt;http://lists.altlinux.org/pipermail/devel/2008-May/155808.html&gt;).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>