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
1
vote
1 answer

Error in hg convert

I have a problem with hg convert. When I write in the command line "hg convert f:/test" it gives me this: abort: invalid mode ('r') or filename. What I doing wrong?
m3l0ne
  • 11
  • 1
1
vote
1 answer

Converting a git repository with submodules to Mercurial?

It looks like "hg convert" does not support git submodules at this time. I'd like to create a private fork of a git repository, make a bunch of changes, and contribute them back. I prefer working with Mercurial on a daily basis which is why I'm…
Gili
  • 86,244
  • 97
  • 390
  • 689
0
votes
1 answer

Migrate partial svn repository to Mercurial

I need migrate a local folder which is a svn checkout to a mercurial repository, but I cannot make a svn checkout anymore (the svn server is gone), and the folder is not the trunk root, is something like svnrepourl/trunk/src/folder In my laptop I…
diegueus9
  • 29,351
  • 16
  • 62
  • 74
0
votes
2 answers

Converting Git to HG with only one branch

I have a problem when trying to convert. There is "master" branch and also another branch named "testing" When I use standard method hg convert gitbranch hgconvertedbranch I get two heads and need merge. - It merge somehow both branches and I get…
Byakugan
  • 981
  • 4
  • 15
  • 34
0
votes
1 answer

Change revision parents to remove earlier revisions from history?

How does one quickly reparent a tree in mercurial such that if this is the original structure: A-B-C-D-E-F I want to change it to: D-E-F (or even A-D-E-F would do) I tried the suggestion in this answer with the splicemap but it fails with the error…
simplename
  • 717
  • 7
  • 15
0
votes
1 answer

Sync svn and mercurial repo

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…
Bernard
  • 995
  • 2
  • 9
  • 20
0
votes
1 answer

pulling git repo with mercurial fails with error "path contains illegal component .hg/00changelog.i"

I have a project versioned with git and our client wants to access it with Mercurial, so our idea was to convert the project using the plugin “hg-git”. The error is thrown when cloning the "converted" repository with a hg command following these…
Pierre
  • 3
  • 3
0
votes
1 answer

Can I use wildcards in the filemap of hg convert

I have a repository with one file (subdir/a.txt), and the one revision, adding it. If I run hg convert with a filemap consisting of include subdir/a.txt, it works just fine. But if the filemap is include subdir/*.txt, include */a.txt, or include…
PortMan
  • 4,205
  • 9
  • 35
  • 61
0
votes
1 answer

Git equivalent of 'hg convert'

There is a useful tool for Mercurial called the "ConvertExtension." It allows you to essentially rewrite the entirety of a repository's history. For example, if you have a file "foo.txt" in your root folder, but you want it to have been in the…
themilkyninja
  • 886
  • 2
  • 9
  • 15
0
votes
1 answer

How to use hg convert properly

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…
Aly
  • 15,865
  • 47
  • 119
  • 191
0
votes
2 answers

Hg convert to SVN gives "does not look like a Subversion repository"

This question pretty much the same as HG Convert on SVN gives "does not look like a Subversion Repository" , but solution given there did not work for me. Even though I have local svn repository compatible with Subversion 1.7 (db format 4) I get…
voldemarz
  • 165
  • 5
0
votes
3 answers

How to convert a single Subversion project to Mercurial repository?

I have an old Subversion repository with many projects inside it. Each of the project follows the canonical trunk-branches-tags convention for SVN. I can convert the entire SVN repository to Mercurial using: $ hg convert /some-path/old-svn-rep #…
Ashwin Nanjappa
  • 76,204
  • 83
  • 211
  • 292
1 2 3
4