CSCI 2270:
Advanced Topics in Database Management
Repository Information:
-
Mercurial Repository
We are using a non-public Mercurial repository running off the department's NFS to maintain our revisions for the book.
To check out the latest copy of the book, execute the following command on your department workstation:
$ hg clone /course/cs227/repos <local dir>
You can also check out the book sources from a remote machine over ssh. IMPORTANT: Make sure you include the extra slash after the hostname:
$ hg -v clone ssh://<username>@ssh.cs.brown.edu//course/cs227/repos <local dir>
If you are used to using SVN or CVS, then you will notice that the operations for saving changes in the Mercurial repository are similiar. For example, when you want to commit a change, you execute the commit operation (be sure to include a useful message about what you changed). To avoid unnecessary collisions, make sure you pull down any updates from the repository before committing:
$ hg pull pulling from /course/cs227/repos searching for changes no changes found $ hg update 0 files updated, 0 files merged, 0 files removed, 0 files unresolved $ hg status book.bib M book.bib $ hg commit -m "This is a message about my changes" book.bib
But Mercurial is different in that the changes for book.bib are stil only committed locally. You still need to push it out the repository so that others can pull down your changes:
$ hg push pushing to /course/cs227/repos searching for changes adding changesets adding manifests adding file changes added 1 changesets with 1 changes to 1 files
Similiarly, you can also pull down the changes from others but make sure you also update your local copy:
$ hg pull pulling from ssh://pavlo@brown//course/cs227/repos/ searching for changes adding changesets adding manifests adding file changes added 5 changesets with 20 changes to 19 files (run 'hg update' to get a working copy) $ hg update 18 files updated, 0 files merged, 1 files removed, 0 files unresolved
Be sure to create a ~/.hgrc file in your home directory with your username in it so that Mercurial knows who made certain changes:
[ui] username = John Smith <jsmith@cs.brown.edu>
-
Compiling the Book
To be written