Do you add quite often files to your local working copy, forgetting to put them under version control ?
Why not using a tool that, when used, add every new file it finds ?
SVN-ADD-NEW (shell script) could be the answer (very simple)
Create file /usr/local/bin/svn-add-new and paste into it:
1 2 3 4 5 6 7 8 9 10 11 12 |
#!/bin/sh NEWFILES=$(svn status -u | grep ^\? | awk '{print $2}') if [ "$NEWFILES" != "" ]; then svn add $NEWFILES echo "files added" else echo "no files to add" fi echo "" |
Save the file and make it executable.
As soon as the script has been created and made executable you can access your local working copy and execute svn-add-new : the tool will search for new files and will add them to the version control.
Be Aware: this very simple script doesn’t check for good files and bad files, everything it finds will be put under versioning!