/[svn2cvs]/trunk/test.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/test.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 32 by dpavlin, Fri Sep 7 10:08:52 2007 UTC revision 33 by dpavlin, Fri Sep 7 11:05:48 2007 UTC
# Line 1  Line 1 
1  #!/bin/sh -x  #!/bin/sh -x
2    
3  svn_rep=`pwd`/test-svn-rep/  dir=/dev/shm
4  svn_co=`pwd`/test-svn-co/  test -e $dir || dir=/tmp/
5  cvs_rep=`pwd`/test-cvs-rep/  
6  cvs_co=`pwd`/test-cvs-co/  svn_rep=$dir/test-svn-rep/
7    svn_co=$dir/test-svn-co/
8    cvs_rep=$dir/test-cvs-rep/
9    cvs_co=$dir/test-cvs-co/
10    
11  test -d $svn_rep && rm -Rf $svn_rep  test -d $svn_rep && rm -Rf $svn_rep
12  test -d $svn_co && rm -Rf $svn_co  test -d $svn_co && rm -Rf $svn_co
# Line 67  function update_all() { Line 70  function update_all() {
70  function test() {  function test() {
71          svn2cvs          svn2cvs
72          update_all          update_all
73          diff -x .svn* -x CVS -urw $svn_co/dir/ $cvs_co/dir/ || exit          diff -x .svn\* -x CVS -urw $svn_co/dir/ $cvs_co/dir/ || exit
74  }  }
75    
76  svn2cvs  svn2cvs
# Line 87  svn commit -m "remove file again" $svn_c Line 90  svn commit -m "remove file again" $svn_c
90  test  test
91    
92  echo "new file" > $svn_co/dir/skip_add  echo "new file" > $svn_co/dir/skip_add
93  svn add $svn_co/dir/skip_add || exit;  svn add $svn_co/dir/skip_add || exit
94  svn commit -m "add skip_add" $svn_co || exit;  svn commit -m "add skip_add" $svn_co || exit
95    
96  echo "modify file" >> $svn_co/dir/skip_add  echo "modify file" >> $svn_co/dir/skip_add
97  svn commit -m "modify skip_add" $svn_co || exit;  svn commit -m "modify skip_add" $svn_co || exit
98    
99  cvs_rev=`cat $cvs_co/dir/.svnrev`  cvs_rev=`cat $cvs_co/dir/.svnrev`
100  echo "*** skipping revision $cvs_rev ***"  echo "*** skipping revision $cvs_rev ***"
# Line 100  cd $cvs_co && cvs -f commit -m "skip $cv Line 103  cd $cvs_co && cvs -f commit -m "skip $cv
103    
104  test  test
105    
106    echo keep > $svn_co/dir/keep
107    svn add $svn_co/dir/keep
108    svn mkdir $svn_co/dir/keep-dir
109    echo keep > $svn_co/dir/keep-dir/keep
110    svn add $svn_co/dir/keep-dir/keep
111    svn commit -m "stuff to keep" $svn_co || exit
112    
113    test
114    
115    svn mkdir $svn_co/dir/foo
116    echo bar > $svn_co/dir/foo/bar
117    echo baz > $svn_co/dir/foo/baz
118    echo bar > $svn_co/dir/bar
119    echo baz > $svn_co/dir/baz
120    svn add $svn_co/dir/* $svn_co/dir/foo/*
121    svn commit -m "add a bunch of stuff" $svn_co || exit
122    
123    test
124    
125    svn rm $svn_co/dir/* || exit
126    svn revert $svn_co/dir/keep $svn_co/dir/keep-dir/keep
127    svn commit -m "remove everything" $svn_co || exit
128    
129    test

Legend:
Removed from v.32  
changed lines
  Added in v.33

  ViewVC Help
Powered by ViewVC 1.1.26