plugin does not work with hg-1.3.x

Bug #425627 reported by Saša Janiška
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Fast Import
Fix Released
Undecided
Unassigned

Bug Description

Hi!

Attempt to convert hg repo with latest code fails:

[gour@gaura-nitai tryton-dev] ~/.bazaar/plugins/fastimport/exporters/darcs/x2d -f hg trytond
master: Exporting full revision 1/1990 with 48/0/0 added/changed/removed files
Traceback (most recent call last):
  File "/home/gour/.bazaar/plugins/fastimport/exporters/darcs/darcs-fast-import", line 310, in <module>
    h.handle()
  File "/home/gour/.bazaar/plugins/fastimport/exporters/darcs/darcs-fast-import", line 292, in handle
    self.handle_commit()
  File "/home/gour/.bazaar/plugins/fastimport/exporters/darcs/darcs-fast-import", line 197, in handle_commit
    sock = open(path, "w")
IOError: [Errno 2] No such file or directory: 'trytond/__init__.py'
Traceback (most recent call last):
  File "/home/gour/.bazaar/plugins/fastimport/exporters/hg-fast-export.py", line 442, in <module>
    options.statusfile,authors=a,sob=options.sob,force=options.force))
  File "/home/gour/.bazaar/plugins/fastimport/exporters/hg-fast-export.py", line 376, in hg2git
    c=export_commit(ui,repo,rev,marks_cache,mapping_cache,heads_cache,last,max,c,authors,sob,brmap)
  File "/home/gour/.bazaar/plugins/fastimport/exporters/hg-fast-export.py", line 256, in export_commit
    export_file_contents(ctx,man,added)
  File "/home/gour/.bazaar/plugins/fastimport/exporters/hg-fast-export.py", line 127, in export_file_contents
    wr(d)
  File "/home/gour/.bazaar/plugins/fastimport/exporters/hg-fast-export.py", line 28, in wr
    print msg
IOError: [Errno 32] Broken pipe

vmiklos on IRC confirmed there is problem with hg-1.3.x.

Sincerely,
Gour

Related branches

Revision history for this message
Miklos Vajna (vmiklos) wrote :

Could you please confirm that this patch fixes your issue?

Thanks.

Revision history for this message
Saša Janiška (gour) wrote :

Hello Miklos,

> Could you please confirm that this patch fixes your issue?

Yes, it does!!!

Thank you very much for prompt fixing. :-)

Sincerely,
Gour

Revision history for this message
Ian Clatworthy (ian-clatworthy) wrote :

Fix merged into rev 242.

Changed in bzr-fastimport:
status: New → Fix Released
Revision history for this message
Saša Janiška (gour) wrote :

btw, is it still true that it's not possible to do 2-way sync with hg?

Sincerely,
Gour

Revision history for this message
Miklos Vajna (vmiklos) wrote : Re: [Bug 425627] Re: plugin does not work with hg-1.3.x

On Tue, Sep 08, 2009 at 08:18:51AM -0000, Gour <email address hidden> wrote:
> btw, is it still true that it's not possible to do 2-way sync with hg?

Yes, that's because hg-fastimport does not support incremental imports
yet.

CMIIW. :)

Revision history for this message
Saša Janiška (gour) wrote :

Hi!

I've contacted the current maintainer of hg-fastimport and here is the reply:

>> However, it looks that bzr-fastimport does not support incremental
>> imports which makes it not-usable for 2-way sync and this feature is
>> supported for bzr, darcs & git's fast-import/export.
>>
>> Any plan to add the feature and therefore reduce the
>> interoperability-borders in the DVCS-world?

> Nope. I'm not currently working on hg-fastimport because I don't need
> it. Patches are welcome.

So, it looks like hg is 2nd class citizen in the fast-import world. :-/

Maybe it could be mentioned on the new 'vcs-fast-import-devs' that hg is lacking here?

Sincerely,
Gour

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.