Questions tagged [git-fast-import]
35 questions
13
votes
1 answer
Converting big bzr repository to git, what to expect?
I'm trying to convert some old Bazaar repositories to git, and while everything seem to go through smoothly, I'm a bit unsure if it really went as well as it claimed.
My Bazaar repository is structured like…

Soraz
- 6,610
- 4
- 31
- 48
9
votes
1 answer
What are the merge semantics of git fast-import streams?
I wrote, and maintain, an open-source tool called reposurgeon that edits version-control repository histories and can be used to move project histories between VCSes. Recently I shipped full support for reading Subversion dump files and repos. But…

ESR
- 574
- 1
- 5
- 10
8
votes
2 answers
Git clone bare repo without blobs
On my git repository, I use an algorithm to assign every commit one or more unique version numbers, based on branch names and tags. I want to use this mechanism with another large repository, that I would like to clone without transferring any…

phi1010
- 678
- 6
- 13
6
votes
2 answers
The right way to convert from bazaar to git and sync them
I have a development repository in bazaar and I want to convert it to git and keep it synced. I need this because I will be sharing my code with someone who doesn't know bazaar.
first I needed to convert my bazaar repo to git. I googled around and…

avi
- 9,292
- 11
- 47
- 84
5
votes
1 answer
Bzr fast-export return bzr: broken pipe
I need to export my bzr repo to git. To do this i'm trying to use bzr fast-export --git-branch=mybranch --plain | git fast-import --force.
The bzr starts to run but stops and return an error:
15:11:58 Calculating the revisions to include ...…

alvaropaco
- 1,573
- 18
- 29
5
votes
2 answers
How can I import a 72GB dump file into git?
I have migrated an old cvs repository with cvs2git (cvs2svn). The resulted dump file is now 72GB big and my trials to import the dump via git fast-import always fail because of an out-of-memory error:
fatal: Out of memory, malloc failed (tried to…

user2451418
- 1,387
- 4
- 15
- 27
5
votes
2 answers
Migrate bazaar to git with commit-properties to link bugs fixed
We were using bazaar-vcs for some years but decided to migrate to git because of some long standing annoying bugs and stopped development of bzr.
While using bazaar, we extensively used the "bug tracker metadata" feature of bazaar…

David Roth
- 677
- 4
- 14
4
votes
3 answers
Migrating a Bazaar repo to Git: path not in branch error
I am trying to convert this Bazaar repo to Git.
bzr branch lp:onboard
cd onboard
git init
bzr fast-export --plain . | git fast-import
But I get this error:
22:10:43 Calculating the revisions to include ...
22:10:43 Starting export of 2952 revisions…

Alex P.
- 3,697
- 9
- 45
- 110
4
votes
1 answer
git-p4 sync on different branch and repo
I'm trying to mirror a perforce repository, and git-p4 performs well enough on the main branch. I simply have to call git-p4 rebase. I'm also trying to mirror a different branch, but that's not working out so easily. I thought I could just do a…

Kevin
- 91
- 1
- 5
3
votes
1 answer
git fast-import --export-marks flag
git fast-import --export-marks is able to export a file associating the marks with the commit hashes it created.
So far I've seen the marks are not the ones provided in the input but some "internal ones" not related with the input.
Wouldn't it be…

pablo
- 6,392
- 4
- 42
- 62
2
votes
1 answer
fast-import/fast-export git/bzr: what is the importance of the marks files to history integrity?
I'm currently using git-bzr-ng to import a number of branches from a bzr repository and I've discovered that if you use different target branches for each imported branch the tool does not use the same import and export marks files.
Some reading of…

dbailey
- 1,417
- 1
- 10
- 16
2
votes
1 answer
git fast-import commit order
I'm writing a fast-export/fast-import suite for Plastic SCM/Git and I'm finding some issues.
As I read from the documentation:
This design allows a frontend program
to process an unlimited number of
branches simultaneously, generating
commits…

pablo
- 6,392
- 4
- 42
- 62
2
votes
1 answer
branch name does not conform to git standards: refs/heads/master
This error occurred while piping the output of powershell script to git fast import. The detailed error report is as follows:
D:\demo_history7 [master +4 ~0 -0 !]> .\testscript.ps1 -CSVFileName
Report_Recent.csv |git fast-import fatal: Branch…

Pranathy
- 49
- 5
2
votes
1 answer
fatal: Unsupported command: Users.Ref "KPLUS"
I'm migrating several Perforce projects to Git. One is failing though at 18% of the process with:
fatal: Unsupported command: Users.Ref "KPLUS"
It looks like git fast-import is trying to execute the text in the file where it should be printed (I…

JohanKees
- 669
- 1
- 12
- 22
2
votes
1 answer
Committing existing files to existing Git repository, while preserving timestamps
The situation is this: I have a bunch of files from ages ago (back when I wasn't using source control of any kind) which I'd love to put to modern-time Git repositories.
I found one tool for this - file-fast-export. It takes existing files and spits…

wwwwolf
- 53
- 5