Programming Tools & Computer Science I

CSC 185 & 201, Spring 2013, Northern Virginia Community College

Homework 3: Mercurial setup

2013-01-22

Due:

Feb 6, 11:59PM

To submit:

After following all the directions below, send an email to me at jal2016@email.vccs.edu with subject CSC 185 HW3, containing your Bitbucket username.

Directions:

  1. Fork this class materials repository by clicking the fork button. Check the box to make it private, so that others will not be able to copy your work for later assignments.

    This creates your own personal copy of the course materials, where you'll add or edit files to complete homework assignments.

    Once it's created, click on the Admin gear icon, select Access management, and add me (username jlepak) with write access. This will allow me to read and optionally write updates to your repository.

  2. To do the rest of the assignment, you'll need to clone a copy of your repository to your computer. Click the Clone button to see the command to use; it will look something like:

    hg clone https://USERNAME@bitbucket.org/USERNAME/csc-2013-spring
    
  3. Create a folder called hw3 in the folder homework/185 in your local copy of the repository. Put all of your work for this assignment in that folder.

  4. Browse or search Bitbucket to find examples of 3 repositories containing projects related to a topic you're interested in. For each, describe the project (just a sentence or two is OK), say what the primary programming language used is, and determine how many commits have been made.

    Put all the information in a file called project-links.txt. Run hg add to add your new file to version control. Run hg commit to commit your progress so far, if you haven't already.

  5. We've used the dir command and the cd command in class already, and the week 1 page lists a few others. Find 3 more commands that could be useful (by searching online, or asking your friends), describe them, and give an example of how they're used.

    Put your answers in a file called command-examples.txt. Run hg add to add your new file to version control. Run hg commit to commit your progress so far, if you haven't already.

  6. After you are done, run hg push to post your work (you don't need to worry about fetching/merging first, since you're not collaborating with anyone yet).