3 #=======================================================================
5 # File ID: 0f6706d6-f744-11dd-a790-000475e441b9
6 # Clean up a subversion working copy
7 # License: GNU General Public License version 2 or later.
8 #=======================================================================
10 if [ ! -d .svn
/.
]; then
11 echo "Current directory is not a svn working copy, aborting." >&2
15 echo Warning
, this
command will delete all files
which is not versioned with
>&2
16 echo Subversion. The working copy will be
reset.
>&2
17 echo -n "Press 'y' + Enter to continue..." >&2
19 if [ "$choice" = "y" ]; then
20 echo ==== svn cleanup...
22 echo ==== svn revert...
24 # echo ==== Remove unknown files...
25 # svn stat --no-ignore | grep -E '^[\?I]' | cut -c 9- | \
26 # perl -pe 's/^/\.\//' | tr '\n' '\0' | xargs -0 -r rm -rfv
27 echo ==== svn stat
--no-ignore...