Mercurial "default-push not found!"?

I have Mercurial installed on my Windows 7 machine. I know this because when I type hg --version

, I get:

Mercurial Distributed SCM (version 2.5.2)
(see http://mercurial.selenic.com for more information)

Copyright (C) 2005-2012 Matt Mackall and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

      

I just piped some code to the local repo via hg commit -m "Made some changes."

.

Then I type in hg push

and get:

pushing to default-push
abort: repository default-push not found!

      

My C:\Users\myuser\.hg\hgrc

file looks like this:

[trusted]
users = myuser

      

What's going on here?

+3


source to share


1 answer


You need to customize your default path. You do this by having a section like this in your file .hg\hgrc

:

[paths]
default = http://somewhere/to/push/to

      



The path default

will be used for hg push

and for hg pull

. You can also customize the path default-push

if you want to use a different path for hg push

. For details see hg help paths

.

+6


source







All Articles