projects
/
feisty_meow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added an excluder to psfind, fixed arg processing
[feisty_meow.git]
/
scripts
/
rev_control
/
svnapply.sh
diff --git
a/scripts/rev_control/svnapply.sh
b/scripts/rev_control/svnapply.sh
index 040675ce3b6d4900bf5d1bee0340492180aeb572..2c4d2f0765eabba0eae96e366352a327c1c5c4ee 100644
(file)
--- a/
scripts/rev_control/svnapply.sh
+++ b/
scripts/rev_control/svnapply.sh
@@
-1,16
+1,24
@@
#!/bin/bash
#
#!/bin/bash
#
-# Applies arbitrary commands to any svn status.
e.g.
+# Applies arbitrary commands to any svn status.
#
#
-# Delete all non-svn files (escape the ? from the shell):
-# svnapply \? rm
+# For example, this shows any files that are in the working folder but are not part of the svn repository:
+# svnapply \? echo
+#
+# This deletes all files that are not checked into svn (escape the ? from the shell):
+# svnapply \? rm
#
# List all conflicted files:
#
# List all conflicted files:
-# svnapply C ls -l
+#
svnapply C ls -l
#
#
-# found on web at: http://stackoverflow.com/questions/160104/how-do-you-add-all-untracked-files-in-svn-something-like-git-add-i
+# found on web at:
+# http://stackoverflow.com/questions/160104/how-do-you-add-all-untracked-files-in-svn-something-like-git-add-i
#
#
+source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
+
+save_terminal_title
+
PATTERN="$1"; shift
svn st | egrep "^\\${PATTERN}[ ]+" | \
PATTERN="$1"; shift
svn st | egrep "^\\${PATTERN}[ ]+" | \
@@
-18,3
+26,5
@@
svn st | egrep "^\\${PATTERN}[ ]+" | \
sed -e "s|\\\\|/|g" | \
xargs -i "$@" '{}'
sed -e "s|\\\\|/|g" | \
xargs -i "$@" '{}'
+restore_terminal_title
+