



Edit: You'll also want to add the path to your. Right click on the file -> TortoiseHG -> Forget Files. Bottom line: 'remove' deletes the file from your working copy on disk (unless you uses -Af) and 'forget' doesn't. From the 'hg remove' help:and -Af can be used to remove files from the next revision without deleting them from the working directory. 'hg forget' is just shorthand for 'hg remove -Af'. This is similar to those that found on other Tortoise client, such as TortoiseCVS and TortoiseSVN. TortoiseHg provides visual representation of the file status via overlay icons in the MS-Explorer windows. Note in order to remove commits on a remote repository the strip command will need to be run on that repository, you cannot do this through push.ĥ.2.2. These files can be restored by going to View > Synchronize then clicking the Unbundle icon and selecting the file under the strip-backup folder. Note a backup of the commits you removed is kept under. To remove only the selected commit but keep the decendant commits see MQ.

You can just tick the deleted file and when you click the commit button you will be prompted to remove selected deleted files. If you struggle to find a match you can undo the rename and then in file explorer rename the file by right clicking and selecting TortoiseHg > Rename file. Of course you can turn off this display, but then you might forget to add a new source file. Whenever you commit changes, TortoiseSVN shows your unversioned files, which fills up the file list in the commit dialog. These might include files created by the compiler, *.obj, *.lst, maybe an output folder used to store the executable. If you have files you don't want removed, then uncheck them. After "remove files" you are presented with a dialog where you select files to remove. If you right click in repository folder and then "remove files" it will delete also other files than requested !!! That is not the way it works. Create a mercurial repository of current directory with a. If your repository contains a file that hg status reports as missing, and you want the file to stay gone, you can run hg remove at any time later on, to tell Mercurial that you really did mean to remove the file.
