Questions tagged [mercurial-convert]

The Mercurial Convert extension converts repositories from other SCMs (or even Mercurial itself) into Mercurial or (with limits) Subversion repositories, with options for filtering and renaming.

The Mercurial Convert extension converts repositories from other SCMs (or even Mercurial itself) into Mercurial or (with limits) Subversion repositories, with options for filtering and renaming.

https://www.mercurial-scm.org/wiki/ConvertExtension

57 questions
3
votes
2 answers

How to reduce the size of Mercurial hg store. Hg store size is above 5GB and server gets timeout before cloning

Accidently I checked-in 5GB around of files to Mercurial. Our Build server started failing during cloning of repo. So we reverted the checked- in files by using Remove command. But .hg/store/data is still containing those files. And it's size is…
Sumit Sood
  • 193
  • 2
  • 7
3
votes
1 answer

How can I convert a Git repository with branches to a workable Mercurial repository?

I want to convert a Git repository with several branches to a Mercurial repository. Using hg convert only one default branch is created which then has a head for each Git branch. I have already read How are git branches imported into mercurial with…
Chris
  • 6,914
  • 5
  • 54
  • 80
3
votes
1 answer

hg convert from cvs broke branches

I converted an old cvs repository into mercurial via hg convert. Everything seemed to be okay (at least with the default branch) but all feature branches are missing files which haven't been changed in the branch. Is there any way to fix this…
Luminger
  • 2,144
  • 15
  • 22
3
votes
1 answer

How to get the working directory after performing hg convert on perforce repository

I did the hg convert on remote perforce repository and created a Mercurial repository on my Linux box. I can see there is nothing in my working directory, all files resided under the .hg/ folder. How can I make my work directory to start working on…
praveen
  • 303
  • 1
  • 9
  • 17
2
votes
2 answers

Vault to Git to Mercurial not preserving dates

Using https://github.com/AndreyNikiforov/vault2git I was able to convert a Vault repo to Git and then used Mercurial's hg convert to get a hg repo. The only issues is that after running hg convert the dates on the change set commit dates are…
Omar
  • 39,496
  • 45
  • 145
  • 213
2
votes
2 answers

Mercurial convert with --filemap fails with any dummy rename

I am trying to clean up a repository using hg convert --filemap. Convert works fine with any option in filemap except rename. If I add any rename option to filemap then it fails at the first merge with abort: unable to convert merge commit since…
Dinu
  • 1,374
  • 8
  • 21
2
votes
1 answer

Mercurial - Convert error - unable to convert merge commit

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…
2
votes
2 answers

hg convert abort: '\n' and '\r' disallowed in filenames:

I'm about to convert my git repo into a hg repo. The problem is that a few months ago there was a file added named 'favicons/Icon\r' to the git repo, which is fine for git. The file has been deleted, but since it is in the history I get this output…
Klarre
  • 107
  • 9
2
votes
1 answer

CVS to Mercurial conversion with CRLF

I have converted a CVS repository to Mercurial, but the carriage returns are converted from CRLF (Windows style) to LF (Unix style). However, I want CRLFs in the repository! I realise that you can combat this problem with Mercurial extensions…
Ola Eldøy
  • 5,720
  • 7
  • 49
  • 82
2
votes
1 answer

hg convert, Subversion python bindings error

I'm trying to convert a subversion repository to mercurial a one and at this point I'm just banging my head against the wall. On the current windows server the following programs are installed: Visual SVN Server, TortoiseHg, Python2.7 In my…
Jesper Evertsson
  • 613
  • 9
  • 28
2
votes
1 answer

Using hg convert to convert git repo to old svn format

According to the following post: http://davidvg.com/2011/12/07/converting-a-git-repo-to-svn a git repo can be converted to an svn repo using hg convert. This works for me, however, the resulting svn repo is to modern for me. The db/format number for…
JohnyTex
  • 3,323
  • 5
  • 29
  • 52
2
votes
2 answers

Mercurial from Subversion: moves, renames and tags

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…
Szemere
  • 188
  • 1
  • 5
2
votes
1 answer

hg convert doesn't recognise trunk/tags/branches from svn repository

I have tried to convert an SVN project to Mercurial using svnsync and then: mercurial-2.2.2/hg convert --authors ../authors.txt project as described here (the version of Mercurial supplied by Ubuntu crashed when trying to convert the repository, so…
Robin Green
  • 32,079
  • 16
  • 104
  • 187
2
votes
2 answers

mystery username with hg convert

I have a cloned mercurial repository, and a checked out subversion repository. When I checkout the subversion repo I take the option to save my password as plain text. I want import the mercurial repo into subversion, so I use mercurial's convert…
Michael
  • 328
  • 2
  • 11
1
vote
1 answer

Error when converting git repo to mercurial using hg convert

If I run: hg convert /path/to/repo I get the error: abort: invalid mode ('r') or filename I've checked and I think the error is a Python error, but it doesn't help me resolve the errror. Is there any way to get more information and, ultimate fix?
Lee Atkinson
  • 2,171
  • 3
  • 20
  • 32