savannah-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[savannah-help-public] [sr #108761] Please allow Non-Fast-Forward commit


From: Assaf Gordon
Subject: [savannah-help-public] [sr #108761] Please allow Non-Fast-Forward commits for GNU ccd2cue's Git repository
Date: Thu, 05 Mar 2015 19:38:03 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/40.0.2214.111 Chrome/40.0.2214.111 Safari/537.36

Follow-up Comment #4, sr #108761 (project administration):

Hello Bruno,

I've experimented with several cvs conversion tools, and for me,
cvs-fast-export failed the least :)

If you do end up writing the article, I'd be happy to add it to the Savannah
Wiki.

If it helps in any way to your article, this is how I'd convert the CVS
repository:


====

## Download, Install CVS-FAST-EXPORT
$ wget http://www.catb.org/~esr/cvs-fast-export/cvs-fast-export-1.29.tar.gz
$ tar -xf cvs-fast-export-1.29.tar.gz
$ cd cvs-fast-export-1.29
$ make
$ sudo make install

## Get CVS repostiory from Savannah
$ rsync -r rsync://cvs.savannah.gnu.org/sources/ccd2cue .
$ ls ccd2cue/
ccd2cue  CVSROOT

## Find author IDs in CVS logs
$ find ccd2cue -type f | cvs-fast-export -a
oitofelix

## Manually prepare author-map file, one entry for each author
$ printf "oitofelix=Bruno Félix Rezende Ribeiro <address@hidden>\n" >
author-map.txt

## Convert CVS to git-fast-import file
$ find ccd2cue -type f | cvs-fast-export -A author-map.txt >
ccd2cue.git-fast-import

## Prepare empty GIT repository
$ git init --bare ccd2cue.git
Initialized empty Git repository in
/home/gordon/sources/cvs-convert/ccd2cue.git/
$ cd ccd2cue.git

## Run Git-Fast-Import
$ git fast-import < ../ccd2cue.git-fast-import
git-fast-import statistics:
---------------------------------------------------------------------
Alloc'd objects:       5000
Total objects:          803 (        22 duplicates                  )
      blobs  :          374 (        21 duplicates        302 deltas of       
351 attempts)
      trees  :          277 (         1 duplicates        239 deltas of       
257 attempts)
      commits:          152 (         0 duplicates          0 deltas of       
  0 attempts)
      tags   :            0 (         0 duplicates          0 deltas of       
  0 attempts)
Total branches:           5 (         1 loads     )
      marks:           1024 (       546 unique    )
      atoms:             95
Memory total:          2344 KiB
       pools:          2110 KiB
     objects:           234 KiB
---------------------------------------------------------------------
pack_report: getpagesize()            =       4096
pack_report: core.packedGitWindowSize = 1073741824
pack_report: core.packedGitLimit      = 8589934592
pack_report: pack_used_ctr            =        431
pack_report: pack_mmap_calls          =        153
pack_report: pack_open_windows        =          1 /          1
pack_report: pack_mapped              =     618860 /     618860
---------------------------------------------------------------------

## Examine Git repository
$ git log | head -n 13
commit a695d7eb6a2972b60b9be386e75c7d34d7905197
Author: Bruno Félix Rezende Ribeiro <address@hidden>
Date:   Tue Feb 11 17:13:46 2014 +0000

    Add missing parameter to 'error' function call.  Bug first noticed by
    Rosa <address@hidden>.

commit 9d4ad7c96b372e3892d691761d695659087270e4
Author: Bruno Félix Rezende Ribeiro <address@hidden>
Date:   Sun Jan 26 03:08:54 2014 +0000

    Added link to Savannah download area where the oldest (non-GNU)
    releases can be found.
====



Regards,
 - Assaf

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/support/?108761>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]