Save remote repository url?

How can I save the remote repository url when using Mercurial?  Every time I push changes I have to re-enter the url which is really annoying.  It's easier to just set the path in the hgrc file and do it from the console.  Any ideas?  Am I doing something wrong?

0
3 comments

It works as expected if the project is cloned from the remote repository initially, but not when trying to start from existing code and push to a new repo.

0

A little reading goes a long way.  In Mercurial, the clone command automatically adds a default path to a repo's hgrc file.  Push/Pull Changeset commands do not.  So for these existing projects, I need to manually add the default path to the hgrc file and the problem is solved.

0

Thanks a lot for pointing this out! This definitely can be useful for others.

Regards,
Oleg

0

Please sign in to leave a comment.