[Python-checkins] pymigr: Improve on convert.sh.
local
python-checkins at python.org
Wed Nov 24 11:21:14 CET 2010
local pushed 647ec6412ac6 to pymigr:
http://hg.python.org/pymigr/rev/647ec6412ac6
changeset: 76:647ec6412ac6
tag: tip
user: Dirkjan Ochtman <dirkjan at ochtman.nl>
date: Wed Nov 24 11:21:10 2010 +0100
summary:
Improve on convert.sh.
files:
convert.sh
diff --git a/convert.sh b/convert.sh
--- a/convert.sh
+++ b/convert.sh
@@ -1,3 +1,15 @@
-hg clone -A author-map --branchmap branchmap.txt --tagmap tagmap.txt \
- --config hgsubversion.defaultauthors=0 \
- file://`pwd`/python-svn/python python-hg
+
+hg init python-hg
+mkdir python-hg/.hg/svn
+cp author-map python-hg/.hg/svn/authors
+cp branchmap.txt python-hg/.hg/svn/branchmap
+cp tagmap.txt python-hg/.hg/svn/tag-renames
+
+echo '[paths]' > python-hg/.hg/hgrc
+echo "default = file://`pwd`/python-svn/python" >> python-hg/.hg/hgrc
+echo '' >> python-hg/.hg/hgrc
+echo '[hgsubversion]' >> python-hg/.hg/hgrc
+echo 'defaultauthors = False' >> python-hg/.hg/hgrc
+
+cd python-hg
+HGSUBVERSION_BINDINGS=subvertpy hg pull
--
Repository URL: http://hg.python.org/pymigr
More information about the Python-checkins
mailing list