Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: /svnutils/trunk/, /svnutils/trunk/src/

svnutils
Discussion topic

Back to topic list

CVS update: /svnutils/trunk/, /svnutils/trunk/src/

Author sunny256
Full name Øyvind A. Holm
Date 2008-09-24 14:20:04 PDT
Message User: sunny256
Date: 2008-09-24 14:20:04-0700
Added:
   svnutils/trunk/src/svnclean

Modified:
   svnutils/trunk/CONTENTS

Log:
 r214 | sunny256 | 2008-09-24 15:15:47 +0000 (Wed, 24 Sep 2008) | 10 lines
 
 Adding the svnclean script.
 
 * /trunk/src/svnclean
   New script.
 
 * /trunk/CONTENTS
   Added info about the script.
 
 961e227e-8a4b-11dd-9​6ff-000475e441b9 (svn)
 871b96c0-8a7e-11dd-9​f8a-000475e441b9 (cvs)

File Changes:

Directory: /svnutils/trunk/
===========================

File [changed]: CONTENTS
Url: http://svnutils.tigr​is.org/source/browse​/svnutils/trunk/CONT​ENTS?r1=1.13&r2=​1.14
Delta lines: +5 -1
-------------------
--- CONTENTS 2008-09-20 22:59:12-0700 1.13
+++ CONTENTS 2008-09-24 14:20:02-0700 1.14
@@ -44,6 +44,10 @@
     A better (IMHO) ident(1). Does not abort on directories or other
     non-files, limits the output to known keywords by CVS and
     Subversion, and also lists compressed keywords.
+ - svnclean
+ Quick and easy way to clean up your working copy. Resets the working
+ copy to a fresh state, like it has been recently checked out and not
+ modified.
   - svndiff
     Script for looking at differences in a directory tree. Uses
     vimdiff(1) as default, but can also use other diff programs for
@@ -77,5 +81,5 @@
       backup program, but let’s first see if there are any other wheels
       around that’s already invented.
 
-$Id: CONTENTS 211 2008-09-21 05:28:35Z sunny256 $
+$Id: CONTENTS 214 2008-09-24 15:15:47Z sunny256 $
 vim: set tw=72 ts=2 sw=2 sts=2 et fo+=w fenc=UTF-8 :

Directory: /svnutils/trunk/src/
===============================

File [added]: svnclean
Url: http://svnutils.tigr​is.org/source/browse​/svnutils/trunk/src/​svnclean?rev=1.1​&content-type=text/v​nd.viewcvs-markup
Added lines: 28
---------------
#!/bin/bash

#===================​====================​====================​============
# $Id: svnclean 214 2008-09-24 15:15:47Z sunny256 $
# Clean up a subversion working copy
# License: GNU General Public License version 2 or later.
#===================​====================​====================​============

if [ ! -d .svn/. ]; then
    echo "Current directory is not a svn working copy, aborting." >&2
    exit 1
fi

echo Warning, this command will delete all files which is not versioned with >&2
echo Subversion. The working copy will be reset. >&2
echo -n "Press 'y' + Enter to continue..." >&2
read choice
if [ "$choice" = "y" ]; then
    echo ==== svn cleanup...
    svn cleanup .
    echo ==== svn revert...
    svn revert -R .
    echo ==== Remove unknown files...
    svn stat --no-ignore | grep -E '^[\?I]' | cut -c 8- | \
        perl -pe 's/^/\.\//' | tr '\n' '\0' | xargs -0 -r rm -rfv
    echo ==== svn stat --no-ignore...
    svn stat --no-ignore
fi

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

CVS update: /svnutils/trunk/, /svnutils/trunk/src/ sunny256 Øyvind A. Holm 2008-09-24 14:20:04 PDT
Messages per page: