Paste number 62764: confuse_convert.sh

Paste number 62764: confuse_convert.sh
Pasted by: durin42
5 months, 1 week ago
#mercurial | Context in IRC logs
Paste contents:
Raw Source | XML | Display As
#!/bin/sh
svnadmin create /tmp/demorepo || exit 1
svn co file:///tmp/demorepo wc
pushd wc
mkdir branches tags trunk
svn add branches tags trunk
svn ci -m "btt"
cd trunk
echo 'alpha' > alpha
svn add alpha
svn ci -m 'add alpha'
cd ..
pushd
hg convert svn+ssh://localhost/tmp/demorepo demorepo-hg
pushd
svn cp trunk branches/the_branch
svn ci -m "making branch"
cd branches/the_branch
echo 'beta' > beta
svn add beta
svn ci -m "beta, on branch"
cd ../..
pushd
hg convert svn+ssh://localhost/tmp/demorepo demorepo-hg
pushd
svn cp branches/the_branch tags/added_beta
svn ci -m "tagging add of beta"
cd branches/the_branch
echo 'delta' > delta
svn add delta
svn ci -m 'add delta'
cd ../..
pushd
hg convert svn+ssh://localhost/tmp/demorepo demorepo-hg
pushd
cd trunk
echo 'gamma' > gamma
svn add gamma
svn ci -m 'add gamma'
cd ..
pushd
hg convert svn+ssh://localhost/tmp/demorepo demorepo-hg
popd
echo 'hg repo should now be broken'

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.