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.
4 # Teach mr how to run svn cleanup.
5 cleanup = if [ -d "$MR_REPO"/.svn ]; then svn cleanup ; fi
6 # And how to run git gc and push.
7 gc = if [ -d "$MR_REPO"/.git ]; then git gc; fi
8 push = if [ -d "$MR_REPO"/.git ]; then git push; fi
9 # And how to list tags for git and svn.
11 if [ -d "$MR_REPO"/.svn ]; then
13 elsif [ -d "$MR_REPO"/.git ]; then
14 url=$(LANG=C svn info . | grep -i ^URL: | cut -d ' ' -f 2)
15 svn ls "$(echo '$url' | sed -e 's/trunk/tags/')"
17 error "unknown repo type"
19 # This hack is here because git-pull stupidly outputs tag info to stderr.
20 # Shut it up but let real errors through, for use in cron.
21 quietupdate = mr -s -n update 3>&1 1>/dev/null 2>&3 | egrep -v '(storing tag|tag: )' || true
22 # Tests used in the skips below.
23 # - wantsrc checks whether I probably want a full source checkout (quite
25 # - wantmedia checks whether I probably want various large media files
27 # - private are hosts I trust private data to
28 # - mylaptop only succeeds if it's on my main development laptop, which
29 # gets lots of extra cruft
30 # - kite only succeeds on kite
33 test "$(whoami)" = joey
36 if [ "$(whoami)" = joey ]; then
46 if [ "$(whoami)" = joey ]; then
48 wren|kodama|dragon|dodo|bluebird)
56 test "$(hostname)" = kodama
59 test "$(hostname)" = wren
63 checkout = git clone ssh://git.kitenet.net/srv/git/kitenet.net/mr
67 checkout = git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
68 skip = ! mylaptop || ! wantsrc ||
69 ([ "$1" = update ] && [ $(hours_since "$1") -lt 12 ])
72 # A merge of the upstream dpkg git repo and my own personal branch.
74 git clone git://git.debian.org/git/dpkg/dpkg.git &&
76 git remote add kite ssh://git.kitenet.net/srv/git/kitenet.net/dpkg &&
78 git checkout -b sourcev3 kite/sourcev3
79 update = git pull origin master && git pull kite sourcev3
80 commit = git push kite
86 CVSROOT=:ext:joeyh@cvs.debian.org:/cvs/webwml
87 cvs co -d www.debian.org webwml
88 # cvs sucks sufficiently that I prefer to run these commands by hand,
90 update = echo "skipping cvs update (too slow)"
91 status = echo "skipping cvs status (too ugly)"
92 skip = ! mylaptop || ! wantsrc
94 # My home directory, which I keep in svn.
96 checkout = svn co svn+ssh://svn.kitenet.net/srv/svn/joey/trunk/home-$(hostname) joey
97 # run svnfix after each update
98 update = svn update && svnfix
101 checkout = git clone ssh://git.kitenet.net/srv/git/kitenet.net/joey/private/mail
104 # Example of how to remember to delete a repo, when one mrconfig file is
105 # used on multiple systems. If you're feeling brave, use rm -rf $MR_REPO
106 # instead. This approach can also be used for renames.
108 update = error "$MR_REPO is no longer used and should be deleted"
109 skip = ! test -d "$MR_REPO"