mirror of
https://github.com/facebook/sapling.git
synced 2024-10-16 11:52:02 +03:00
3cc5c5756c
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
60 lines
1.1 KiB
Bash
Executable File
60 lines
1.1 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
mkdir temp
|
|
cd temp
|
|
|
|
svnadmin create testrepo
|
|
svn checkout file://`pwd`/testrepo client
|
|
|
|
cd client
|
|
mkdir trunk
|
|
mkdir -p branches
|
|
mkdir -p tags
|
|
|
|
svn add trunk branches tags
|
|
svn commit -m "Initial commit"
|
|
|
|
mkdir trunk/project trunk/other
|
|
echo "project trunk" > trunk/project/file
|
|
echo "other trunk" > trunk/other/phile
|
|
svn add trunk/project trunk/other
|
|
svn commit -m "Added file and phile in trunk"
|
|
|
|
svn up
|
|
|
|
svn cp trunk tags/tag_from_trunk
|
|
svn ci -m 'created tag from trunk'
|
|
|
|
svn up
|
|
|
|
svn cp trunk branches/branch
|
|
svn ci -m 'created branch from trunk'
|
|
|
|
svn up
|
|
|
|
echo "project branch" > branches/branch/project/file
|
|
svn ci -m "committed to the project branch"
|
|
|
|
svn up
|
|
|
|
echo "trunk2" > trunk/project/file
|
|
svn ci -m "committed to trunk again"
|
|
|
|
svn up
|
|
|
|
echo "other branch" > branches/branch/other/phile
|
|
svn ci -m "committed to the other branch"
|
|
|
|
svn up
|
|
|
|
svn cp branches/branch tags/tag_from_branch
|
|
svn ci -m "create tag from branch"
|
|
|
|
cd ..
|
|
svnadmin dump testrepo > ../subprojects.svndump
|
|
|
|
echo "Created subprojects.svndump"
|
|
echo "You might want to clean up ${PWD} now"
|