The hg push TestBranch
is not doing what you expect it to do. It is not pushing a branch, but instead pushing TO the repo TestBranch
, which most certainly does not exist.
The command to push ONLY TestBranch is this one:
hg push -b TestBranch
However, issuing a simple hg push
would work too. Without the -b TestBranch
(or -r TestBranch
), you are pushing all the changesets that are not present on the remote repo, including the branch you created.
Now, for your lock, you are actually pushing to the same repo you originate your push from. That most certainly end up as a deadlock.
C:\Development\Service>hg push TestBranch
pushing to C:\Development\Service
Instead, if you are conducting tests, create a clone of your repo elsewhere on your PC and push to it.
hg push -b TestBranch c:\Development\Service-clone