![]() I haven't tested it so see what happens if you do this so if I were you I'd abandon the original branch if you're going to edit the repo. This batch file can be run at any time to pull updates from the SVN source if they happen to be the only ones left on earth actually still using SVN. I'd like to think it gave a TFS server somewhere a good beating. The repo in this example did take a couple of days to fetch the whole history (I'm in Australia so the latency may have been a factor). If you stop this it will resume from where it left off.īelow is a batch file I wrote because Codeplex SVNbridge rubbish. The advantage of using hg convert is that is can be resumed. If it is a public, open-source repo you could just use which took about half an hour to clone that repo to GitHib and then just pull that into Hg. Add the permissions to the new cloned folder.It is not necessary to create a folder at the new destination as the cloning process will create it and initialize it. ![]() Destination: Enter the full path of where you want the repo cloned.Source: Enter the full path of the converted repo.IT WILL NOT BE INITIATED, AND DO NOT INITIATE! Now it should be running and will create another folder alongside the old one.Also, if the name has spaces, put the name in quotations. The one in the command is a forward slash. At the Y:\ prompt type: hg convert y:/RepoName (use the name of the current Repo) Be careful of the forward and back slashes.Open a command Prompt and type: CD /D Y:\.Map the folder just above it) Give the mapped drive a letter, like Y:\ \\server\folder Do not map the SVN Repo folder itself. It is best to map the Folder that the current SVN Repo is in to the computer you are working on.Start the TortoiseHG Workbench from the Start menu. You will need to add the convert extension to Tortoise.The Python Modules (you can find them ).(Check to see what version is currently being used) To convert an SVN Repo to an HG Repo AND copy it to a different server, you will need a few things. I found that the convert tool can have problems with networked repositories, so I had to map a drive to it, but this worked just fine for me. If that's what you have, simple add these two lines to the very end of the file: ģ) Below it you'll see a list of keywords, commented out with a semicolon ( ) on each lineĥ) Open the command prompt and navigate to the directory that you'd like the new hg folder created in (the process will create a new folder called yoursvnreponame-hg in the directory that the command prompt is open to). That file will be mostly empty and you'll just list what you'd like to override there. Vista or later - C:\Users\USERNAME\Mercurial.ini.XP or older - C:\Documents and Settings\USERNAME\Mercurial.ini.To convert a repository from SVN to HG, I followed these steps:ġ) Open C:\Program Files\TortoiseHg\Mercurial.iniįYI - Tortoise Hg has migrated this file to Many thanks to bgever for pointing out in the comments that with TortoiseHg 2.0, enabling the convert extension is easier than ever. I also have TortoiseHG installed as well as the CollabNet Subversion Command-Line Client. I have a windows XP machine with a separate windows server hosting VisualSVN Server. Online documentation is available at: (the English version is most up to date, but it's available in more languages).I just had to tackle this problem myself. ![]() ![]() The thg script and TortoiseHg dialogs can be used on any platform that supports PyQt, including Mac OS X. TortoiseHg is primarily written in Python and PyQt (the Windows shell extension being the notable exception). TortoiseHg binary packages list Mercurial as a dependency, so it is usually installed for you automatically. You must have Mercurial installed separately in order to run TortoiseHg on Linux. TortoiseHg consists of a command line thg script and a Nautilus extension which provides overlays and context menus in your file explorer. Binary packages of TortoiseHg for Windows include Mercurial, TortoisePlink and a merge tool and are thus completely ready for use “Out of the Box”. TortoiseHg consists of a shell extension, which provides overlay icons and context menus in your file explorer, and a command line program named thg.exe which can launch the TortoiseHg tools. ![]() TortoiseHg I think the old website ( ) was not yet migrated, so linking to the new repo seems best for now, to not make people think the project is dead is a set of graphical tools and a shell extension for Mercurial. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |