Re: Strange mr/vcsh error on Debian Squeeze
Sean Whitton wrote: > Thank you for your reply, and sorry for not thinking a little more before > e-mailing. Here is the output. I think that this may be a vcsh problem > rather than a mr problem after looking at this. Looks to me like a mr version older than 1.09 being used with a mr include file for vcsh that's written for that version. -- see shy jo signature.asc Description: Digital signature ___ vcs-home mailing list vcs-home@lists.madduck.net http://lists.madduck.net/listinfo/vcs-home
Re: Strange mr/vcsh error on Debian Squeeze
Thank you for your reply, and sorry for not thinking a little more before e-mailing. Here is the output. I think that this may be a vcsh problem rather than a mr problem after looking at this. Smr: loading config /home/swhitton/.mrconfig mr: including output of "cat ~/local/lib/vcsh" mr: including output of "cat ~/.config/mr/config.d/*" mr skip: running rcs test >> error() { echo "mr: $@" >&2 exit 1 } warning() { echo "mr (warning): $@" >&2 } info() { echo "mr: $@" >&2 } hours_since() { if [ -z "$1" ] || [ -z "$2" ]; then error "mr: usage: hours_since action num" fi for dir in .git .svn .bzr CVS .hg _darcs _FOSSIL_; do if [ -e "$MR_REPO/$dir" ]; then flagfile="$MR_REPO/$dir/.mr_last$1" break fi done if [ -z "$flagfile" ]; then error "cannot determine flag filename" fi delta=`perl -wle 'print -f shift() ? int((-M _) * 24) : ' "$flagfile"` if [ "$delta" -lt "$2" ]; then return 1 else touch "$flagfile" return 0 fi } my_git_bare_test() { test -d "$MR_REPO"/refs/heads && test -d "$MR_REPO"/refs/tags && test -d "$MR_REPO"/objects && test -f "$MR_REPO"/config && test "`GIT_CONFIG="$MR_REPO"/config git config --get core.bare`" = true } my_fossil_test() { test -f "$MR_REPO"/_FOSSIL_ } my_darcs_test() { test -d "$MR_REPO"/_darcs } my_vcsh_test() { perl: -d "$ENV{MR_REPO}/refs/heads" && -d "$ENV{MR_REPO}/refs/tags" && -d "$ENV{MR_REPO}/objects" && -f "$ENV{MR_REPO}/config" && `GIT_CONFIG="$ENV{MR_REPO}"/config git config --get vcsh.vcsh` =~ /true/ } my_svn_test() { test -d "$MR_REPO"/.svn } my_git_test() { test -d "$MR_REPO"/.git } my_cvs_test() { test -d "$MR_REPO"/CVS } my_bzr_test() { test -d "$MR_REPO"/.bzr } my_hg_test() { test -d "$MR_REPO"/.hg } set -e if my_hg_test; then echo hg; fi if my_bzr_test; then echo bzr; fi if my_cvs_test; then echo cvs; fi if my_git_test; then echo git; fi if my_svn_test; then echo svn; fi if my_vcsh_test; then echo vcsh; fi if my_darcs_test; then echo darcs; fi if my_fossil_test; then echo fossil; fi if my_git_bare_test; then echo git_bare; fi << sh: perl:: not found sh: -d: not found mr update: /home/swhitton//home/swhitton/doc mr update: running >>set -e; error() { echo "mr: $@" >&2 exit 1 } warning() { echo "mr (warning): $@" >&2 } info() { echo "mr: $@" >&2 } hours_since() { if [ -z "$1" ] || [ -z "$2" ]; then error "mr: usage: hours_since action num" fi for dir in .git .svn .bzr CVS .hg _darcs _FOSSIL_; do if [ -e "$MR_REPO/$dir" ]; then flagfile="$MR_REPO/$dir/.mr_last$1" break fi done if [ -z "$flagfile" ]; then error "cannot determine flag filename" fi delta=`perl -wle 'print -f shift() ? int((-M _) * 24) : ' "$flagfile"` if [ "$delta" -lt "$2" ]; then return 1 else touch "$flagfile" return 0 fi } my_action(){ git pull "$@" }; my_action << Already up-to-date. mr skip: running rcs test >> error() { echo "mr: $@" >&2 exit 1 } warning() { echo "mr (warning): $@" >&2 } info() { echo "mr: $@" >&2 } hours_since() { if [ -z "$1" ] || [ -z "$2" ]; then error "mr: usage: hours_since action num" fi for dir in .git .svn .bzr CVS .hg _darcs _FOSSIL_; do if [ -e "$MR_REPO/$dir" ]; then flagfile="$MR_REPO/$dir/.mr_last$1" break fi done if [ -z "$flagfile" ]; then error "cannot determine flag filename" fi delta=`perl -wle 'print -f shift() ? int((-M _) * 24) : ' "$flagfile"` if [ "$delta" -lt "$2" ]; then return 1 else touch "$flagfile" return 0 fi } my_git_bare_test() { test -d "$MR_REPO"/refs/heads && test -d "$MR_REPO"/refs/tags && test -d "$MR_REPO"/objects && test -f "$MR_REPO"/config && test "`GIT_CONFIG="$MR_REPO"/config git config --get core.bare`" = true } my_fossil_test() { test -f "$MR_REPO"/_FOSSIL_ } my_darcs_test() { test -d "$MR_REPO"/_darcs } my_vcsh_test() { perl: -d "$ENV{MR_REPO}/refs/heads" && -d "$ENV{MR_REPO}/refs/tags" && -d "$ENV{MR_REPO}/objects" && -f "$ENV{MR_REPO}/config" && `GIT_CONFIG="$ENV{MR_REPO}"/config git config --get vcsh.vcsh` =~ /true/ } my_svn_test() { test -d "$MR_REPO"/.svn } my_git_test() { test -d "$MR_REPO"/.git } my_cvs_test() { test -d "$MR_REPO"/CVS } my_bzr_test() { test -d "$MR_REPO"/.bzr } my_hg_test() { test -d "$MR_REPO"/.hg } set -e if my_hg_test; then echo hg; fi if my_bzr_test; then echo bzr; fi if my_cvs_te