1

Is it possible to have local branches in a local repo without having them appearing on a remote repository?

e.g.

Local Repo:

[default]
[fixes]

I'd like to merge the fixes branch into default and then push upto the remote repository without pushing the local [fixes] branch to the remote repo?

Remote Repo:

[default]
jaffa
  • 26,770
  • 50
  • 178
  • 289

2 Answers2

0

A LocalbranchExtension exists but I never tried it.

krtek
  • 26,334
  • 5
  • 56
  • 84
0

If you merge fixes into default, then fixes is part of the default history, and must be pushed as well. If you have two separate branch heads it is possible to push one without the other with hg push -r <rev>.

Mark Tolonen
  • 166,664
  • 26
  • 169
  • 251