Until now I can use my fork to develop but now when my commits merged manually to the main repo I've lost.
I've just started a new fork, because cannot fix the old one.
Could somebody write here the whole process of mercurial?
I'm starting with how I did until now and I will update this reply with your comments to make a tutorial for beginners (like me).
----------------------
Step 1. Get your fork to your local folder (don't forget "-r unified" and go to your personal folder first)
hg clone -r unified https://"USERNAME"@bitbucket.org/"USERNAME"/"FORKNAME"
(obviously write your username and forkname instead of "USERNAME" and "FORKNAME")(maybe you can use https://bitbucket.org/"USERNAME"/"FORKNAME"
, I'm not sure)
Step 2. Develop the code
Step 3. Get the latest changes
hg pull -r unified
https://bitbucket.org/hudson/magic-lanternhg update
If any conflicts there you should fix that first. (Is there an easy way?)
Step 4. Commit your changes
hg commit -u "USERNAME" -m "Short description about your changes"
Step 5. Update your fork with your commited changes
hg push -r unified
https://bitbucket.org/"USERNAME"/"FORKNAME"
It will ask your username and password.
Until now I can work with these commands but now I couldn't push my changes.
There is a command, hg merge which I never used. When I should use it?