- New repositories are created using the hg init command
- To create a repository in the current directory
- To create it at $loc$
- Once you've created your repository, you'll need to add files to it
- hg add $file
- You can add these files one at a time
- Or you can add them in a group using things like hg add *.ml
- Don't forget to add the '.system' file.
- use hg status to see the status of your current directory
- A stands for added
- ? stands for not tracked
- If you want to get rid of all those ?'s, you'll need to write an hgignore file.
- If you make an hgignore file, make sure you add it to the repository.
- When you've got all the files added and ready to go, hg commit version 1 of you repository.
If you're not working from scratch (say you've been working on some new idea and already have a local repository for it)
- hg init ~ruml/library/code/ocaml-stable/$repository path$
- $repository path$ can be a new directory, but it can be only one deep
- ~ruml/library/code/ocaml-stable/foo will work if foo does not exist
- ~ruml/library/code/ocaml-stable/foo/bar will not work if foo does not exist
- hg push -r tip ~ruml/library/code/ocaml-stable/$repository path$
- This pushes the current version to the repository specified, you could use something that is not tip if you'd like.
- Go to the newly created repository
- hg update
- The current build is now in ocaml-stable.
Comments (0)
You don't have permission to comment on this page.