Fossil

View Ticket
Login
2010-12-18
23:59 Fixed ticket [536c339907]: git fast-import fails to import the fossil export result for mongrel2 repo plus 1 other change ... (artifact: 308140952b user: drh)
23:59
For the git-fast-export interchange format, make sure labels for blobs and labels for check-ins do not collide since git cannot deal with that. Ticket [536c3399075d06] ... (check-in: d45502b066 user: drh tags: trunk)
22:59 Ticket [536c339907] git fast-import fails to import the fossil export result for mongrel2 repo status still Open with 2 other changes ... (artifact: 5605be19e7 user: anonymous)
22:59 New ticket [536c339907]. ... (artifact: 4f6b116c47 user: anonymous)

Ticket Hash: 536c3399075d06a42126d97be90b71c5e1aa5722
Title: git fast-import fails to import the fossil export result for mongrel2 repo
Status: Fixed Type: Code_Defect
Severity: Important Priority:
Subsystem: Resolution: Fixed
Last Modified: 2010-12-18 23:59:19
15.29 years ago
Created: 2010-12-18 22:59:11
15.29 years ago
Version Found In: [0018d724b3] 2010-12-07 13:31:37 UTC
Description:
Trying out the fossil export to git, git complains about the format, running this shell script allows to reproduce the problem:
--- cut here ---
#!/bin/sh
PATH=`pwd`:$PATH
fossil version
git --version
fossil clone http://mongrel2.org:44445 mongrel2.fossil
rm -rf mongrel2-git
mkdir mongrel2-git
cd mongrel2-git
git init
fossil export --git ../mongrel2.fossil | git fast-import
--- end cut here ---

outputs on my end:

dalien@ayourtch:~/tmp$ ./runme This is fossil version [0018d724b3] 2010-12-07 13:31:37 UTC git version 1.7.0.4 Bytes Cards Artifacts Deltas Sent: 53 1 0 0 Received: 224521 4880 0 0 Sent: 10048 226 0 0 Received: 472854 294 34 166 Sent: 18853 415 0 0 Received: 228964 480 23 377 Sent: 37653 801 0 0 Received: 507401 880 149 651 Sent: 75253 1601 0 0 Received: 2407750 1680 548 1052 Sent: 88366 1880 0 0 Received: 3616447 1959 584 1295 Sent: 53 1 0 0 Received: 224521 4880 0 0 Total network traffic: 123013 bytes sent, 2461523 bytes received Rebuilding repository meta-data... 100.0% complete... project-id: 1bfa0026ac3ef7aeb5eae4e49018abf54bc189b3 server-id: fa5c71a1e27c7ca57bd6061434f9f82b87df3fd8 admin-user: dalien (password is "xxxxxx") Initialized empty Git repository in /home/dalien/tmp/mongrel2-git/.git/ fatal: Not a blob (actually a commit): M 100644 :27 src/manifest fast-import: dumping crash report to .git/fast_import_crash_24011 dalien@ayourtch:~/tmp$