bundle/unbundle

Deva Prasad devaprasadkn at gmail.com
Fri Apr 27 01:20:31 CDT 2007


Hi Everybody,

I am a newbie to Mercurial . So bear with me if it's too small but I
couldn't get any info on mailing list archive. Please let me know if I am
posting this query to a wrong forum.

I know that Mercurial doesn't allow partial pulls. But I have a situation
where I want to pull only a particular jar file (not a simple text file). I
tried using import/export for a text file and it works. But when I try to
use it for jar file , it fails with error : nothing found other than garbage
in the patch file.

So next option was using bundle/unbundle.  I am using the following command:

hg bundle -r <changeset number> ./bundle.hg (where changeset number is my
latest changeset number)

And it fails with the error:

Traceback (most recent call last):
  File "<MYPATH>/mercurial_trial/tools/mercurial/0.9.3/bin/hg", line 12, in ?
    commands.run()
  File "<MYPATH>/mercurial_trial/tools/mercurial/latest/lib/python2.4/site-packages/mercurial/commands.py",
line 3000, in run
    sys.exit(dispatch(sys.argv[1:]))
  File "<MYPATH>/mercurial_trial/tools/mercurial/latest/lib/python2.4/site-packages/mercurial/commands.py",
line 3223, in dispatch
    return d()
  File "<MYPATH>/mercurial_trial/tools/mercurial/latest/lib/python2.4/site-packages/mercurial/commands.py",
line 3182, in <lambda>
    d = lambda: func(u, repo, *args, **cmdoptions)
  File "<MYPATH>/mercurial_trial/tools/mercurial/latest/lib/python2.4/site-packages/mercurial/commands.py",
line 339, in bundle
    changegroup.writebundle(cg, fname, "HG10BZ")
  File "<MYPATH>/mercurial_trial/tools/mercurial/latest/lib/python2.4/site-packages/mercurial/changegroup.py",
line 93, in writebundle
    fh.write(z.flush())
RuntimeError: wrong sequence of bz2 library commands used
Segmentation Fault(core dumped)

I tried using bundle with a jar file as well as with a simple text
file but I am getting into same issue?

Could someone help me?

Thanks
Muns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://selenic.com/pipermail/mercurial/attachments/20070427/c9a49460/attachment.htm 


More information about the Mercurial mailing list