fast-export | A mercurial to git converter using git-fast-import | Code Editor library
kandi X-RAY | fast-export Summary
kandi X-RAY | fast-export Summary
hg-fast-export.sh - mercurial to git converter using git-fast-import.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Convert hg to git
- Export a commit
- Export file contents
- Setup a repository
- Check if count commits after commit
- Load a mapping from a file
- Filter the commit message based on the commit
- Get all of the branches in the given repo
- Get a list of tags from the git repository
- Setup the repository
fast-export Key Features
fast-export Examples and Code Snippets
Community Discussions
Trending Discussions on fast-export
QUESTION
cvsimport is missing in Centos8. Unable to install. Now I tried to use fast-import. Most of the repos it is okay but it fails with some repo which has binary files. I think there is a bug in cvs-fast-export
...ANSWER
Answered 2021-Dec-16 at 14:38Posting solution based on comment exchange above in original question
I suggest trying cvs2git.
@RamananT says
I Tried and unfortunately cvs2git also failed with this error
ERROR: The command 'cvs -Q -f -d :local:/home/user/path/to/cvs/repo/proj co -r1.1.1.2.1 -p -kb scripts/additions/320_str.20070501-001101.sql'
failed with exit status=-9 and no output.
I then suggested
You could try that command yourself to see if the ,v
file is somehow corrupted. The stored sql file it is a text file, but the .sq,v
file is in RCS format and you would not be able to tell by inspection if it was corrupted or not. But you could fairly easily
- run the
cvs
command thatcvs2git
says fails and see if it fails for you when run manually. Or - you could make a copy of the repo, remove that one file, and try
cvs2git
on that. That would also show you if that particular file is indeed a problem.
Thanks @mort, that made wonders. If it is an answer I would accept this solution. The issue is just on that file. I didn't investigate the issue but just deleted and carried on
QUESTION
I'm trying to do a migration of a 14.4k commit and 12 years old project from SVN to git.
As this is the tool that comes first when doing a basic browser research I tried to do it with git-svn
.
As it is really big I tried to do the migration from just a recent history like so :
ANSWER
Answered 2020-Dec-11 at 16:55Was I suppose to somehow resume the command that failed ?
Yes, try git svn fetch
. This will resume it, exactly.
Basically, git svn clone
= git svn init
followed by git svn fetch
. (Quite similarly to how git clone
itself is a git init
, followed by adding a remote named by default origin
, followed by git fetch
.)
In my experience with git-svn
, certain amount of fiddling around with .git/config
, and understanding the differences between refs and remotes, is often needed to get it working as you expect.
Usually, git-svn
is the remote which stands for the remote SVN server you're accessing through the git-svn
"adapter". Hypothetically, due to DVCS nature, you could have a Git repo with 3 remotes:
lab-server
cloud-archive
git-svn
(or, perhaps better renamed as e.g.svn-legacy
)
Seeing an origin
remote in your error messages tells me you probably got confused at some point, and said git clone
instead of git svn clone
. My advice would be to figure out the basics and obtain a clear mental model of what you're doing. Documentation and .git/config
may help with that.
QUESTION
I'm trying to migrate an 11GB SVN repo with over than 24k revisions inside to a single GIT repository.
I did a single file dump of the SVN using svnrdump
command and load it into my local SVN server, placed on my MacBook machine.
I downloaded the svn2git from the https://github.com/svn-all-fast-export/svn2git repository.
Due to differences in the way how SVN and GIT handle tags, I used a merged-branches-tags.rules from the svn2git sample directory, which look like this (I've removed comments): create repository myproject end repository
...ANSWER
Answered 2020-Jul-14 at 21:48After a further investigation, it turns out that the mentioned "7.0M0p0000" tag was created in the rev 12601 as a copy of all the tags from rev 12600.
I've found it in the dump file, created using this command:
QUESTION
I have converted an old hg repository into git with hg-fast-export.sh. Then I've copied the .git directory into the server filesystem. I would expect git to recognize that all the files are the same as expected. Instead git complains that all the files are both deleted
and untracked
. For example:
ANSWER
Answered 2020-Jun-25 at 15:47It's not clear to me why the file is showing up as "to be deleted" (note that it's not deleted yet, it is to be deleted instead) but the rest of the output is quite normal: it just means that somehow, you have told Git that the next commit you plan to make should omit the file base.html
.
To fix this, use the advice shown by Git itself above:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install fast-export
You can use fast-export like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page