unexpected behavior pushing to repo w/ more than one branch

Diab Jerius dj at head.cfa.harvard.edu
Thu Apr 20 20:57:18 UTC 2006


On Thu, 2006-04-20 at 20:49 +0000, Faheem Mitha wrote:
> On Thu, 20 Apr 2006 16:22:16 -0400, Diab Jerius <dj at head.cfa.harvard.edu> wrote:
> > I'm confused by the following behavior:
> >
> > I have a repo with two branches.  If I clone the repo, make changes,
> > then try to push the changes, hg complains about creating a new branch
> > in the master repo:
> 
> [snip]
>          
> > I don't see why it should create a new branch. If instead I pull from
> > the master, it doesn't complain, and doesn't create another branch.
> 
> [snip]
>          
> > This is the behavior I'd expect from a push.
> >
> > If I push with -f, I also don't get another branch.
> >
> > If I strip off the older branch from both repos, the push is performed
> > without complaint.
> >
> > Am I missing something?
> 
> No. I think this is 
> 
> http://www.selenic.com/mercurial/bts/issue179
> 
> Only seems to show up with multi-headed repositories.
> 
>                                               Faheem.

That does indeed look like the same behavior.
Thanks for the pointer.

Diab

-- 
Diab Jerius <djerius at cfa.harvard.edu>
Smithsonian Astrophysical Observatory




More information about the Mercurial mailing list