1#!/bin/sh 2 3# File: test-mtn2svn-dir-rename-delete2.sh 4# needs: test-mtn2svn.include 5# 6# Test converting revisions from Monotone to Subversion and back to Monotone again. 7# Special: Remove directory after moving files from there. 8# Tailer needs to rename file first, than remove directory! 9# 10# ERROR 1: Fixed by 'monotone-dir-move-and-del.patch' 11# ERROR 2: Needs to be fix in svn parser 12 13# ERROR 1: 14# -------- 15# >>> output from "mtn diff" is >>> 16# delete "otherdir" 17# 18# delete "otherdir/subdir" 19# 20# delete "somedir" 21# 22# rename "otherdir/subdir/bfile" 23# to "bfile" 24# 25# rename "somedir/afile" 26# to "afile" 27# <<< end <<< 28 29# ERROR 2: 30# -------- 31# Changelog are different. All "rename" will list as "delete" and "add". 32# This error comes from svn to monotone (the svn parser). 33# 34# File state is OK. Only the log is not complete. 35 36. ./test-mtn2svn.include 37monotone_setup 38 39# Create dirs, files, 2 revisions 40 41mkdir "dummydir" 42mkdir "somedir" 43touch "somedir/afile" 44 45mkdir -p "otherdir/subdir" 46touch "otherdir/subdir/bfile" 47 48mtn_exec add * --recursive 49mtn_exec commit --message "initial commit" 50 51# file moved to upper dir 52mtn_exec rename "somedir/afile" "afile" 53mtn_exec rename "otherdir/subdir/bfile" "bfile" 54 55# dir deletes (single or recursive, does no matter) 56#mtn_exec drop "dummydir" 57#mtn_exec drop "somedir" 58#mtn_exec drop "otherdir/subdir" 59#mtn_exec drop "otherdir" 60 61mtn_exec drop --recursive "dummydir" "somedir" "otherdir" 62 63mtn_exec commit --message "chang it" 64 65testing_runs 66