How to set up default local push path in Mercurial?

949 views Asked by At

I am trying to set default local push path for Mercurial. I do not need a remote server, instead I want to use my working directory as default path. How do I set it up?

My hgrc file does not work and looks like this:

[path]
default = /home/user/myscript/
default-push = /home/user/myscript/

Upon calling hg push, I get:

pushing to default
abort: repository default not found!
1

There are 1 answers

0
lc2817 On BEST ANSWER

You want to use:

[paths]
default = file:///home/user/myscript/
default-push = file:///home/user/myscript/