When creating a hg repository locally, at some point later, I often need to set the default outgoing repository to push out my changes.
Creating projects locally using hg (hg init) without cloning from anther location is ideal for playing with new projects locally and having your source code version controlled.
There are so many times where I spend about 10 minutes going down a path then find out that I don't want to continue. With mercurial or git as a local version control system, you can simply revert back your changes to the last commit.
When the time comes to publish your changes to the world, setting up a default outgoing repository in hg saves a lot of typing.
Here is how to do it
- Go to the .hg folder in the root of your repository
- Create a new file called "hgrc"
- Enter your default outgoing repository as show below.
That's it. Now you can just enter "hg outgoing" to see the list of change-sets that need to be pushed to your default repository and "hg push" to actually push out your changes.
Codeplex now has Mercurial as an option for version control.
Here is a copy paste sample for the Jobping Url Shortener project on codeplex
[paths]
default = https://hg01.codeplex.com/jpurlshortener
1 comment:
I have known many information from this.
Thanks....
Mechanical Seals
Post a Comment