On Wed, Tue, 9 Nov 2010 20:52:11 -0500, Richard Hipp d...@sqlite.org wrote:
On Thu, Sep 23, 2010 at 3:15 PM, Todd A. Jacobs
codegnome.consulting+fossil-us...@gmail.comcodegnome.consulting%2bfossil-us...@gmail.com
codegnome.consulting%2bfossil-us...@gmail.comcodegnome.consulting%252bfossil-us...@gmail.com
wrote:
I'm looking at fossil, and saw a recent post about using git's
fast-export to get data into fossil. I'm unsure how one gets revision
history OUT of fossil, though.
If I use fossil, and decide at some point that I want to migrate to
something else, is there any way to export the revision history of
artifacts? Something similar to svndump or git's fast-export? Even if
it isn't *usable* by anything else at the moment, the ability to
export into some sort of parsable format would be nice.
The latest checking on trunk (
http://www.fossil-scm.org/fossil/info/0e87f42762) is able to export all of
its revision history to Git using the fossil export command. And it is
able to import Git revision history using the fossil import command.
I tested the export capabilities by translating the Fossil and SQLite
repositories into Git. And I tested the import function by translating the
Git repository into Fossil.
These two new commands (import and export) are early prototypes. They
surely still contain bugs and lack needed features. But I think they
provide a good start toward an import/export capability for Fossil.
To convert Fossil into Git:
git init fdemo
cd fdemo
fossil export ~/fossil.fossil | git fast-import
To convert Git into Fossil:
git fast-export --signed-tag=strip --tag-of-filtered-object=drop --all
| fossil import git.fossil
Please send bug reports, patches, or suggestions for improvement to this
mailing list, or directly to me.
Just in time to compatible with reposurgeon: http://esr.ibiblio.org/?p=2718
--jcc
--
J Cameron Cooper
jccoo...@gmail.com
anyth...@jcameroncooper.com
mobile: 713.882.7395
Skype: jcameroncooper
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users