All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
1 # An example config file for the mr(1) command.
3 # This is fairly close to the config file used by the author
4 # although slightly cut down.
7 # Teach mr to run a few git and svn specific commands.
8 svn_cleanup = svn cleanup "$@"
10 git_push = git push "$@"
12 svn_tag = svn ls "$(LANG=C svn info . | grep -i ^URL: | cut -d ' ' -f 2 | sed -e 's/trunk/tags/')"
13 # This hack is here because git-pull stupidly outputs tag info to stderr.
14 # Shut it up but let real errors through, for use in cron.
15 quietupdate = mr -s -n update 3>&1 1>/dev/null 2>&3 | egrep -v '(storing tag|tag: )' || true
16 # Tests used in the skips below.
17 # - wantsrc checks whether I probably want a full source checkout (quite
19 # - wantmedia checks whether I probably want various large media files
21 # - private are hosts I trust private data to
22 # - mylaptop only succeeds if it's on my main development laptop, which
23 # gets lots of extra cruft
24 # - kite only succeeds on kite
27 test "$(whoami)" = joey
30 if [ "$(whoami)" = joey ]; then
40 if [ "$(whoami)" = joey ]; then
42 wren|kodama|dragon|dodo|bluebird)
50 test "$(hostname)" = kodama
53 test "$(hostname)" = wren
57 checkout = git clone ssh://git.kitenet.net/srv/git/kitenet.net/mr
61 checkout = git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
62 skip = ! mylaptop || ! wantsrc ||
63 ([ "$1" = update ] && ! hours_since "$1" 12)
66 # A merge of the upstream dpkg git repo and my own personal branch.
68 git clone git://git.debian.org/git/dpkg/dpkg.git &&
70 git remote add kite ssh://git.kitenet.net/srv/git/kitenet.net/dpkg &&
72 git checkout -b sourcev3 kite/sourcev3
73 update = git pull origin master && git pull kite sourcev3
74 commit = git push kite
80 CVSROOT=:ext:joeyh@cvs.debian.org:/cvs/webwml
81 cvs co -d www.debian.org webwml
82 # cvs sucks sufficiently that I prefer to run these commands by hand,
84 update = echo "skipping cvs update (too slow)"
85 status = echo "skipping cvs status (too ugly)"
86 skip = ! mylaptop || ! wantsrc
88 # My home directory, which I keep in svn.
90 checkout = svn co svn+ssh://svn.kitenet.net/srv/svn/joey/trunk/home-$(hostname) joey
91 # run svnfix after each update
92 update = svn update && svnfix
95 checkout = git clone ssh://git.kitenet.net/srv/git/kitenet.net/joey/private/mail
98 # I don't keep my music in revision control, but mr can be taught to use
99 # unison to synchronise it.
101 checkout = unison -batch sound
102 update = unison -batch sound
103 commit = unison sound
105 # Update this last of all.
108 # Example of how to remember to delete a repo, when one mrconfig file is
109 # used on multiple systems. If you're feeling brave, use rm -rf $MR_REPO
110 # instead. This approach can also be used for renames.
112 update = error "$MR_REPO is no longer used and should be deleted"
113 skip = ! test -d "$MR_REPO"