Problem Pulling From Named Branches

Matt Mackall mpm at selenic.com
Tue Jan 5 22:36:13 CST 2010


On Wed, 2010-01-06 at 11:37 +0800, Carlo Camerino wrote:
> Hi,
> 
> I'm h aving trouble with pulling from a named branch in my repository
> Here is my file
> 
> I have three branches in a repository that i created through hg branch
> <branch-name>
> 
> C:\PROJECTS\BASES\base-web-dev>hg branches
> yehey                        166:58e0aef86f16
> carlo-branch                 165:01ea2874bbea
> default                      160:f188ce38948d
> 
> I'm currently in this branch
> 
> C:\PROJECTS\BASES\base-web-dev>hg branch
> yehey
> 
> When i try to pull from carlo-branch for example
> 
> C:\PROJECTS\BASES\base-web-dev>hg pull carlo-branch
> abort: repository carlo-branch not found!
> 
> I get this error
> 
> However when i just use
> 
> hg merge carlo-branch
> it seems to work...
> 
> can't i pull from named branches anymore?
> 
> i tried this on mercurial 1.4.1 and mercurial 1.4.2
> 
> am i doing things wrong?

Yes. Pull is only used to move changesets between _repositories_.
You might just want to merge with another branch, but you might want to
first sit back with a cup of tea and a copy of _Mercurial: The
Definitive Guide_ and clear up any confusion you have about the
terminology first.

http://hgbook.red-bean.com/

-- 
http://selenic.com : development and support for Mercurial and Linux




More information about the Mercurial mailing list