File: conversion

package info (click to toggle)
svn-all-fast-export 1.0.13-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 396 kB
  • sloc: cpp: 2,867; sh: 17; makefile: 12
file content (25 lines) | stat: -rwxr-xr-x 615 bytes parent folder | download | duplicates (3)
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 "$AUTOPKGTEST_TMP"

# 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