File: xdtest

package info (click to toggle)
xdelta 0.14-2
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 684 kB
  • ctags: 682
  • sloc: ansic: 5,668; sh: 1,740; makefile: 62
file content (42 lines) | stat: -rwxr-xr-x 732 bytes parent folder | download
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
#!/bin/sh

if test $# != 5; then
  echo five args
  exit 1
fi

XD=foo.xd
TMP=/tmp/foo

rm -f $XD
xdelta register $XD

# checkin 0
xdelta checkin $XD $1
#xdelta checkout -r0 $XD $TMP

# checkin 1
xdelta checkin $XD $2
xdelta checkout -r1 $XD $TMP
xdelta checkout -r0 $XD $TMP

# checkin 2
xdelta checkin $XD $3
xdelta checkout -r2 $XD $TMP
xdelta checkout -r1 $XD $TMP
xdelta checkout -r0 $XD $TMP

# # checkin 3
xdelta checkin $XD $4
xdelta checkout -r3 $XD $TMP
xdelta checkout -r2 $XD $TMP
xdelta checkout -r1 $XD $TMP
xdelta checkout -r0 $XD $TMP

# # checkin 4
xdelta checkin $XD $5
xdelta checkout -r4 $XD $TMP
xdelta checkout -r3 $XD $TMP
xdelta checkout -r2 $XD $TMP
xdelta checkout -r1 $XD $TMP
xdelta checkout -r0 $XD $TMP