mercurial-convert

Sync svn and mercurial repo

笑着哭i 提交于 2019-12-25 06:07:42
问题 We have an active svn repository and we are planning a migration to mercurial. The idea is to create a new mercurial repo, sync the svn repo with it with history, create a teamcity build for it and move two developers onto mercurial solely to trial it out and make sure its all kosher. This means we need bi-directional sync between svn and mercurial. I have seen this link Syncing SVN to Mercurial using svnsync & hg convert -- misses svn:externals? which sort of describes a way but it is fairly

Mercurial from Subversion: moves, renames and tags

强颜欢笑 提交于 2019-12-24 00:32:52
问题 I have a subversion repo with the following layout: svnrepo/projectA/trunk svnrepo/projectA/tags svnrepo/projectA/branches svnrepo/projectB/trunk svnrepo/projectB/tags svnrepo/projectB/branches which I would like to move to a mercurial repo with a revised layout: hgrepo/projectA hgrepo/projectB What is the best way of doing this? Some of my thoughts are: Option1 Rearrange the paths in subversion (using svn move) to an intermediate format: svnrepo/trunk/projectA svnrepo/trunk/projectB svnrepo

Syncing SVN to Mercurial using svnsync & hg convert — misses svn:externals?

泄露秘密 提交于 2019-12-23 19:28:05
问题 I've created a Mercurial mirror of an SVN repository (using this tutorial: http://oreilly.com/opensource/excerpts/opensource-mercurial/migrating-to-mercurial.html). The sync works great, except I've noticed it's not picking up an external repository that is referenced in the main SVN repo... I'd ideally like to be able to pull everything as a single repo into Mercurial (along with changesets if possible). What I'm not sure of is: is the missing external a limitation of svnsync, or a

Mercurial - Convert error - unable to convert merge commit

牧云@^-^@ 提交于 2019-12-11 09:12:51
问题 I have a huge repository with many subfolders in the following layout: MainRepo ├── Folder1 ├── Folder2 ├── Folder3 ├── Folder4 └── Folder5 I'm trying to create another repo from folders Folder1, Folder2 and Folder3 . To do that I created the filemap to use in convert like this: include Folder1 include Folder2 include Folder3 rename . But when I try to convert the repository using: hg convert --filemap filemap MainRepo/ NewRepo I get the following error: ... <rev> message 1136 Merge with

hg convert not actually converting?

空扰寡人 提交于 2019-12-11 08:35:49
问题 I run the following hg command and see a whole bunch of revision numbers & their messages fly past my screen, but when it finishes the destination hg repository is empty. hg convert -s p4 //depot/proj1/... c:\hg\proj1 --config convert.p4.startrev=1267 What am I doing wrong? 回答1: When in doubt, use the summary command . You'll probably see something like this: $ hg sum parent: -1:000000000000 (no revision checked out) branch: default commit: (clean) update: 15225 new changesets (update) This

Adding changes from one Mercurial repository to another

泄露秘密 提交于 2019-12-10 12:52:28
问题 When changing the VCS for my project FakeItEasy from SVN to Mercurial on Google Code I was a bit too eager (I'm funny like that). What I did was just checking the latest version out of SVN and then commiting that checkout as the first revision of the new Mercurial repo. This obviously has the effect that all history is lost. Later when getting a bit better acustomed to Mercurial I realized that there is such a thing as a "convert extension" that allows you to convert a SVN repo into a

HG Convert on SVN gives “does not look like a Subversion Repository”

≡放荡痞女 提交于 2019-12-09 18:29:17
问题 I just installed TortoiseHG v2.11 with Mercurial-2.9 I am attempting to convert my local Subversion repositories created with TortoiseSVN 1.8. 4, Subversion 1.8.5 To be sure that my old Subversion repositories don't have any weird quirks I created a new SVN repo called test_repo with the default folder structure, performed a Checkout to test_repowc, then added some text files to the trunk, then modified and committed the files a few times to provide some history. I then opened cmd.exe,

How to use hg convert properly

谁说我不能喝 提交于 2019-12-08 10:45:22
问题 at one point I committed large files to my hg repository, I later did a hg forget on these files, but now my repository is quite big and on every new clone it takes ages as these files are still being pulled down as part of the history. I am using this SO post to try and convert my repository into a repository that doesn't know of the large files. I am doing the following assume my repository has the following structure: ~/workspace/ project/ data/ large_file.txt src/ ... I am doing the

Finding Large Files in Mercurial Repository

大憨熊 提交于 2019-12-06 23:55:37
问题 Similar to this link but for mercurial. I'd like to find the files that are most contributing to the size of my mercurial repository. I intend to use hg convert to create a new, smaller repository. I'm just not sure yet which files are contributing to the repository size. They could be files that have already been deleted. What is a good way to find these anywhere in the repository history? There are over 20,000 commits. I'm thinking a powershell script, but I'm not sure what the best way to

Finding Large Files in Mercurial Repository

a 夏天 提交于 2019-12-05 03:39:33
Similar to this link but for mercurial. I'd like to find the files that are most contributing to the size of my mercurial repository. I intend to use hg convert to create a new, smaller repository. I'm just not sure yet which files are contributing to the repository size. They could be files that have already been deleted. What is a good way to find these anywhere in the repository history? There are over 20,000 commits. I'm thinking a powershell script, but I'm not sure what the best way to go about this is. Check hg help fileset . Something like hg files "set:size('>1M')" should do the trick