Package: mr
Version: 0.20
Severity: wishlist
Tags: patch
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
here is a configuration snippet that provides support for git-svn
tracked repositories. The changed required overloading the "git_test"
detection since in both repository types a ".git" directory exists.
It would be nice to have the git-svn functionality either as an example,
or directly integrated in mr.
Regards,
Bastian
- -- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.23treasure4 (PREEMPT)
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash
- -- no debconf information
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFHmNKOeBwlBDLsbz4RAu3CAKC4f8WSXzhs7kR9NhmoyWz3cVLd1ACghxR7
YybvfrSQugz8fe6H483ipkI=
=QLiw
-----END PGP SIGNATURE-----
git_test =
test -d "$MR_REPO"/.git &&
test -z "`git config --get svn-remote.svn.url`"
gitsvn_test =
test -d "$MR_REPO"/.git &&
test -n "`git config --get svn-remote.svn.url`"
gitsvn_register =
url="`LC_ALL=C git config --get svn-remote.svn.url`" || true
if [ -z "$url" ]; then
error "cannot determine gitsvn url"
fi
echo "Registering gitsvn url: $url in $MR_CONFIG"
mr -c "$MR_CONFIG" config "`pwd`" checkout="git-svn clone '$url'
'$MR_REPO'"
gitsvn_update = git-svn rebase
gitsvn_status = git status "$@" || true
gitsvn_commit = git-svn dcommit "$@"
gitsvn_record = git commit -a "$@"
gitsvn_diff = git diff "$@"
gitsvn_log = git-svn log "$@"