sapling/tests/fixtures/replace_trunk.sh
Kostia Balytskyi 3cc5c5756c hgsubversion: move tests to the general tests dir
Summary:
Move tests to where we are used to them.

Note that I don't move comprehensive tests to the `tests` directory, since
I think that having them not run when `./run-tests.py` is run without arguments
may be a useful thing. In general, we may adopt this concept for the core as well.
If we decide we do want to move them, it's very easy to do.

Depends on D6719879

Test Plan: - fixups and test runs follow in the stack

Reviewers: #sourcecontrol

Differential Revision: https://phabricator.intern.facebook.com/D6719883
2018-01-17 03:23:44 -08:00

35 lines
554 B
Bash
Executable File

#!/bin/sh
RSVN="`pwd`/rsvn.py"
export PATH=/bin:/usr/bin
mkdir temp
cd temp
svnadmin create repo
svn co file://`pwd`/repo wc
cd wc
mkdir trunk branches
cd trunk
for a in alpha beta gamma ; do
echo $a > $a
done
cd ..
svn add *
svn ci -m 'initial'
svn up
svn cp trunk branches/test
svn ci -m 'branch'
svn up
echo foo >> branches/test/alpha
svn ci -m 'Mod.'
cd ..
echo rdelete trunk > tmp
echo rcopy branches/test trunk >> tmp
python $RSVN --message=blah --username=evil `pwd`/repo < tmp
svnadmin dump repo > ../replace_trunk_with_branch.svndump