hg pull and bundles
Padraig O'Briain
Padraig.Obriain at Sun.COM
Thu Jul 5 07:08:02 UTC 2007
Alexis S. L. Carvalho wrote:
> Thus spake Padraig O'Briain:
>
>> The man page for hg pull leaves me with the impression that I can
>> specify a bundle file created by hg incoming, instead of a remote
>> repository.
>>
>> When I try it I get an error
>>
>> abort: There is no Mercurial repository here (.hg not found)!
>>
>> If I call hg unbundle instead of hg pull things seem to work properly.
>>
>> Is this the way it should be done?
>>
>
> I think you tried something like "hg -R path/to/repo pull bundle-file"?
>
Yes.
Thanks. That has cleared it up.
> A simple "hg pull path/to/bundle-file" should've worked.
>
> Pull needs another repo to pull from. When you give it a bundle file,
> it will try to create a pseudo-repo made of the repo in the cwd and the
> bundle file. This doesn't take into account the -R option.
>
> Possible alternatives:
>
> - hg -R repo unbundle bundle-file
>
> - hg --cwd repo pull /absolute/path/to/bundle-file
>
> - hg -R repo pull bundle:repo+bundle-file (assuming "repo" is a
> directory)
>
> Alexis
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial
>
More information about the Mercurial
mailing list