File: conversion

package info (click to toggle)
svn-all-fast-export 1.0.10%2Bgit20160822-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 364 kB
  • ctags: 348
  • sloc: cpp: 2,791; sh: 17; makefile: 8
file content (25 lines) | stat: -rwxr-xr-x 606 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

set -e -u
cd "$ADTTMP"

# create a repo and populate it with a commit
svnadmin create repo
svn co file://$PWD/repo/ repo-wc
(
    cd repo-wc/
    svn mkdir trunk branches tags 
    svn ci -m "Make structure"
    echo foo > trunk/bar
    svn add trunk/bar
    svn ci -m"Initial commit"
)
svn cp file://$PWD/repo/trunk file://$PWD/repo/tags/1.0 -m"Tag 1.0"

# Try to convert the svn repo to git
cp /usr/share/doc/svn-all-fast-export/examples/standardlayout.rules .
svn-all-fast-export --rules standardlayout.rules repo --debug-rules 2>&1

# And see if git likes what it sees
cd myproject/
git log