(Tue, 21 Apr 12:32) Ron W: > On Tue, Apr 21, 2015 at 5:27 AM, Natacha Porté <nata...@instinctive.eu> > wrote: > > > > So a more realistic request would a procedure to backport the git > > commits into fossil, and a new update script to only export stuff beyond > > the synchronization point. > > > > Would the "export-marks" feature be what I need? I haven't really > > understood what it is and how it works. > > > > Fossil's incremental export/import works like: > > # initial export > fossil export --git --export marksfile -R repo.fossil >firstexport > > # incremental export > fossil export --git --import marksfile --export newmarks -R repo.fossil > >secondexport > mv marksfile oldmarks > mv newmarks marksfile > > # initial import > fossil import --git mirror.fossil <firstexport > > # incremental import > fossil import --git --inc mirror.fossil <secondexport >
Hello, lightweight (non-annotated) tags vs. annotated tags How to export tags (from fossil to git) ? I got this error, and did not get any tags error: Multiple updates for ref 'refs/tags/release' not allowed. with quick fix (aka lightweight (non-annotated) tags): Index: src/export.c ================================================================== --- /home/juef/fossil/e/fossil/src/export.c~0 2015-04-22 22:45:54.366630409 +0300 +++ /home/juef/fossil/e/fossil/src/export.c 2015-04-22 22:36:38.999984953 +0300 @@ -340,10 +340,11 @@ for(i=0; zEncoded[i]; i++){ if( !fossil_isalnum(zEncoded[i]) ) zEncoded[i] = '_'; } - printf("tag %s\n", zEncoded); +/* printf("tag %s\n", zEncoded); */ + printf("reset refs/tags/%s\n", zEncoded); printf("from :%d\n", COMMITMARK(rid)); - printf("tagger <tagger> %s +0000\n", zSecSince1970); - printf("data 0\n"); +/* printf("tagger <tagger> %s +0000\n", zSecSince1970); + printf("data 0\n"); */ fossil_free(zEncoded); } db_finalize(&q); everything works as expected. Also how to export fossil repository to git ? $ fossil export --git ../fossil.fossil | git fast-import fatal: Unsupported command: def.txt fast-import: dumping crash report to .git/fast_import_crash_28224 and now i'm working on the wrapper: fossil=>git=>fossil Thanks for the inspiration ;) -- http://www.juef.tk/ _______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users