>-2/+2|||||||||
to avoid running SVN multiple times with command lines like the
following:
svn co --depth empty svn+ssh://svn.freebsd.org/ports/head ports
Reported by: ak@ (on IRC)
* Changes over original script:mandree2012-08-211-49/+94||||||||||||||||||||||
- FIX: all progress and error output goes to fd#2 (stderr)
- FIX: at top level, properly detect commands if preceded by options
- FIX: in checkstatus(), handle ~ (obstructed versioned item)
- FIX: support blanks, leading dashes, and shell meta characters:
+ in file names, so as not to choke the script on difficult file names
+ in command line arguments, so that svn commit -m "commit message" works,
rather than complaining about an unversioned file "message".
- FIX: in checkstatus(), keep leading spaces from svn status
- FIX: in setprop(), detect egrep errors, rather than assuming "no match"
- ADD: die if "check" psvn-specific command has trailing arguments
- CHANGE: replace `...` by more concise $(...) notation
- CHANGE: take maintainership, offered by beat@.
- SPEEDUP: in checkstatus(), use shell built-ins, rather than commands
- SPEEDUP: when checking files, run svn only once, rather than for each file
- SPEEDUP: when skipping "svn rm"-ed files, use ! -e rather than head|awk
- TODO: handle long options for svn commit
- TODO: do not stomp over svn:mime-type if it's already set (binary files!)
Approved by: beat@ (maintainer)
* - Remove duplicate execution of svn info [1]beat2012-07-191-4/+13||||||
- Add description what the script actually does
Submitted by: gahr [1]