From: lace <> Date: Mon, 2 Oct 2006 15:34:22 +0000 (+0000) Subject: Avoid automatic "cvs update -d" for the selected CVS repositories. X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=commitdiff_plain;h=c1030afce184cd951e4460dea39710af8de667dc Avoid automatic "cvs update -d" for the selected CVS repositories. --- diff --git a/.bashrc b/.bashrc index 66bf4a5..0a2a882 100644 --- a/.bashrc +++ b/.bashrc @@ -251,6 +251,23 @@ function ipcsrmall { ipcs|awk '/- Shared Memory/{x="-m"}/- Semaphore/{x="-s"}/^0 function eog {(unset eog; touch /tmp/eog.$$;eog "$@" {,,,,,,,,,}/tmp/eog.$$;rm -f /tmp/eog.$$; );}; export -f eog function diffc { diff -u "$@"|grep -v '^\(Only in \|Binary files\)'; }; export -f diffc function diffi { diffc -X ~/.diffi.list "$@"; }; export -f diffi +function cvs {(unset cvs; + local _opts _opts_d _now _line _o + if grep -iw sources.redhat.com CVS/Root &>/dev/null;then _opts_d="";else _opts_d="-d";fi + _now=false + _line="" + _opts="" + while [ $# != 0 ];do + _o="$1" + shift + _line="$_line $_o" + if [ "$_o" = "--" ] && ! $_now;then _now=true;continue;fi + if [ "${_o#-}" != "$_o" ] && ! $_now;then continue;fi + if [ "$_o" = update -o "$_o" = upd -o "$_o" = up ];then _opts="$_opts_d";fi + break + done + cvs $_line $_opts "$@" + ); }; export -f cvs ulimit -S -c 0 set +H diff --git a/.cvsrc b/.cvsrc index d8e84bf..ac30ab4 100644 --- a/.cvsrc +++ b/.cvsrc @@ -1,5 +1,5 @@ cvs -q -z3 rdiff -u diff -up -update -dP -I ! -I CVS +update -P -I ! -I CVS import -I !