Fwd: bundle/unbundle

Deva Prasad devaprasadkn at gmail.com
Sun Apr 29 23:51:53 CDT 2007


Matt/Others,

Could someone help me in coming up with a suitable approach to address my
scenario?

Thanks
Seema

---------- Forwarded message ----------
From: Deva Prasad <devaprasadkn at gmail.com>
Date: Apr 28, 2007 5:34 PM
Subject: Re: bundle/unbundle
To: mercurial at selenic.com

Hello ,

Thanks for helping me here.

I am using solaris 5.11 with python 2.4.3 version.

Here is the situation which I am trying to address:

I have a  repository named as Repository1 and I have 4-5 directories under
Repository1 say folder1, folder2, folder3 and shared_folder.

Now for some reason I have a few changes happened  in shared_folder (these
changes are in terms of jar files, .so files, .dlls etc and not just one jar
file) which I want to pull to another repository of mine called repository2
. Repository2 is a totally unlinked repository w.r.t Repository1  but I am
using some libraries/tools which have been updated in repository1 and hence
need to be updated in Repository2 as well. So even if there are changes in
other folders (i.e folder2, folder3), I am interested in pulling only
shared_folder changes from repository1 to repository2.

As you said why not just copy the files: I have all my files in repository2
under mercurial. So if there is a dll or jar file which is already existing
in repository2 and need to be updated  because there is a later version in
repository1, how would just copying the file help me? I don't want to do
another hg add for those shared tools in repository2.

Thanks
Muns









On 4/27/07, Deva Prasad <devaprasadkn at gmail.com> wrote:
>
> 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/20070430/aafa3fbe/attachment-0001.htm 


More information about the Mercurial mailing list