push to remote, feature branch at tip, but not when cloned

Uwe Brauer oub at mat.ucm.es
Wed Dec 18 16:58:55 UTC 2019



Hi

I just pushed to remote (still bitbucket) and the graph looks like this
@  changeset:   261:2528317d56b5
|  Branch:      feature
|  tag:         tip
|  user:        Uwe Brauer <oub at mat.ucm.es>
|  Date:        Wed, 18 Dec 2019 12:45:29 +0100
|  Phase:       public
|  summary:     Update hgrc
|
o  changeset:   260:4c4903c826d3
|  Branch:      default
|  user:        Uwe Brauer <oub at mat.ucm.es>
|  Date:        Wed, 18 Dec 2019 12:44:06 +0100
|  Phase:       public
|  summary:     Update hgrc


However when I clone that repository (without any option)

The graph look like this 
o  changeset:   261:2528317d56b5
|  Branch:      feature
|  tag:         tip
|  user:        Uwe Brauer <oub at mat.ucm.es>
|  Date:        Wed, 18 Dec 2019 12:45:29 +0100
|  Phase:       public
|  summary:     Update hgrc
|
@  changeset:   260:4c4903c826d3
|  Branch:      default
|  user:        Uwe Brauer <oub at mat.ucm.es>
|  Date:        Wed, 18 Dec 2019 12:44:06 +0100
|  Phase:       public
|  summary:     Update hgrc

When I push again and then run 

 hg pull -u

I still obtain 

o  changeset:   253:0b10ee92d01e
|  Branch:      anibal
|  tag:         tip
|  user:        Uwe Brauer <oub at mat.ucm.es>
|  Date:        Wed, 18 Dec 2019 17:56:22 +0100
|  Phase:       public
|  summary:     Remove phase configuration
|
o  changeset:   252:2528317d56b5
|  Branch:      anibal
|  user:        Uwe Brauer <oub at mat.ucm.es>
|  Date:        Wed, 18 Dec 2019 12:45:29 +0100
|  Phase:       public
|  summary:     Update hgrc
|
@  changeset:   251:4c4903c826d3
|  Branch:      default
|  user:        Uwe Brauer <oub at mat.ucm.es>
|  Date:        Wed, 18 Dec 2019 12:44:06 +0100
|  Phase:       public
|  summary:     Update hgrc


Is there anyway, that when running pull it automatically would checkout
tip, which is not on the default branch?

Regards

Uwe Brauer 



More information about the Mercurial mailing list