X-Git-Url: https://git.madduck.net/code/myrepos.git/blobdiff_plain/19919a98a8382dcc8723a0fb01b4a674f2c25214..d11b6a1b817dbbd24774f158de8e4351b82bfae0:/mr?ds=inline diff --git a/mr b/mr index 0a50a33..1253102 100755 --- a/mr +++ b/mr @@ -563,7 +563,9 @@ sub action { #{{{ print "mr $action: $topdir$subdir\n"; } else { - print "mr $action: $topdir$subdir (in subdir $directory)\n"; + my $s=$directory; + $s=~s/^\Q$topdir$subdir\E\/?//; + print "mr $action: $topdir$subdir (in subdir $s)\n"; } my $command="set -e; ".$lib. "my_action(){ $config{$topdir}{$subdir}{$action}\n }; my_action ". @@ -971,7 +973,7 @@ update = elif [ -d "$MR_REPO"/.hg ]; then hg pull "$@" && hg update "$@" elif [ -d "$MR_REPO"/_darcs ]; then - darcs pull "$@" + darcs pull -a "$@" else error "unknown repo type" fi @@ -1003,7 +1005,7 @@ commit = elif [ -d "$MR_REPO"/.hg ]; then hg commit -m "$@" && hg push elif [ -d "$MR_REPO"/_darcs ]; then - darcs commit -m "$@" && darcs push + darcs commit -a -m "$@" && darcs push -a else error "unknown repo type" fi