annotate help/topics/20.txt @ 587:4ed384ea7f39 fswatcher

comment only
author Chris Cannam
date Wed, 14 Mar 2012 12:00:20 +0000
parents a9032181c37d
children
rev   line source
Chris@496 1 {Making changes}
Chris@496 2
Chris@496 3 I've added a new file: what do I do with it?
Chris@496 4
Chris@496 5 When you add a new file in the working folder, you normally want to
Chris@496 6 ensure that Mercurial keeps track of changes to that file -- and that
Chris@496 7 the file is included in all copies of the repository. To do this, you
Chris@496 8 need to tell Mercurial to _track_ the file by adding it to version
Chris@496 9 control.
Chris@496 10
Chris@496 11 EasyMercurial shows files that have been created but not added in the
Chris@497 12 *"Untracked"* file list under "My work". (If your file is not listed
Chris@496 13 there, try clicking the Refresh button.)
Chris@496 14
Chris@496 15 *1. Find the file you want to add in the Untracked list and select it*
Chris@496 16
Chris@496 17 *2. Click Add in the toolbar on the left of the window*
Chris@496 18
Chris@496 19 The file will be moved to the *"Added"* list. This tells Mercurial to
Chris@496 20 track the file. The next time you commit, the contents of your new
Chris@496 21 file will be recorded as part of that change set.
Chris@496 22
Chris@496 23 * Note: the equivalent Mercurial command for this is *hg add*
Chris@496 24
Chris@496 25 Of course, you don't always want to track every file in your working
Chris@496 26 copy. Object files generated by a compiler, output files from tests,
Chris@496 27 etc should often not be included in version control. You can ensure
Chris@496 28 that such files don't show up in the Untracked list by right-clicking
Chris@496 29 on them and choosing *"Ignore..."*.
Chris@496 30