1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
|
#! /bin/sh
# removed-delta.sh: Tests for behavious when a delta has been removed.
# Import common functions & definitions.
. ../common/test-common
g=X
s=s.$g
x=x.$g
z=z.$g
p=p.$g
remove $g $s $x $z $p
# Create an SCCS file with two deltas 1.1 and 2.1; then remove
# the 2.1 delta with rmdel - getting the 1.1 revision for editing
# should result in SID 2.1 being re-used.
#
# CSSC used not to do that - SourceForge bug number #450900.
docommand rd1 "${admin} -n $s" 0 IGNORE IGNORE
docommand rd2 "${get} -r2 -e $s" 0 "1.1
new delta 2.1
0 lines
" IGNORE
docommand rd3 "${delta} -yNoComment $s" 0 IGNORE IGNORE
docommand rd4 "${rmdel} -r2.1 $s" 0 IGNORE IGNORE
# It's the second get -e which we exp[ect to fail if we are
# suffering from SourceForge bug number #450900.
docommand rd5 "${get} -r2 -e $s" 0 "1.1
new delta 2.1
0 lines
" IGNORE
###
### Now we re-do the whole test again, with two removed deltas,
### to see if that makes a difference.
remove $g $s $x $z $p
docommand rd10 "${admin} -n $s" 0 IGNORE IGNORE
docommand rd11 "${get} -r2 -e $s" 0 "1.1
new delta 2.1
0 lines
" IGNORE
docommand rd12 "${delta} -yNoComment $s" 0 IGNORE IGNORE
docommand rd13 "${get} -r2.1 -e $s" 0 "2.1
new delta 2.2
0 lines
" IGNORE
docommand rd14 "${delta} -yNoComment $s" 0 IGNORE IGNORE
docommand rd15 "${rmdel} -r2.2 $s" 0 IGNORE IGNORE
docommand rd16 "${rmdel} -r2.1 $s" 0 IGNORE IGNORE
docommand rd17 "${get} -r2 -e $s" 0 "1.1
new delta 2.1
0 lines
" IGNORE
remove $g $s $x $z $p
success
|