DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Select Files To Commit To SVN With A Dialog

  • submit to reddit
        Get a dialog window where You can (un)check files to be comitted with svn ci.

for f in `svn st|grep -v ^\?|sed s/.\ *//`; do LIST="${LIST} $f $NULL on"; done
dialog --checklist "Select files to commit" 30 60 30 $LIST 2>/tmp/svnlist.txt
svn ci `cat /tmp/svnlist.txt|sed 's/"//g'`

(The $NULL part is a bit lame, can't find a way to avoid it.)