Mercurial > hg
view tests/test-convert-svn-tags @ 9515:f7d85980261c
Add script to rewrite revlog to workaround lack of parent deltas.
Defaults to rewriting the manifest in the current repository.
Based on a patch to rewrite-log by Benoit Boissinot that I found here:
http://article.gmane.org/gmane.comp.version-control.mercurial.general/11908
author | Greg Ward <greg-hg@gerg.ca> |
---|---|
date | Thu, 27 Aug 2009 10:21:32 -0400 |
parents | 9c75f16f577c |
children | bb5ea66789e3 |
line wrap: on
line source
#!/bin/sh "$TESTDIR/hghave" svn svn-bindings || exit 80 fix_path() { tr '\\' / } echo "[extensions]" >> $HGRCPATH echo "convert = " >> $HGRCPATH echo "hgext.graphlog =" >> $HGRCPATH svnadmin create svn-repo cat "$TESTDIR/svn/tags.svndump" | svnadmin load svn-repo > /dev/null echo % convert hg convert --datesort svn-repo A-hg cd A-hg hg glog --template '{rev} {desc|firstline} tags: {tags}\n' hg tags | sed 's/:.*/:/' cd .. echo % convert without tags hg convert --datesort --config convert.svn.tags= svn-repo A-notags-hg hg -R A-notags-hg tags -q