Reputation: 17806
Yes, I've googled and I could not find the answer to this problem.
First thing, my team and I are noobs with hg, bitbucket, etc. Our first task was to add our names on the read.txt, each member do it on their own machine. Now all of us had added the names and the main repo has been updated with all of our names.
My own repo is a fork from the main repo. It only had some of the names because I was the first ones to add the name. When I pull from the main repo, it asked that I use "hg update", this updates my local files with all the names.
Here's my question:
My local files are the same as the main repo, but my forked repo does not. I tried to push the updated changes to my repo but it says "no changes found".
What is the proper way to pull changes from the main repo and then push it to my own repo?
Upvotes: 3
Views: 11663
Reputation: 97282
Follow up to soulcheck
You can faster get remote data in your Working copy using hg fetch
or hg pull -u
instead of plain hg pull
Upvotes: 3
Reputation: 36767
When you pull changes it pulls the changes to your local repo. hg update
updates the working copy (the files you edit, not the repo, the changes are in already in your repo since you pulled them).
So once you pulled the changes (to your local repo) and updated your working copy (from your local repo) there was nothing more to do.
You normally don't need to push changes to local repo (except pushing from other repos). You push between repos.
If you edit something in your working copy you can commit it.
Generally you:
hg pull ...
hg update
hg commit ...
hg push ...
Also note that push and pull are symmetric operations.
Upvotes: 9