comparison tests/test-convert-bzr-treeroot @ 7053:209ef5f3534c

convert: add bzr source
author Marek Kubica <marek@xivilization.net>
date Fri, 26 Sep 2008 20:33:47 +0200
parents
children 9e6d6568bf7a
comparison
equal deleted inserted replaced
7052:0ca4f42daed7 7053:209ef5f3534c
1 #!/bin/sh
2
3 source "$TESTDIR/bzr-definitions"
4
5 cat > treeset.py <<EOF
6 import sys
7 from bzrlib import workingtree
8 wt = workingtree.WorkingTree.open('.')
9
10 message, rootid = sys.argv[1:]
11 wt.set_root_id('tree_root-%s' % rootid)
12 wt.commit(message)
13 EOF
14
15 echo % change the id of the tree root
16 mkdir test-change-treeroot-id
17 cd test-change-treeroot-id
18 bzr init -q source
19 cd source
20 echo content > file
21 bzr add -q file
22 bzr commit -q -m 'Initial add'
23 python ../../treeset.py 'Changed root' new
24 cd ..
25 hg convert source source-hg
26 manifest source-hg tip