From: Joey Hess Date: Thu, 20 Jan 2011 20:48:24 +0000 (-0400) Subject: Add "mr run", which can run an arbitrary command in each repository. X-Git-Url: https://git.madduck.net/code/myrepos.git/commitdiff_plain/a33fafdabb2ba491a412616aa169404cee56fa05?ds=sidebyside Add "mr run", which can run an arbitrary command in each repository. --- diff --git a/debian/changelog b/debian/changelog index ee25f41..d19a299 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +mr (1.01) UNRELEASED; urgency=low + + * Add "mr run", which can run an arbitrary command in each repository. + + -- Joey Hess Thu, 20 Jan 2011 16:47:37 -0400 + mr (1.00) unstable; urgency=low * Trust flag day. All mrconfig files except the main ~/.mrconfig are diff --git a/mr b/mr index 3f04b5b..48c355c 100755 --- a/mr +++ b/mr @@ -22,6 +22,8 @@ B [options] diff B [options] log +B [options] run command [param ...] + B [options] bootstrap url [directory] B [options] register [repository] @@ -102,6 +104,10 @@ Show a diff of uncommitted changes. Show the commit log. +=item run command [param ...] + +Runs the specified command in each repository. + =back These commands are also available: @@ -1688,6 +1694,8 @@ darcs_log = darcs changes "$@" git_bare_log = git log "$@" fossil_log = fossil timeline "$@" +run = "$@" + svn_register = url=`LC_ALL=C svn info . | grep -i '^URL:' | cut -d ' ' -f 2` if [ -z "$url" ]; then