OR—if you already have the code and need to make it hg-able, do
Configuration file
Contents:
# This is a Mercurial configuration file.
[ui]
username = Firstname Lastname <email.address@example.net>
location:
in dos window type echo %UserProfile%
workflow
- Clone or initialize repository (hg clone or hg init & hg add)
- Make some changes (text editor)
- Check status (which local files have changed since repo cloned/updated) (hg status)
- Compare differences (double check actual changes inside the files) (hg diff)
- Commit the changes to the local repository (hg commit)
- Pull changes from repository (useful if someone else works on this code—skip for solo, organized users) (hg pull)
- Merge those pulled changes with the local copy (hg merge)—TEST to make sure it didn’t break!
- Commit the merge (hg commit)
- Push the newly committed merged version back to the repository (hg push)
- User b (or self at another location) needs to pull these changes (hg pull)—this pulls the LIST of changes but doesn’t actually change the code
- User/location B needs to incorporate the changes pulled (hg update)
Pull is followed by merge or update