view tests/fixtures/empty_dir_in_trunk_not_repo_root.sh @ 1086:b746d455f0e1

stupid: kill some dead and no longer needed code While I was debugging an unrelated issue with stupid, some of the code in branches_in_paths confused me, since it was using an undeclared variable. It looked like an attempt to short-circuit the file/directory detection before talking to subversion that never quite got finished. The code is mostly unreachable, and obviously broken, so I cleaned it up. I also cleaned up some prepatory code that was getting executed but appeared to only be useful for the short-circuintg attempt.
author David Schleimer <dschleimer@fb.com>
date Wed, 04 Sep 2013 11:20:44 -0700
parents 6ec5b5fc5b4d
children
line wrap: on
line source

#!/bin/sh
mkdir temp || exit 1
cd temp
svnadmin create repo
svn co file://`pwd`/repo wc
pushd wc
mkdir -p project/trunk
svn add project
svn ci -m 'trunk'
cd project/trunk
echo a > a
mkdir narf
svn add a narf
svn ci -m 'file and empty dir'
popd
svnadmin dump repo > ../empty_dir_in_trunk_not_repo_root.svndump
echo 'dump in empty_dir_in_trunk_not_repo_root.svndump'
echo 'you can probably delete temp now'