[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gnutls-dev] HAEDS UP: Moving away from CVS
From: |
Simon Josefsson |
Subject: |
Re: [gnutls-dev] HAEDS UP: Moving away from CVS |
Date: |
Tue, 27 Feb 2007 11:08:53 +0100 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.94 (gnu/linux) |
For future reference, below are the complete steps I made to move from
CVS to GIT for libtasn1.
Quite easy once I found all the commands (which took some time, there
is not much good high-level documentation). Further, the steps are
idempotent, so I can run this more than once. I have no idea what
happens if I make any changes on the CVS server though, although
git-cvsimport claims to support that. Possibly I should then call
git-cvsimport on an existing work tree for things to work best.
Now, let's see if I can make a release based on this git repository...
/Simon
# Start in a fresh directory.
address@hidden:~$ mkdir git
address@hidden:~$ cd git
address@hidden:~/git$
# Get a local copy of the CVS repository
address@hidden:~/git$ rsync --delete -e ssh -av cvs.gnupg.org:/cvs/gnutls/
gnutls/
...
# Fix usernames (optional, but remove -A below if you skip this)
cat<<EOF > /tmp/foo
wkoch:Werner Koch <address@hidden>
nmav:Nikos Mavrogiannopoulos <address@hidden>
fiorinaf:Fabio Fiorina <address@hidden>
twoaday:Timo Schulz <address@hidden>
admcd:Andrew McDonald <address@hidden>
jas:Simon Josefsson <address@hidden>
EOF
# Convert into a new git repository.
address@hidden:~/git$ git-cvsimport -A /tmp/foo -k -d $PWD/gnutls -C repo
libtasn1
Committing initial tree 397dce26cda49d25909964c68cb65b302a26c8e9
Generating pack...
Done counting 2314 objects.
Deltifying 2314 objects.
100% (2314/2314) done
Writing 2314 objects.
100% (2314/2314) done
Total 2314, written 2314 (delta 1574), reused 0 (delta 0)
Pack pack-9e406f174c6b3e8a7351986b22d8de9a4dd75562 created.
address@hidden:~/git$
# Check out a working copy.
address@hidden:~/git$ git-clone repo work
remote: Generating pack...
remote: Done counting 2314 objects.
remote: Deltifying 2314 objects.
remote: 100% (2314/2314) done
Indexing 2314 objects.
remote: Total 2314, written 2314 (delta 1574), reused 2314 (delta 1574)
100% (2314/2314) done
Resolving 1574 deltas.
100% (1574/1574) done
address@hidden:~/git$
# Add a push branch to make stuff accessible publicly.
address@hidden:~/git$ cd work/
address@hidden:~/git/work$ cg-branch-add pub
git+ssh://repo.or.cz/srv/git/libtasn1.git
# Push everything to the public site.
address@hidden:~/git/work$ git-push --tags pub
Everything up-to-date
address@hidden:~/git/work$