After installing hgsubversion using pip (or easy_install), you need to add it to your ~/.hgrc:
[extensions]
hgsubversion =
hgsubversion =
Then you can create patches using "hg diff -svn -r default", I use the following genpatch script for that:
#!/bin/bash
# Generate svn style diff for current hg feature branch
branch=$(hg branch)
if [ -z $branch ]; then
echo "error: not a mercurial repo" 1>&2
exit 1
fi
if [ "$branch" == "default" ]; then
echo "error: in default branch" 1>&2
exit 1
fi
hg diff --svn -r default > ${branch}.patch
No comments:
Post a Comment