--- /dev/null
+bzr_update = bzr pull "$@"
+
+lib = checkout_hack_branch() {
+ git clone --no-checkout --origin $2 $3 $1
+ cd $1
+ git checkout -b $2 $2/${5:-master}
+ git branch -D master
+ git remote add origin $4
+ if git fetch origin 2>/dev/null; then
+ git checkout -b master origin/master
+ else
+ git checkout -b master $2/${5:-master}
+ case "$4" in
+ ssh://*)
+ host=${4#*//}
+ path=${host#*/}
+ host=${host%%/*}
+ ssh $host "[ -d $path ] || GIT_DIR=$path git --bare init --shared=world"
+ ;;
+ esac
+ git push origin --all
+ fi
+ }
+
+[code/mr]
+checkout = checkout_hack_branch mr \
+ joeyh git://git.kitenet.net/mr \
+ ssh://git.madduck.net/~/git/pub/code/mr.git
+ ln -s ../code/mr/mr ~/.bin/mr
--- /dev/null
+[.fgits/zsh.git]
+checkout = git_fake_bare_checkout 'ssh://git.madduck.net/~/git/pub/etc/zsh.git' 'zsh.git' '../../'
+
+[.fgits/vim.git]
+checkout = git_fake_bare_checkout 'ssh://git.madduck.net/srv/git/git.madduck.net/pub/etc/vim.git' 'vim.git' '../../'
+
+[.fgits/screen.git]
+checkout = git_fake_bare_checkout 'ssh://git.madduck.net/srv/git/git.madduck.net/pub/etc/screen.git' 'screen.git' '../../'
--- /dev/null
+[debian]
+checkout = git clone ssh://git.madduck.net/~/git/colls/debian.git debian
+skip = ! on_workstation
+chain = true
+
+[code/unperish]
+checkout = bzr clone http://liw.iki.fi/bzr/unperish2/trunk/ unperish
+
+[code/dpkg]
+checkout = checkout_hack_branch dpkg \
+ debian git://git.debian.org/git/dpkg/dpkg.git \
+ ssh://git.madduck.net/~/git/pub/code/etckeeper.git
+
+[code/mbuild]
+checkout = git clone 'ssh://git.madduck.net/~/git/pub/code/mbuild.git' mbuild
+
+[code/schroot]
+checkout = git clone 'git://git.debian.org/git/buildd-tools/schroot.git' schroot
--- /dev/null
+[.fgits/mutt.git]
+checkout = git_fake_bare_checkout 'ssh://git.madduck.net/srv/git/git.madduck.net/pub/etc/mutt.git' 'mutt.git' '../../'
+
+[.fgits/mutt-aliases.git]
+checkout = git_fake_bare_checkout 'ssh://git.madduck.net/~/git/etc/mutt-aliases.git' 'mutt-aliases.git' '../../'
+
+[.fgits/mailplate.git]
+checkout = git_fake_bare_checkout 'ssh://git.madduck.net/~/git/etc/mailplate.git' 'mailplate.git' '../../'
+
+[.fgits/quotes.git]
+checkout = git_fake_bare_checkout 'ssh://git.madduck.net/~/git/pub/etc/quotes.git' 'quotes.git' '../../'
--- /dev/null
+[.mailfilter]
+checkout = git clone 'ssh://git.madduck.net/~/git/pub/etc/mailfilter.git' .mailfilter
--- /dev/null
+[code/libkdtree/ikiwiki]
+checkout = git clone ssh://git.debian.org/git/libkdtree/ikiwiki.git ikiwiki
+
+[code/libkdtree/libkdtree]
+checkout = git clone ssh://git.debian.org/git/libkdtree/libkdtree.git libkdtree
+
+[code/mailplate]
+checkout = git clone ssh://git.madduck.net/~/git/pub/code/mailplate.git mailplate
+
+[code/ikiwiki]
+checkout = checkout_hack_branch ikiwiki \
+ joeyh git://git.ikiwiki.info/ \
+ ssh://git.madduck.net/~/git/pub/code/ikiwiki.git
+
+[code/etckeeper]
+checkout = checkout_hack_branch etckeeper \
+ joeyh git://git.kitenet.net/etckeeper \
+ ssh://git.madduck.net/~/git/pub/code/etckeeper.git
+
+[code/vim-git]
+checkout = checkout_hack_branch vim-git \
+ tpope git://git.tpope.net/git/vim-git.git \
+ ssh://git.madduck.net/~/git/pub/code/vim-git.git
+
+[code/offlineimap]
+checkout = checkout_hack_branch offlineimap \
+ jgoerzen git://git.complete.org/offlineimap \
+ ssh://git.madduck.net/~/git/pub/code/offlineimap.git
+
+[code/linux-2.6]
+checkout = git clone 'git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git' 'linux-2.6'
+skip = ! on piper || ([ "$1" = update ] && ! hours_since "$1" 12)
+
+[code/netconf/netconf]
+checkout = git clone 'ssh://git.debian.org/git/netconf/netconf.git' 'netconf'
+
+[code/netconf/ikiwiki]
+checkout = git clone 'ssh://git.debian.org/git/netconf/ikiwiki.git' 'ikiwiki'
+
+[code/git]
+checkout = git clone 'git://git.kernel.org/pub/scm/git/git.git' 'git'
+skip = ([ "$1" = update ] && ! hours_since "$1" 12)
+
+[code/libfactory++]
+checkout = git clone 'ssh://git.madduck.net/~/git/pub/code/libfactory++.git' 'libfactory++'
+
+[code/molly-guard]
+checkout = git clone 'ssh://git.madduck.net/~/git/pub/code/molly-guard.git' 'molly-guard'
+
+[code/pytagsfs]
+checkout = bzr clone 'http://bazaar.launchpad.net/%7Eforest-alittletooquiet/pytagsfs/dev/' 'pytagsfs'
+
+[code/unionfs-fuse]
+checkout = hg clone 'http://hg.podgorny.cz/unionfs-fuse' 'unionfs-fuse'
--- /dev/null
+[DEFAULT]
+include = cat ~/.mr/roles/tex
+
+[phd]
+checkout = git clone ssh://git.madduck.net/~/git/edu/phd.git phd
+chain = true
+
+[ul]
+checkout = git clone ssh://git.madduck.net/~/git/edu/ul.git ul
--- /dev/null
+[.fgits/texmf.git]
+checkout = git_fake_bare_checkout 'ssh://git.madduck.net/~/git/pub/etc/texmf.git' 'texmf.git' '../../'
--- /dev/null
+[web]
+checkout = git clone ssh://git.madduck.net/~/git/colls/web.git web
+chain = true
--- /dev/null
+[.fgits/gtk.git]
+checkout = git_fake_bare_checkout 'ssh://git.madduck.net/~/git/pub/etc/gtk.git' 'gtk.git' '../../'
--- /dev/null
+[DEFAULT]
+include = cat /usr/share/mr/* ~/code/mr/lib/* ~/.mr/* 2>/dev/null || :