1 handle svn
2
3 mkdir db/transactions
4 mkdir db/txn-protorevs
5 chmod 0755 hooks/pre-revprop-change
6
7 env ROOT=$PWD
8 cd .checkout
9 [GOOS:windows] svn checkout file:///$ROOT .
10 [!GOOS:windows] svn checkout file://$ROOT .
11
12 svn add hello.go
13 svn commit --file MSG
14 svn propset svn:author 'rsc' --revprop -r1
15 svn propset svn:date '2017-09-22T01:12:45.861368Z' --revprop -r1
16
17 svn update
18 svn log --xml
19
20 [GOOS:windows] replace '\n' '\r\n' .svn-log
21 cmp stdout .svn-log
22
23 -- .checkout/MSG --
24 hello world
25
26 -- .checkout/hello.go --
27 package main
28
29 func main() {
30 println("hello, world")
31 }
32 -- .checkout/.svn-log --
33 <?xml version="1.0" encoding="UTF-8"?>
34 <log>
35 <logentry
36 revision="1">
37 <author>rsc</author>
38 <date>2017-09-22T01:12:45.861368Z</date>
39 <msg>hello world
40
41 </msg>
42 </logentry>
43 </log>
44 -- conf/authz --
45 -- conf/passwd --
46 -- conf/svnserve.conf --
47 -- db/current --
48 0
49 -- db/format --
50 6
51 layout sharded 1000
52 -- db/fs-type --
53 fsfs
54 -- db/fsfs.conf --
55 -- db/min-unpacked-rev --
56 0
57 -- db/revprops/0/0 --
58 K 8
59 svn:date
60 V 27
61 2017-09-22T01:11:53.895835Z
62 END
63 -- db/revs/0/0 --
64 PLAIN
65 END
66 ENDREP
67 id: 0.0.r0/17
68 type: dir
69 count: 0
70 text: 0 0 4 4 2d2977d1c96f487abe4a1e202dd03b4e
71 cpath: /
72
73
74 17 107
75 -- db/txn-current --
76 0
77 -- db/txn-current-lock --
78 -- db/uuid --
79 53cccb44-0fca-40a2-b0c5-acaf9e75039a
80 -- db/write-lock --
81 -- format --
82 5
83 -- hooks/pre-revprop-change --
84 #!/bin/sh
85
86 -- hooks/pre-revprop-change.bat --
87 @exit
88
View as plain text