
You might remove it yourself but do notice that you will not recover any disk space - nothing is really deleted with Mercurial. Create file fails on network drives in cygwin-1.7.9-1 12:00 Pete Forman 12:50 Corinna Vinschen 0 siblings, 1 reply 10+ messages in thread From: Pete Forman 12:00 UTC ( / raw) To: cygwin I am seeing 'Permission denied' errors when trying to create files on network drives. This procedure will leave exported data in original repository. If you see "C:\NewRepository" with just ".hg" folder inside and nothing else, you probably forgot to execute "hg update" command. If you want to start whole process from start just delete both it (revmap.txt) and new repository's directory (C:\NewRepository). Revmap.txt is here just so you can continue interrupted process. Only files under desired path will be there (moved to root) and all history will be preserved. With this you should have your new repository ready.
Tortoisehg delete folder update#
0 Adding QText cd C:\NewRepository hg update 31 files updated, 0 files merged, 0 files removed, 0 files unresolved Last thing to do is executing conversion itself and update of new repository afterward: hg convert C:\OriginalRepository C:\NewRepository C:\revmap.txt -filemap C:\map.txt scanning source. In my case this is "C:\Program Files (x86)\TortoiseHg\hg".
Tortoisehg delete folder full#
In other cases, just write full path to it every time I write "hg". I will assume here that "hg.exe" is somewhere in path so you can execute it without problem.

Do notice that we use paths relative to root of repository and that path IS case sensitive. First line includes only files at directory we wish to extract and second one moves those files to root directory (.) of new repository. Text in quotes is location of directory in original repository. Lets store it at "C:\map.txt" and add following text to it: include "Electronics/Elsidi" rename "Electronics/Elsidi" "." :)Īnother file that we need to prepare is one used for filtering out things we do not need. If you moved it somewhere else, search for it yourself. XP users should look under "C:\Documents and settings\YourName".
Tortoisehg delete folder windows#
Home folder on Windows Vista and 7 is probably located at "C:\Users\YourName".

If there is "" sections inside already, just add "convert =" under it instead of creating new one. Just editing "mercurial.ini" under home folder and adding two lines will do: convert =

I tested this with TortoiseHg but other clients should work also.įirst step is to enable ConvertExtension on our computer. I will also assume that you have Mercurial already installed. All things should work on Linux also but configuring it to work properly might (and will) differ. Since I am Windows user, I will give instructions for Windows here. However, there is something almost as good - exporting it. There is no obvious way to split repository. Time passed and I wanted to move some data to separate one. Workbench: click on the Working Directory revision which also selects the Commit task tab, or directly select the Commit task tab. As I started to work with Mercurial, I added almost everything in single repository.
