So I decided to give it a try for some of my own personal projects. Let me tell you, I have had my fair share of problems, primarily because I have no idea what I am doing. Since everything was already in place here at MS, I didn't have to know about all the different setting/config files and how to set them up. As I continue my adventure through Mercurial-land, I'll be sure (try) to post my findings in hopes that it helps you, the reader.
So I created my new Mercurial repository using bitbucket.org and uploaded my initial project per the instructions. I won't go into detail about how that works at the moment, perhaps in another post. Anyways, I started working away on my home machine and everything was going great...or so I thought.
I checked in my code and then tried to do a hg push only to receive the message:
"abort: repository default not found!"
"Huh, well that's odd" I thought to myself, "I only have one repo and only one branch in that repo. So I would assume that the only branch in it would be the default". Well I was correct, however didn't know that I simply needed to update one of the setting files and set the default path to the url of my repository. Here is where and how to do it:
- Navigate to the local copy of your repository
- Find the folder named ".hg" and open it up
- Inside of the folder is a file named "hgrc" which contains various settings specific to the repository. Right click and open it with your favorite text editor
- Locate the [path] section. If this doesn't exist, add it
- Under [path] enter the following: default = https://path/to/your/hosted/source (ie: https://bitbucket.org/username/repository)
- Save the file and that's it!
Now when you do a hg push or hg fetch it will now know where to go to manage the files.
Happy Coding!
0 comments:
Post a Comment