On Fri, 8 Jun 2018 10:27:51 -0400
Richard Hipp <[email protected]> wrote:

> On 6/8/18, Petr Ovtchenkov <[email protected]> wrote:
> > Hello,
> >
> > During attempt to export fossil's repo (tcl, http://core.tcl.tk/tcl) to git
> > I face with
> > fast-import (fossil export --git --export-marks ../tcl-fossil/fossil.marks
> > ../tcl.fossil | git
> > fast-import --export-marks=../tcl-fossil/git.marks) crash:
> 
> What version of Fossil are you using?  (What is the output of "fossil
> version"?)

  # fossil version
  This is fossil version 2.6 [9718f3b078] 2018-05-04 12:56:42 UTC

>  Could it be that this problem was fixed by the check-in
> shown in the links below?
> 
>     https://www.fossil-scm.org/fossil/info/c0a3e9ff6fbe3b48
>     https://www.fossil-scm.org/fossil/timeline?c=c0a3e9ff6f&n=11
> 

The

  # ../fossil-repo/fossil version
  This is fossil version 2.6 [1eee6c70aa] 2018-06-08 09:41:20 UTC

give me

  ../fossil-repo/fossil export --git --export-marks ../tcl-fossil/fossil.marks 
../tcl.fossil | git fast-import --export-marks=../tcl-fossil/git.marks
  warning: Not updating refs/heads/ios (new tip 
26fd9f86bc43fd2a2c195a70fd76a4502a81fb4d does not
  contain 29e5955df0857820f2cb89b4adf3af6efdd1e3fe)
  ...
  error: multiple updates for ref 'refs/tags/bg-tip-282' not allowed.
  /usr/libexec/git-core/git-fast-import statistics:
  ---------------------------------------------------------------------
  Alloc'd objects:     170000
  Total objects:         1296 (    178198 duplicates                  )
        blobs  :            0 (     86813 duplicates          0 deltas of       
   0 attempts)
        trees  :          757 (     68483 duplicates        619 deltas of       
 757 attempts)
        commits:          270 (     22902 duplicates          0 deltas of       
   0 attempts)
        tags   :          269 (         0 duplicates          0 deltas of       
   0 attempts)
  Total branches:         702 (      7115 loads     )
        marks:        1048576 (    109985 unique    )
        atoms:           2615
  Memory total:         10391 KiB
         pools:          2423 KiB
       objects:          7968 KiB
  ---------------------------------------------------------------------
    pack_report: getpagesize()            =       4096
  pack_report: core.packedGitWindowSize = 1073741824
  pack_report: core.packedGitLimit      = 35184372088832
  pack_report: pack_used_ctr            =      45324
  pack_report: pack_mmap_calls          =        136
  pack_report: pack_open_windows        =          4 /          4
  pack_report: pack_mapped              =  506387095 /  506387095
  ---------------------------------------------------------------------

i.e. success!

Thanks!

Just note for followers: don't forget to do

  git gc --aggressive --prune=all

Before:

   du -hs .
   1.6G .

After:

  du -hs .
  103M  .

Original fossil's repo is

  212M Jun  8 18:01 ../tcl.fossil

--

  - ptr
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to