hg pull and bundles

Alexis S. L. Carvalho alexis at cecm.usp.br
Wed Jul 4 11:18:23 CDT 2007


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"?
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


More information about the Mercurial mailing list