You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by da...@apache.org on 2010/07/23 21:37:24 UTC
svn commit: r967221 [7/7] - in /subversion/branches/atomic-revprop: ./
build/generator/ notes/ notes/tree-conflicts/
subversion/bindings/javahl/tests/org/apache/subversion/javahl/
subversion/bindings/javahl/tests/org/tigris/subversion/javahl/ subversio...
Modified: subversion/branches/atomic-revprop/subversion/tests/cmdline/svnsync_tests_data/svnsync-trunk-A-changes.expected.dump
URL: http://svn.apache.org/viewvc/subversion/branches/atomic-revprop/subversion/tests/cmdline/svnsync_tests_data/svnsync-trunk-A-changes.expected.dump?rev=967221&r1=967220&r2=967221&view=diff
==============================================================================
--- subversion/branches/atomic-revprop/subversion/tests/cmdline/svnsync_tests_data/svnsync-trunk-A-changes.expected.dump (original)
+++ subversion/branches/atomic-revprop/subversion/tests/cmdline/svnsync_tests_data/svnsync-trunk-A-changes.expected.dump Fri Jul 23 19:37:19 2010
@@ -4,6 +4,8 @@ UUID: 728f5e1e-a57c-4dd4-8b4f-ca752f5178
Revision-number: 0
Prop-content-length: 56
+Prop-content-md5: (svn:date) 1b69f2412c6c742c9c7244a61fa18e09
+Prop-content-sha1: (svn:date) 566264fef4d43d78fac5966221a636c01cfb8dd8
Content-length: 56
K 8
@@ -14,12 +16,14 @@ PROPS-END
Revision-number: 1
Prop-content-length: 97
+Prop-content-md5: (svn:log) d41d8cd98f00b204e9800998ecf8427e
+Prop-content-sha1: (svn:log) da39a3ee5e6b4b0d3255bfef95601890afd80709
+Prop-content-md5: (svn:author) e132f7d4c73fdb84ba5f84bcfdcf90b1
+Prop-content-sha1: (svn:author) 037aa8992b1094819e6c95659c91826248822e75
+Prop-content-md5: (svn:date) 65ac64d8cca57d54f7b09789e9e78726
+Prop-content-sha1: (svn:date) e55b50fb4607950d7b8e78092d5771a53bcbdd02
Content-length: 97
-K 7
-svn:log
-V 0
-
K 10
svn:author
V 3
@@ -28,6 +32,10 @@ K 8
svn:date
V 27
2007-12-07T20:53:40.322712Z
+K 7
+svn:log
+V 0
+
PROPS-END
Node-path: trunk
@@ -41,12 +49,14 @@ PROPS-END
Revision-number: 2
Prop-content-length: 124
+Prop-content-md5: (svn:log) c5f0e220fb8ccf25d10ad241dcfd746d
+Prop-content-sha1: (svn:log) ee00102303d31cafd567cb15853e50132446a55c
+Prop-content-md5: (svn:author) e132f7d4c73fdb84ba5f84bcfdcf90b1
+Prop-content-sha1: (svn:author) 037aa8992b1094819e6c95659c91826248822e75
+Prop-content-md5: (svn:date) f3d8837082ca5c8c0a62763b33d0837c
+Prop-content-sha1: (svn:date) 3d7b7e4383358001a010e8d217cc71099a73ac6e
Content-length: 124
-K 7
-svn:log
-V 26
-Import greek tree on trunk
K 10
svn:author
V 3
@@ -55,6 +65,10 @@ K 8
svn:date
V 27
2007-12-07T20:56:45.939703Z
+K 7
+svn:log
+V 26
+Import greek tree on trunk
PROPS-END
Node-path: trunk/A
@@ -274,12 +288,14 @@ This is the file 'A/mu'.
Revision-number: 3
Prop-content-length: 127
+Prop-content-md5: (svn:log) 5c72cafb682cb5732941ad3b4c35ae59
+Prop-content-sha1: (svn:log) 844692fcd525ed0689e8ee0763a0e4561690b43d
+Prop-content-md5: (svn:author) e132f7d4c73fdb84ba5f84bcfdcf90b1
+Prop-content-sha1: (svn:author) 037aa8992b1094819e6c95659c91826248822e75
+Prop-content-md5: (svn:date) 0d8a658946f806a5b815299da6efdfce
+Prop-content-sha1: (svn:date) 788b71e9b4b5c67b0b2135673e76dfa57079ef68
Content-length: 127
-K 7
-svn:log
-V 29
-* trunk/A/D/H/psi: extra line
K 10
svn:author
V 3
@@ -288,6 +304,10 @@ K 8
svn:date
V 27
2007-12-07T21:12:26.232653Z
+K 7
+svn:log
+V 29
+* trunk/A/D/H/psi: extra line
PROPS-END
Node-path: trunk/A/D/H/psi
@@ -304,12 +324,14 @@ Added extra line.
Revision-number: 4
Prop-content-length: 128
+Prop-content-md5: (svn:log) bbb947527249743ceab8254b3dacd4cc
+Prop-content-sha1: (svn:log) 70ddf3a94578a1164e79b6f1d274d0db8acde01e
+Prop-content-md5: (svn:author) 5176e28ac739be42420688254587a92a
+Prop-content-sha1: (svn:author) 2a55f6a4d5f5d2ac3b08bf7eb6bc2bde2b1f9ce6
+Prop-content-md5: (svn:date) 9fe701bb0e59475780bfe00022627f98
+Prop-content-sha1: (svn:date) 589370c75026addcdd5c11772aa206bb9a6d389e
Content-length: 128
-K 7
-svn:log
-V 26
-make changes on A and iota
K 10
svn:author
V 7
@@ -318,12 +340,18 @@ K 8
svn:date
V 27
2007-12-09T21:25:05.711998Z
+K 7
+svn:log
+V 26
+make changes on A and iota
PROPS-END
Node-path: trunk/A
Node-kind: dir
Node-action: change
Prop-content-length: 26
+Prop-content-md5: (foo) 37b51d194a7513e45b56f6524f2d51f2
+Prop-content-sha1: (foo) 62cdb7020ff920e5aa642c3d4066950dd1f01f4d
Content-length: 26
K 3
@@ -335,12 +363,14 @@ PROPS-END
Revision-number: 5
Prop-content-length: 116
+Prop-content-md5: (svn:log) 10311450610213e83fa9b7b6dd9148b8
+Prop-content-sha1: (svn:log) e06b304aa4c8ffe33ea44ec10023a900fc90a836
+Prop-content-md5: (svn:author) 5176e28ac739be42420688254587a92a
+Prop-content-sha1: (svn:author) 2a55f6a4d5f5d2ac3b08bf7eb6bc2bde2b1f9ce6
+Prop-content-md5: (svn:date) ea204d8057e4c132b701417012b29589
+Prop-content-sha1: (svn:date) 3b183cd08efe14a34541311ff10d8df09a448522
Content-length: 116
-K 7
-svn:log
-V 14
-Renamed A to B
K 10
svn:author
V 7
@@ -349,6 +379,10 @@ K 8
svn:date
V 27
2007-12-09T21:26:14.639561Z
+K 7
+svn:log
+V 14
+Renamed A to B
PROPS-END
Node-path: trunk/A
@@ -357,12 +391,14 @@ Node-action: delete
Revision-number: 6
Prop-content-length: 116
+Prop-content-md5: (svn:log) 0d914d8d200063955513f49127bf1159
+Prop-content-sha1: (svn:log) 61301c02fe66da8307a029c0830ecdca617fe449
+Prop-content-md5: (svn:author) 5176e28ac739be42420688254587a92a
+Prop-content-sha1: (svn:author) 2a55f6a4d5f5d2ac3b08bf7eb6bc2bde2b1f9ce6
+Prop-content-md5: (svn:date) 008dd7b8ca0b8761f784c677d1a8c3e3
+Prop-content-sha1: (svn:date) d7ab15a75694a73885b1707b7d1652bb831ec5e8
Content-length: 116
-K 7
-svn:log
-V 14
-Moved B/D to A
K 10
svn:author
V 7
@@ -371,6 +407,10 @@ K 8
svn:date
V 27
2007-12-09T21:27:02.055549Z
+K 7
+svn:log
+V 14
+Moved B/D to A
PROPS-END
Node-path: trunk/A
@@ -494,12 +534,14 @@ This is the file 'A/D/gamma'.
Revision-number: 7
Prop-content-length: 125
+Prop-content-md5: (svn:log) f6d9f682d5011607580ee4462eff7156
+Prop-content-sha1: (svn:log) ce37d93f790eb3b1670b69e4be410c510ef3de84
+Prop-content-md5: (svn:author) 5176e28ac739be42420688254587a92a
+Prop-content-sha1: (svn:author) 2a55f6a4d5f5d2ac3b08bf7eb6bc2bde2b1f9ce6
+Prop-content-md5: (svn:date) e83ec98db8ea6e40028fa35ecbfccb12
+Prop-content-sha1: (svn:date) 474deb2c396cec8418307577caa3a7339f17ea2e
Content-length: 125
-K 7
-svn:log
-V 23
-Added property to trunk
K 10
svn:author
V 7
@@ -508,12 +550,18 @@ K 8
svn:date
V 27
2007-12-09T21:28:07.300170Z
+K 7
+svn:log
+V 23
+Added property to trunk
PROPS-END
Node-path: trunk
Node-kind: dir
Node-action: change
Prop-content-length: 31
+Prop-content-md5: (propon) 8d0411b338c83cd8cd8ad9d9db127101
+Prop-content-sha1: (propon) 488784591515bd4cdaa016be4ec9b172dc4e7caf
Content-length: 31
K 6
Modified: subversion/branches/atomic-revprop/subversion/tests/cmdline/svnsync_tests_data/svnsync-trunk-only.dump
URL: http://svn.apache.org/viewvc/subversion/branches/atomic-revprop/subversion/tests/cmdline/svnsync_tests_data/svnsync-trunk-only.dump?rev=967221&r1=967220&r2=967221&view=diff
==============================================================================
--- subversion/branches/atomic-revprop/subversion/tests/cmdline/svnsync_tests_data/svnsync-trunk-only.dump (original)
+++ subversion/branches/atomic-revprop/subversion/tests/cmdline/svnsync_tests_data/svnsync-trunk-only.dump Fri Jul 23 19:37:19 2010
@@ -16,10 +16,6 @@ Revision-number: 1
Prop-content-length: 97
Content-length: 97
-K 7
-svn:log
-V 0
-
K 10
svn:author
V 3
@@ -28,6 +24,10 @@ K 8
svn:date
V 27
2007-12-07T20:53:40.322712Z
+K 7
+svn:log
+V 0
+
PROPS-END
Node-path: test.txt
@@ -55,10 +55,6 @@ Revision-number: 2
Prop-content-length: 124
Content-length: 124
-K 7
-svn:log
-V 26
-Import greek tree on trunk
K 10
svn:author
V 3
@@ -67,6 +63,10 @@ K 8
svn:date
V 27
2007-12-07T20:56:45.939703Z
+K 7
+svn:log
+V 26
+Import greek tree on trunk
PROPS-END
Node-path: trunk/A
@@ -289,10 +289,6 @@ Revision-number: 3
Prop-content-length: 127
Content-length: 127
-K 7
-svn:log
-V 29
-* trunk/A/D/H/psi: extra line
K 10
svn:author
V 3
@@ -301,6 +297,10 @@ K 8
svn:date
V 27
2007-12-07T21:12:26.232653Z
+K 7
+svn:log
+V 29
+* trunk/A/D/H/psi: extra line
PROPS-END
Node-path: trunk/A/D/H/psi
Modified: subversion/branches/atomic-revprop/subversion/tests/cmdline/svnsync_tests_data/svnsync-trunk-only.expected.dump
URL: http://svn.apache.org/viewvc/subversion/branches/atomic-revprop/subversion/tests/cmdline/svnsync_tests_data/svnsync-trunk-only.expected.dump?rev=967221&r1=967220&r2=967221&view=diff
==============================================================================
--- subversion/branches/atomic-revprop/subversion/tests/cmdline/svnsync_tests_data/svnsync-trunk-only.expected.dump (original)
+++ subversion/branches/atomic-revprop/subversion/tests/cmdline/svnsync_tests_data/svnsync-trunk-only.expected.dump Fri Jul 23 19:37:19 2010
@@ -4,6 +4,8 @@ UUID: 728f5e1e-a57c-4dd4-8b4f-ca752f5178
Revision-number: 0
Prop-content-length: 56
+Prop-content-md5: (svn:date) 1b69f2412c6c742c9c7244a61fa18e09
+Prop-content-sha1: (svn:date) 566264fef4d43d78fac5966221a636c01cfb8dd8
Content-length: 56
K 8
@@ -14,12 +16,14 @@ PROPS-END
Revision-number: 1
Prop-content-length: 97
+Prop-content-md5: (svn:log) d41d8cd98f00b204e9800998ecf8427e
+Prop-content-sha1: (svn:log) da39a3ee5e6b4b0d3255bfef95601890afd80709
+Prop-content-md5: (svn:author) e132f7d4c73fdb84ba5f84bcfdcf90b1
+Prop-content-sha1: (svn:author) 037aa8992b1094819e6c95659c91826248822e75
+Prop-content-md5: (svn:date) 65ac64d8cca57d54f7b09789e9e78726
+Prop-content-sha1: (svn:date) e55b50fb4607950d7b8e78092d5771a53bcbdd02
Content-length: 97
-K 7
-svn:log
-V 0
-
K 10
svn:author
V 3
@@ -28,6 +32,10 @@ K 8
svn:date
V 27
2007-12-07T20:53:40.322712Z
+K 7
+svn:log
+V 0
+
PROPS-END
Node-path: trunk
@@ -41,12 +49,14 @@ PROPS-END
Revision-number: 2
Prop-content-length: 124
+Prop-content-md5: (svn:log) c5f0e220fb8ccf25d10ad241dcfd746d
+Prop-content-sha1: (svn:log) ee00102303d31cafd567cb15853e50132446a55c
+Prop-content-md5: (svn:author) e132f7d4c73fdb84ba5f84bcfdcf90b1
+Prop-content-sha1: (svn:author) 037aa8992b1094819e6c95659c91826248822e75
+Prop-content-md5: (svn:date) f3d8837082ca5c8c0a62763b33d0837c
+Prop-content-sha1: (svn:date) 3d7b7e4383358001a010e8d217cc71099a73ac6e
Content-length: 124
-K 7
-svn:log
-V 26
-Import greek tree on trunk
K 10
svn:author
V 3
@@ -55,6 +65,10 @@ K 8
svn:date
V 27
2007-12-07T20:56:45.939703Z
+K 7
+svn:log
+V 26
+Import greek tree on trunk
PROPS-END
Node-path: trunk/A
@@ -287,12 +301,14 @@ This is the file 'iota'.
Revision-number: 3
Prop-content-length: 127
+Prop-content-md5: (svn:log) 5c72cafb682cb5732941ad3b4c35ae59
+Prop-content-sha1: (svn:log) 844692fcd525ed0689e8ee0763a0e4561690b43d
+Prop-content-md5: (svn:author) e132f7d4c73fdb84ba5f84bcfdcf90b1
+Prop-content-sha1: (svn:author) 037aa8992b1094819e6c95659c91826248822e75
+Prop-content-md5: (svn:date) 0d8a658946f806a5b815299da6efdfce
+Prop-content-sha1: (svn:date) 788b71e9b4b5c67b0b2135673e76dfa57079ef68
Content-length: 127
-K 7
-svn:log
-V 29
-* trunk/A/D/H/psi: extra line
K 10
svn:author
V 3
@@ -301,6 +317,10 @@ K 8
svn:date
V 27
2007-12-07T21:12:26.232653Z
+K 7
+svn:log
+V 29
+* trunk/A/D/H/psi: extra line
PROPS-END
Node-path: trunk/A/D/H/psi
Modified: subversion/branches/atomic-revprop/subversion/tests/cmdline/svnsync_tests_data/tag-empty-trunk.dump
URL: http://svn.apache.org/viewvc/subversion/branches/atomic-revprop/subversion/tests/cmdline/svnsync_tests_data/tag-empty-trunk.dump?rev=967221&r1=967220&r2=967221&view=diff
==============================================================================
--- subversion/branches/atomic-revprop/subversion/tests/cmdline/svnsync_tests_data/tag-empty-trunk.dump (original)
+++ subversion/branches/atomic-revprop/subversion/tests/cmdline/svnsync_tests_data/tag-empty-trunk.dump Fri Jul 23 19:37:19 2010
@@ -4,6 +4,8 @@ UUID: c38a9451-c504-0410-b613-a343b2d5fd
Revision-number: 0
Prop-content-length: 56
+Prop-content-md5: (svn:date) d3e68c204824c9d773669f1589ee632e
+Prop-content-sha1: (svn:date) b013b81522077aea7d8473b0c5ac140021f11059
Content-length: 56
K 8
@@ -14,12 +16,14 @@ PROPS-END
Revision-number: 1
Prop-content-length: 105
+Prop-content-md5: (svn:log) a0f848942ce863cf53c0fa6cc684007d
+Prop-content-sha1: (svn:log) 80437a44a661d141174209119d54125a59a64b2a
+Prop-content-md5: (svn:author) c9bd66513549086361ea008b319307f8
+Prop-content-sha1: (svn:author) f9752bcda9e6e513d24f99a02b46cb539a5f63b9
+Prop-content-md5: (svn:date) 56078dd7c8ee30deab799602d25a2794
+Prop-content-sha1: (svn:date) 815da5e8791ae8d419e0c2c83f139a5fe6a3e001
Content-length: 105
-K 7
-svn:log
-V 5
-setup
K 10
svn:author
V 6
@@ -28,6 +32,10 @@ K 8
svn:date
V 27
2005-11-04T23:04:15.060966Z
+K 7
+svn:log
+V 5
+setup
PROPS-END
Node-path: tags
@@ -50,12 +58,14 @@ PROPS-END
Revision-number: 2
Prop-content-length: 106
+Prop-content-md5: (svn:log) 71144bec603905f49f4253f77fd5a9ef
+Prop-content-sha1: (svn:log) ed2db88fb56683d3e2b1e2163408a0e907f06fa8
+Prop-content-md5: (svn:author) c9bd66513549086361ea008b319307f8
+Prop-content-sha1: (svn:author) f9752bcda9e6e513d24f99a02b46cb539a5f63b9
+Prop-content-md5: (svn:date) 862458ae04a246c9891d0b8a1d7d9644
+Prop-content-sha1: (svn:date) ab480fd6e98659ca9ce03f3eff7213ca303f8f29
Content-length: 106
-K 7
-svn:log
-V 6
-tag it
K 10
svn:author
V 6
@@ -64,6 +74,10 @@ K 8
svn:date
V 27
2005-11-04T23:04:32.222710Z
+K 7
+svn:log
+V 6
+tag it
PROPS-END
Node-path: tags/an-empty-tag
Modified: subversion/branches/atomic-revprop/subversion/tests/cmdline/svnsync_tests_data/tag-trunk-with-dir.dump
URL: http://svn.apache.org/viewvc/subversion/branches/atomic-revprop/subversion/tests/cmdline/svnsync_tests_data/tag-trunk-with-dir.dump?rev=967221&r1=967220&r2=967221&view=diff
==============================================================================
--- subversion/branches/atomic-revprop/subversion/tests/cmdline/svnsync_tests_data/tag-trunk-with-dir.dump (original)
+++ subversion/branches/atomic-revprop/subversion/tests/cmdline/svnsync_tests_data/tag-trunk-with-dir.dump Fri Jul 23 19:37:19 2010
@@ -4,6 +4,8 @@ UUID: 20f4d640-c604-0410-95c8-f4ec7efce8
Revision-number: 0
Prop-content-length: 56
+Prop-content-md5: (svn:date) a046659177c52c6746917821511f9318
+Prop-content-sha1: (svn:date) 38fd1e0ee328137f9d719300004dca3292d143b1
Content-length: 56
K 8
@@ -14,12 +16,14 @@ PROPS-END
Revision-number: 1
Prop-content-length: 105
+Prop-content-md5: (svn:log) c13d88cb4cb02003daedb8a84e5d272a
+Prop-content-sha1: (svn:log) 5eee38381388b6f30efdd5c5c6f067dbf32c0bb3
+Prop-content-md5: (svn:author) c9bd66513549086361ea008b319307f8
+Prop-content-sha1: (svn:author) f9752bcda9e6e513d24f99a02b46cb539a5f63b9
+Prop-content-md5: (svn:date) d92941fc4884b1a17572b249445b4c23
+Prop-content-sha1: (svn:date) 8f38fcb744bd1143533f08521db241cb54501bd1
Content-length: 105
-K 7
-svn:log
-V 5
-stuff
K 10
svn:author
V 6
@@ -28,6 +32,10 @@ K 8
svn:date
V 27
2005-11-05T00:11:07.194039Z
+K 7
+svn:log
+V 5
+stuff
PROPS-END
Node-path: tags
@@ -59,12 +67,14 @@ PROPS-END
Revision-number: 2
Prop-content-length: 111
+Prop-content-md5: (svn:log) 98fa34b678d0bc616dc453ff71453ae5
+Prop-content-sha1: (svn:log) a3b3d00c74cb34cca8ce31435943bee58bf3b6e1
+Prop-content-md5: (svn:author) c9bd66513549086361ea008b319307f8
+Prop-content-sha1: (svn:author) f9752bcda9e6e513d24f99a02b46cb539a5f63b9
+Prop-content-md5: (svn:date) 9c81fd8fde02dc15ec88a8680dc74d26
+Prop-content-sha1: (svn:date) 2d25c8fb2554c0a0560109ad573db6eb26acb582
Content-length: 111
-K 7
-svn:log
-V 10
-more stuff
K 10
svn:author
V 6
@@ -73,6 +83,10 @@ K 8
svn:date
V 27
2005-11-05T00:11:18.910470Z
+K 7
+svn:log
+V 10
+more stuff
PROPS-END
Node-path: tags/a-tag
Modified: subversion/branches/atomic-revprop/subversion/tests/cmdline/svnsync_tests_data/tag-trunk-with-file.dump
URL: http://svn.apache.org/viewvc/subversion/branches/atomic-revprop/subversion/tests/cmdline/svnsync_tests_data/tag-trunk-with-file.dump?rev=967221&r1=967220&r2=967221&view=diff
==============================================================================
--- subversion/branches/atomic-revprop/subversion/tests/cmdline/svnsync_tests_data/tag-trunk-with-file.dump (original)
+++ subversion/branches/atomic-revprop/subversion/tests/cmdline/svnsync_tests_data/tag-trunk-with-file.dump Fri Jul 23 19:37:19 2010
@@ -4,6 +4,8 @@ UUID: 9bc56067-ff04-0410-83a8-bf961f5bc0
Revision-number: 0
Prop-content-length: 56
+Prop-content-md5: (svn:date) 06156cb677da23ca75ca86ca4a14fb8f
+Prop-content-sha1: (svn:date) a7f2bcd4666a392a9aa9d1c739d490d22ff50bfc
Content-length: 56
K 8
@@ -14,12 +16,14 @@ PROPS-END
Revision-number: 1
Prop-content-length: 115
+Prop-content-md5: (svn:log) 4ab9e582f3170b1da8428f34f37acf20
+Prop-content-sha1: (svn:log) 43a0bac46b9fa5d856ab146334082f1edd13134e
+Prop-content-md5: (svn:author) c9bd66513549086361ea008b319307f8
+Prop-content-sha1: (svn:author) f9752bcda9e6e513d24f99a02b46cb539a5f63b9
+Prop-content-md5: (svn:date) ed886aa69961cfa6adb3b936ffc80889
+Prop-content-sha1: (svn:date) 12760e904f72cb239eea36c02488f94a65f5af3a
Content-length: 115
-K 7
-svn:log
-V 14
-initial layout
K 10
svn:author
V 6
@@ -28,6 +32,10 @@ K 8
svn:date
V 27
2005-11-07T20:22:08.601650Z
+K 7
+svn:log
+V 14
+initial layout
PROPS-END
Node-path: branches
@@ -59,12 +67,14 @@ PROPS-END
Revision-number: 2
Prop-content-length: 111
+Prop-content-md5: (svn:log) b1f4cf34cf2348c4d30bcefce58e46e7
+Prop-content-sha1: (svn:log) 39b4de55d6c748d9adb1e13c09daf81bf2b4e89d
+Prop-content-md5: (svn:author) c9bd66513549086361ea008b319307f8
+Prop-content-sha1: (svn:author) f9752bcda9e6e513d24f99a02b46cb539a5f63b9
+Prop-content-md5: (svn:date) 1850831dfb94f96c873dfab34c9f9ed0
+Prop-content-sha1: (svn:date) 768a02028e9b7f7d70422366e9e18391db9aeb78
Content-length: 111
-K 7
-svn:log
-V 10
-add a file
K 10
svn:author
V 6
@@ -73,6 +83,10 @@ K 8
svn:date
V 27
2005-11-07T20:22:25.607033Z
+K 7
+svn:log
+V 10
+add a file
PROPS-END
Node-path: trunk/foo.txt
@@ -90,13 +104,14 @@ this is a file.
Revision-number: 3
Prop-content-length: 113
+Prop-content-md5: (svn:log) 0aaf4edeabbca22a01ab87cbb4c54543
+Prop-content-sha1: (svn:log) f42b93ee6a78447b18229c616745a5f965167383
+Prop-content-md5: (svn:author) c9bd66513549086361ea008b319307f8
+Prop-content-sha1: (svn:author) f9752bcda9e6e513d24f99a02b46cb539a5f63b9
+Prop-content-md5: (svn:date) 1872a9c3ebf036b1b88cd553bf71d9b1
+Prop-content-sha1: (svn:date) 36cf7ac0d23cd15f8e4983192a370d545e293f56
Content-length: 113
-K 7
-svn:log
-V 12
-make a tag.
-
K 10
svn:author
V 6
@@ -105,6 +120,11 @@ K 8
svn:date
V 27
2005-11-07T20:22:46.490796Z
+K 7
+svn:log
+V 12
+make a tag.
+
PROPS-END
Node-path: tags/a-tag-with-file-contents
Modified: subversion/branches/atomic-revprop/subversion/tests/cmdline/svnsync_tests_data/tag-trunk-with-file2.dump
URL: http://svn.apache.org/viewvc/subversion/branches/atomic-revprop/subversion/tests/cmdline/svnsync_tests_data/tag-trunk-with-file2.dump?rev=967221&r1=967220&r2=967221&view=diff
==============================================================================
--- subversion/branches/atomic-revprop/subversion/tests/cmdline/svnsync_tests_data/tag-trunk-with-file2.dump (original)
+++ subversion/branches/atomic-revprop/subversion/tests/cmdline/svnsync_tests_data/tag-trunk-with-file2.dump Fri Jul 23 19:37:19 2010
@@ -1,25 +1,29 @@
SVN-fs-dump-format-version: 2
-UUID: 47c84ee7-0005-0410-843c-81123ebdd4be
+UUID: 9bc56067-ff04-0410-83a8-bf961f5bc06a
Revision-number: 0
Prop-content-length: 56
+Prop-content-md5: (svn:date) 06156cb677da23ca75ca86ca4a14fb8f
+Prop-content-sha1: (svn:date) a7f2bcd4666a392a9aa9d1c739d490d22ff50bfc
Content-length: 56
K 8
svn:date
V 27
-2005-11-07T22:09:05.681726Z
+2005-11-07T20:21:44.409773Z
PROPS-END
Revision-number: 1
Prop-content-length: 115
+Prop-content-md5: (svn:log) 4ab9e582f3170b1da8428f34f37acf20
+Prop-content-sha1: (svn:log) 43a0bac46b9fa5d856ab146334082f1edd13134e
+Prop-content-md5: (svn:author) c9bd66513549086361ea008b319307f8
+Prop-content-sha1: (svn:author) f9752bcda9e6e513d24f99a02b46cb539a5f63b9
+Prop-content-md5: (svn:date) ed886aa69961cfa6adb3b936ffc80889
+Prop-content-sha1: (svn:date) 12760e904f72cb239eea36c02488f94a65f5af3a
Content-length: 115
-K 7
-svn:log
-V 14
-initial layout
K 10
svn:author
V 6
@@ -27,7 +31,11 @@ rooneg
K 8
svn:date
V 27
-2005-11-07T22:09:30.282710Z
+2005-11-07T20:22:08.601650Z
+K 7
+svn:log
+V 14
+initial layout
PROPS-END
Node-path: branches
@@ -58,13 +66,15 @@ PROPS-END
Revision-number: 2
-Prop-content-length: 106
-Content-length: 106
+Prop-content-length: 111
+Prop-content-md5: (svn:log) b1f4cf34cf2348c4d30bcefce58e46e7
+Prop-content-sha1: (svn:log) 39b4de55d6c748d9adb1e13c09daf81bf2b4e89d
+Prop-content-md5: (svn:author) c9bd66513549086361ea008b319307f8
+Prop-content-sha1: (svn:author) f9752bcda9e6e513d24f99a02b46cb539a5f63b9
+Prop-content-md5: (svn:date) 1850831dfb94f96c873dfab34c9f9ed0
+Prop-content-sha1: (svn:date) 768a02028e9b7f7d70422366e9e18391db9aeb78
+Content-length: 111
-K 7
-svn:log
-V 6
-a file
K 10
svn:author
V 6
@@ -72,7 +82,11 @@ rooneg
K 8
svn:date
V 27
-2005-11-07T22:09:44.146564Z
+2005-11-07T20:22:25.607033Z
+K 7
+svn:log
+V 10
+add a file
PROPS-END
Node-path: trunk/foo.txt
@@ -80,23 +94,24 @@ Node-kind: file
Node-action: add
Prop-content-length: 10
Text-content-length: 16
-Text-content-md5: 98475036dc73d318982805bf4b16e8b2
-Text-content-sha1: d7dff2b1ef48b9c20c23d7b3a08b557957cec3c9
+Text-content-md5: 0bebeeefa6853d064099b54a81a627e8
+Text-content-sha1: b78087338d3daf51e667056c78fd8089bb51d5ec
Content-length: 26
PROPS-END
-This is a file.
+this is a file.
Revision-number: 3
Prop-content-length: 113
+Prop-content-md5: (svn:log) 0aaf4edeabbca22a01ab87cbb4c54543
+Prop-content-sha1: (svn:log) f42b93ee6a78447b18229c616745a5f965167383
+Prop-content-md5: (svn:author) c9bd66513549086361ea008b319307f8
+Prop-content-sha1: (svn:author) f9752bcda9e6e513d24f99a02b46cb539a5f63b9
+Prop-content-md5: (svn:date) 1872a9c3ebf036b1b88cd553bf71d9b1
+Prop-content-sha1: (svn:date) 36cf7ac0d23cd15f8e4983192a370d545e293f56
Content-length: 113
-K 7
-svn:log
-V 12
-Make a tag.
-
K 10
svn:author
V 6
@@ -104,13 +119,27 @@ rooneg
K 8
svn:date
V 27
-2005-11-07T22:10:03.753668Z
+2005-11-07T20:22:46.490796Z
+K 7
+svn:log
+V 12
+make a tag.
+
PROPS-END
-Node-path: tags/a-tag
+Node-path: tags/a-tag-with-file-contents
Node-kind: dir
Node-action: add
-Node-copyfrom-rev: 2
+Node-copyfrom-rev: 1
Node-copyfrom-path: trunk
+Node-path: tags/a-tag-with-file-contents/foo.txt
+Node-kind: file
+Node-action: add
+Node-copyfrom-rev: 2
+Node-copyfrom-path: trunk/foo.txt
+Text-copy-source-md5: 0bebeeefa6853d064099b54a81a627e8
+Text-copy-source-sha1: b78087338d3daf51e667056c78fd8089bb51d5ec
+
+
Modified: subversion/branches/atomic-revprop/subversion/tests/cmdline/svnsync_tests_data/tag-with-modified-file.dump
URL: http://svn.apache.org/viewvc/subversion/branches/atomic-revprop/subversion/tests/cmdline/svnsync_tests_data/tag-with-modified-file.dump?rev=967221&r1=967220&r2=967221&view=diff
==============================================================================
--- subversion/branches/atomic-revprop/subversion/tests/cmdline/svnsync_tests_data/tag-with-modified-file.dump (original)
+++ subversion/branches/atomic-revprop/subversion/tests/cmdline/svnsync_tests_data/tag-with-modified-file.dump Fri Jul 23 19:37:19 2010
@@ -4,6 +4,8 @@ UUID: a5ac5a0e-0105-0410-a82a-edd0b5a7eb
Revision-number: 0
Prop-content-length: 56
+Prop-content-md5: (svn:date) 3f9d3061b50ad8d8a335682e491af0da
+Prop-content-sha1: (svn:date) 0043f7b3ac54b9e6d8e117afa3fd1c68cfd1fa7f
Content-length: 56
K 8
@@ -14,12 +16,14 @@ PROPS-END
Revision-number: 1
Prop-content-length: 115
+Prop-content-md5: (svn:log) 4ab9e582f3170b1da8428f34f37acf20
+Prop-content-sha1: (svn:log) 43a0bac46b9fa5d856ab146334082f1edd13134e
+Prop-content-md5: (svn:author) c9bd66513549086361ea008b319307f8
+Prop-content-sha1: (svn:author) f9752bcda9e6e513d24f99a02b46cb539a5f63b9
+Prop-content-md5: (svn:date) fdb200dfc19d911f3b76b1a6c7b1a9ea
+Prop-content-sha1: (svn:date) d48ff8f98d7d4f4ea09001bebfc587594a42322f
Content-length: 115
-K 7
-svn:log
-V 14
-initial layout
K 10
svn:author
V 6
@@ -28,6 +32,10 @@ K 8
svn:date
V 27
2005-11-07T22:20:16.583093Z
+K 7
+svn:log
+V 14
+initial layout
PROPS-END
Node-path: branches
@@ -59,13 +67,14 @@ PROPS-END
Revision-number: 2
Prop-content-length: 112
+Prop-content-md5: (svn:log) 8977446179f59b78ded2b47fdfae2030
+Prop-content-sha1: (svn:log) 4eda8ceeab6d9a0c88b180462088b33702c1b601
+Prop-content-md5: (svn:author) c9bd66513549086361ea008b319307f8
+Prop-content-sha1: (svn:author) f9752bcda9e6e513d24f99a02b46cb539a5f63b9
+Prop-content-md5: (svn:date) ae03b06fa8f3a5eda080fd3da5fca4d9
+Prop-content-sha1: (svn:date) 7caaa073b292e167331993804eb9757885932a5e
Content-length: 112
-K 7
-svn:log
-V 11
-add a file
-
K 10
svn:author
V 6
@@ -74,6 +83,11 @@ K 8
svn:date
V 27
2005-11-07T22:20:39.840815Z
+K 7
+svn:log
+V 11
+add a file
+
PROPS-END
Node-path: trunk/foo.txt
@@ -91,13 +105,14 @@ a file.
Revision-number: 3
Prop-content-length: 126
+Prop-content-md5: (svn:log) 06ef13f1a8006557c7b6d46dee3eb66c
+Prop-content-sha1: (svn:log) 2484bc04cccf795d0cdc5d7ee843e747f733e2d7
+Prop-content-md5: (svn:author) c9bd66513549086361ea008b319307f8
+Prop-content-sha1: (svn:author) f9752bcda9e6e513d24f99a02b46cb539a5f63b9
+Prop-content-md5: (svn:date) b821684085862165543e9747af5c4a6f
+Prop-content-sha1: (svn:date) a05bfbd3e1370b85fe541ccf1bc0c97540a12188
Content-length: 126
-K 7
-svn:log
-V 25
-tag with a modified file
-
K 10
svn:author
V 6
@@ -106,6 +121,11 @@ K 8
svn:date
V 27
2005-11-07T22:21:15.332479Z
+K 7
+svn:log
+V 25
+tag with a modified file
+
PROPS-END
Node-path: tags/a-tag-with-mods
Modified: subversion/branches/atomic-revprop/subversion/tests/cmdline/svnsync_tests_data/url-encoding-bug.dump
URL: http://svn.apache.org/viewvc/subversion/branches/atomic-revprop/subversion/tests/cmdline/svnsync_tests_data/url-encoding-bug.dump?rev=967221&r1=967220&r2=967221&view=diff
==============================================================================
--- subversion/branches/atomic-revprop/subversion/tests/cmdline/svnsync_tests_data/url-encoding-bug.dump (original)
+++ subversion/branches/atomic-revprop/subversion/tests/cmdline/svnsync_tests_data/url-encoding-bug.dump Fri Jul 23 19:37:19 2010
@@ -4,6 +4,8 @@ UUID: 182b6a41-8020-0410-bcb2-35c7cd5e7a
Revision-number: 0
Prop-content-length: 56
+Prop-content-md5: (svn:date) 9337bf813cce627b7f4985d83fed703e
+Prop-content-sha1: (svn:date) d3d6e289695638e1ab0b3d74365631f6dad2b05a
Content-length: 56
K 8
@@ -14,12 +16,14 @@ PROPS-END
Revision-number: 1
Prop-content-length: 101
+Prop-content-md5: (svn:log) c0cb5f0fcf239ab3d9c1fcd31fff1efc
+Prop-content-sha1: (svn:log) 5c10b5b2cd673a0616d529aa5234b12ee7153808
+Prop-content-md5: (svn:author) c9bd66513549086361ea008b319307f8
+Prop-content-sha1: (svn:author) f9752bcda9e6e513d24f99a02b46cb539a5f63b9
+Prop-content-md5: (svn:date) 9094b7f0719f04994da0492ece9bc403
+Prop-content-sha1: (svn:date) 3077b24c4f2074ea43fd93de1a1ff175a82bd75a
Content-length: 101
-K 7
-svn:log
-V 1
-,
K 10
svn:author
V 6
@@ -28,6 +32,10 @@ K 8
svn:date
V 27
2006-10-23T20:26:00.932678Z
+K 7
+svn:log
+V 1
+,
PROPS-END
Node-path: foo%20bar.txt
@@ -45,12 +53,14 @@ blah blah blah
Revision-number: 2
Prop-content-length: 101
+Prop-content-md5: (svn:log) c0cb5f0fcf239ab3d9c1fcd31fff1efc
+Prop-content-sha1: (svn:log) 5c10b5b2cd673a0616d529aa5234b12ee7153808
+Prop-content-md5: (svn:author) c9bd66513549086361ea008b319307f8
+Prop-content-sha1: (svn:author) f9752bcda9e6e513d24f99a02b46cb539a5f63b9
+Prop-content-md5: (svn:date) c0017ad6b8c18b45cc912f36bba3fcba
+Prop-content-sha1: (svn:date) fd8afd87628eb5d8bb40a089085d63a7a277b907
Content-length: 101
-K 7
-svn:log
-V 1
-,
K 10
svn:author
V 6
@@ -59,6 +69,10 @@ K 8
svn:date
V 27
2006-10-23T20:26:12.565554Z
+K 7
+svn:log
+V 1
+,
PROPS-END
Node-path: foo bar.txt
@@ -76,12 +90,14 @@ Node-action: delete
Revision-number: 3
Prop-content-length: 102
+Prop-content-md5: (svn:log) c0cb5f0fcf239ab3d9c1fcd31fff1efc
+Prop-content-sha1: (svn:log) 5c10b5b2cd673a0616d529aa5234b12ee7153808
+Prop-content-md5: (svn:author) 5176e28ac739be42420688254587a92a
+Prop-content-sha1: (svn:author) 2a55f6a4d5f5d2ac3b08bf7eb6bc2bde2b1f9ce6
+Prop-content-md5: (svn:date) f4533e34ea1c7425ae4f67f72af1c2a3
+Prop-content-sha1: (svn:date) 79f998bc0125cc6fda85a357be6697ee00224215
Content-length: 102
-K 7
-svn:log
-V 1
-,
K 10
svn:author
V 7
@@ -90,6 +106,10 @@ K 8
svn:date
V 27
2006-10-23T20:52:11.378819Z
+K 7
+svn:log
+V 1
+,
PROPS-END
Node-path: foo%20bar.txt
Modified: subversion/branches/atomic-revprop/subversion/tests/cmdline/svntest/actions.py
URL: http://svn.apache.org/viewvc/subversion/branches/atomic-revprop/subversion/tests/cmdline/svntest/actions.py?rev=967221&r1=967220&r2=967221&view=diff
==============================================================================
--- subversion/branches/atomic-revprop/subversion/tests/cmdline/svntest/actions.py (original)
+++ subversion/branches/atomic-revprop/subversion/tests/cmdline/svntest/actions.py Fri Jul 23 19:37:19 2010
@@ -326,12 +326,13 @@ def load_repo(sbox, dumpfile_path = None
#
-def run_and_verify_checkout(URL, wc_dir_name, output_tree, disk_tree,
- singleton_handler_a = None,
- a_baton = None,
- singleton_handler_b = None,
- b_baton = None,
- *args):
+def run_and_verify_checkout2(do_remove,
+ URL, wc_dir_name, output_tree, disk_tree,
+ singleton_handler_a = None,
+ a_baton = None,
+ singleton_handler_b = None,
+ b_baton = None,
+ *args):
"""Checkout the URL into a new directory WC_DIR_NAME. *ARGS are any
extra optional args to the checkout subcommand.
@@ -342,8 +343,8 @@ def run_and_verify_checkout(URL, wc_dir_
function's doc string for more details. Return if successful, raise
on failure.
- WC_DIR_NAME is deleted if present unless the '--force' option is passed
- in *ARGS."""
+ WC_DIR_NAME is deleted if DO_REMOVE is True.
+ """
if isinstance(output_tree, wc.State):
output_tree = output_tree.old_tree()
@@ -353,7 +354,7 @@ def run_and_verify_checkout(URL, wc_dir_
# Remove dir if it's already there, unless this is a forced checkout.
# In that case assume we want to test a forced checkout's toleration
# of obstructing paths.
- if '--force' not in args:
+ if do_remove:
main.safe_rmtree(wc_dir_name)
# Checkout and make a tree of the output, using l:foo/p:bar
@@ -384,6 +385,28 @@ def run_and_verify_checkout(URL, wc_dir_
tree.dump_tree_script(actual, wc_dir_name + os.sep)
raise
+def run_and_verify_checkout(URL, wc_dir_name, output_tree, disk_tree,
+ singleton_handler_a = None,
+ a_baton = None,
+ singleton_handler_b = None,
+ b_baton = None,
+ *args):
+ """Same as run_and_verify_checkout2(), but without the DO_REMOVE arg.
+ WC_DIR_NAME is deleted if present unless the '--force' option is passed
+ in *ARGS."""
+
+
+ # Remove dir if it's already there, unless this is a forced checkout.
+ # In that case assume we want to test a forced checkout's toleration
+ # of obstructing paths.
+ return run_and_verify_checkout2(('--force' not in args),
+ URL, wc_dir_name, output_tree, disk_tree,
+ singleton_handler_a,
+ a_baton,
+ singleton_handler_b,
+ b_baton,
+ *args)
+
def run_and_verify_export(URL, export_dir_name, output_tree, disk_tree,
*args):
@@ -1592,25 +1615,28 @@ def get_virginal_state(wc_dir, rev):
return state
-def remove_admin_tmp_dir(wc_dir):
- "Remove the tmp directory within the administrative directory."
-
- tmp_path = os.path.join(wc_dir, main.get_admin_name(), 'tmp')
- ### Any reason not to use main.safe_rmtree()?
- os.rmdir(os.path.join(tmp_path, 'prop-base'))
- os.rmdir(os.path.join(tmp_path, 'props'))
- os.rmdir(os.path.join(tmp_path, 'text-base'))
- os.rmdir(tmp_path)
-
# Cheap administrative directory locking
def lock_admin_dir(wc_dir):
"Lock a SVN administrative directory"
+ dot_svn = svntest.main.get_admin_name()
+ root_path = wc_dir
+ relpath = ''
+
+ while True:
+ db_path = os.path.join(root_path, dot_svn, 'wc.db')
+ try:
+ db = svntest.sqlite3.connect(db_path)
+ break
+ except: pass
+ head, tail = os.path.split(root_path)
+ if head == root_path:
+ raise svntest.Failure("No DB for " + wc_dir)
+ root_path = head
+ relpath = os.path.join(tail, relpath).rstrip('/')
- db = svntest.sqlite3.connect(os.path.join(wc_dir, main.get_admin_name(),
- 'wc.db'))
db.execute('insert into wc_lock (wc_id, local_dir_relpath, locked_levels) '
+ 'values (?, ?, ?)',
- (1, '', 0))
+ (1, relpath, 0))
db.commit()
db.close()
Modified: subversion/branches/atomic-revprop/subversion/tests/cmdline/svntest/factory.py
URL: http://svn.apache.org/viewvc/subversion/branches/atomic-revprop/subversion/tests/cmdline/svntest/factory.py?rev=967221&r1=967220&r2=967221&view=diff
==============================================================================
--- subversion/branches/atomic-revprop/subversion/tests/cmdline/svntest/factory.py (original)
+++ subversion/branches/atomic-revprop/subversion/tests/cmdline/svntest/factory.py Fri Jul 23 19:37:19 2010
@@ -660,6 +660,8 @@ class TestFactory:
del runargs[url_arg.argnr]
wc = wc_arg.wc
+ if not wc:
+ raise Failure("Unexpected argument ordering to factory's 'svn switch'?")
pychdir = self.chdir(do_chdir, wc)
Modified: subversion/branches/atomic-revprop/subversion/tests/cmdline/svntest/main.py
URL: http://svn.apache.org/viewvc/subversion/branches/atomic-revprop/subversion/tests/cmdline/svntest/main.py?rev=967221&r1=967220&r2=967221&view=diff
==============================================================================
--- subversion/branches/atomic-revprop/subversion/tests/cmdline/svntest/main.py (original)
+++ subversion/branches/atomic-revprop/subversion/tests/cmdline/svntest/main.py Fri Jul 23 19:37:19 2010
@@ -152,6 +152,7 @@ def url2pathname(path):
svn_binary = os.path.abspath('../../svn/svn' + _exe)
svnadmin_binary = os.path.abspath('../../svnadmin/svnadmin' + _exe)
svnlook_binary = os.path.abspath('../../svnlook/svnlook' + _exe)
+svnrdump_binary = os.path.abspath('../../svnrdump/svnrdump' + _exe)
svnsync_binary = os.path.abspath('../../svnsync/svnsync' + _exe)
svnversion_binary = os.path.abspath('../../svnversion/svnversion' + _exe)
svndumpfilter_binary = os.path.abspath('../../svndumpfilter/svndumpfilter' + \
@@ -578,6 +579,12 @@ def run_svnlook(*varargs):
list of lines (including line terminators)."""
return run_command(svnlook_binary, 1, 0, *varargs)
+def run_svnrdump(*varargs):
+ """Run svnrdump with VARARGS, returns exit code as int; stdout, stderr as
+ list of lines (including line terminators)."""
+ return run_command(svnrdump_binary, 1, 0,
+ *(_with_auth(_with_config_dir(varargs))))
+
def run_svnsync(*varargs):
"""Run svnsync with VARARGS, returns exit code as int; stdout, stderr as
list of lines (including line terminators)."""
@@ -1023,6 +1030,9 @@ def is_fs_type_fsfs():
def is_os_windows():
return os.name == 'nt'
+def is_windows_type_dav():
+ return is_os_windows() and is_ra_type_dav()
+
def is_posix_os():
return os.name == 'posix'
Modified: subversion/branches/atomic-revprop/subversion/tests/cmdline/svntest/wc.py
URL: http://svn.apache.org/viewvc/subversion/branches/atomic-revprop/subversion/tests/cmdline/svntest/wc.py?rev=967221&r1=967220&r2=967221&view=diff
==============================================================================
--- subversion/branches/atomic-revprop/subversion/tests/cmdline/svntest/wc.py (original)
+++ subversion/branches/atomic-revprop/subversion/tests/cmdline/svntest/wc.py Fri Jul 23 19:37:19 2010
@@ -820,22 +820,32 @@ def text_base_path(file_path):
"""Return the path to the text-base file for the versioned file
FILE_PATH."""
dot_svn = svntest.main.get_admin_name()
- parent_path, file_name = os.path.split(file_path)
+ root_path, relpath = os.path.split(file_path)
+
+ while True:
+ db_path = os.path.join(root_path, dot_svn, 'wc.db')
+ try:
+ db = svntest.sqlite3.connect(db_path)
+ break
+ except: pass
+ head, tail = os.path.split(root_path)
+ if head == root_path:
+ raise svntest.Failure("No DB for " + file_path)
+ root_path = head
+ relpath = os.path.join(tail, relpath)
- db_path = os.path.join(parent_path, dot_svn, 'wc.db')
- db = svntest.sqlite3.connect(db_path)
c = db.cursor()
c.execute("""select checksum from working_node
- where local_relpath = '""" + file_name + """'""")
+ where local_relpath = '""" + relpath + """'""")
checksum = c.fetchone()
if checksum is None:
c.execute("""select checksum from base_node
- where local_relpath = '""" + file_name + """'""")
+ where local_relpath = '""" + relpath + """'""")
checksum = c.fetchone()[0]
if checksum is None or checksum[0:6] != "$sha1$":
- raise svntest.Failure("No SHA1 checksum for " + file_path)
+ raise svntest.Failure("No SHA1 checksum for " + relpath)
db.close()
- return os.path.join(parent_path, dot_svn, 'pristine', checksum[6:])
+ return os.path.join(root_path, dot_svn, 'pristine', checksum[6:])
# ------------
Modified: subversion/branches/atomic-revprop/subversion/tests/cmdline/switch_tests.py
URL: http://svn.apache.org/viewvc/subversion/branches/atomic-revprop/subversion/tests/cmdline/switch_tests.py?rev=967221&r1=967220&r2=967221&view=diff
==============================================================================
--- subversion/branches/atomic-revprop/subversion/tests/cmdline/switch_tests.py (original)
+++ subversion/branches/atomic-revprop/subversion/tests/cmdline/switch_tests.py Fri Jul 23 19:37:19 2010
@@ -805,35 +805,92 @@ def bad_intermediate_urls(sbox):
"bad intermediate urls in use"
sbox.build()
wc_dir = sbox.wc_dir
+ url = sbox.repo_url
+
+ A = os.path.join(wc_dir, 'A')
+ A_Z = os.path.join(wc_dir, 'A', 'Z')
+ url_A_C = url + '/A/C'
+ url_A_C_A = url + '/A/C/A'
+ url_A_C_A_Z = url + '/A/C/A/Z'
# We'll be switching our working copy to (a modified) A/C in the Greek tree.
# First, make an extra subdirectory in C to match one in the root, plus
# another one inside of that.
- C_url = sbox.repo_url + '/A/C'
- C_A_url = sbox.repo_url + '/A/C/A'
- C_A_Z_url = sbox.repo_url + '/A/C/A/Z'
svntest.actions.run_and_verify_svn(None,
['\n', 'Committed revision 2.\n'], [],
'mkdir', '-m', 'log msg',
- C_A_url, C_A_Z_url)
+ url_A_C_A, url_A_C_A_Z)
# Now, we'll drop a conflicting path under the root.
- A_path = os.path.join(wc_dir, 'A')
- A_Z_path = os.path.join(A_path, 'Z')
- svntest.main.file_append(A_Z_path, 'Look, Mom, no ... switch success.')
+ svntest.main.file_append(A_Z, 'Look, Mom, a ... tree conflict.')
+
+ #svntest.factory.make(sbox, """
+ # svn switch url/A/C wc_dir
+ # # svn info A
+ # # check that we can recover from the tree conflict
+ # rm A/Z
+ # svn up
+ # """)
+ #exit(0)
+
+ # svn switch url/A/C wc_dir
+ expected_output = svntest.wc.State(wc_dir, {
+ 'A/mu' : Item(status='D '),
+ 'A/Z' : Item(status=' ', treeconflict='C'),
+ 'A/C' : Item(status='D '),
+ 'A/B' : Item(status='D '),
+ 'A/D' : Item(status='D '),
+ 'iota' : Item(status='D '),
+ })
- # This switch should fail for reasons of obstruction.
- exit_code, out, err = svntest.main.run_svn(1, 'switch',
- C_url, wc_dir)
- if not err:
- raise svntest.Failure
+ expected_disk = svntest.main.greek_state.copy()
+ expected_disk.remove('iota', 'A/B', 'A/B/E', 'A/B/E/beta', 'A/B/E/alpha',
+ 'A/B/F', 'A/B/lambda', 'A/D', 'A/D/G', 'A/D/G/rho', 'A/D/G/pi',
+ 'A/D/G/tau', 'A/D/H', 'A/D/H/psi', 'A/D/H/omega', 'A/D/H/chi',
+ 'A/D/gamma', 'A/mu', 'A/C')
+ expected_disk.add({
+ 'A/Z' : Item(contents="Look, Mom, a ... tree conflict."),
+ })
- # However, the URL for A should now reflect A/C/A, not something else.
+ expected_status = actions.get_virginal_state(wc_dir, 2)
+ expected_status.remove('iota', 'A/B', 'A/B/E', 'A/B/E/beta', 'A/B/E/alpha',
+ 'A/B/F', 'A/B/lambda', 'A/D', 'A/D/G', 'A/D/G/rho', 'A/D/G/pi',
+ 'A/D/G/tau', 'A/D/H', 'A/D/H/psi', 'A/D/H/omega', 'A/D/H/chi',
+ 'A/D/gamma', 'A/mu', 'A/C')
+ expected_status.add({
+ 'A/Z' : Item(status='? ', treeconflict='C'),
+ })
+
+ actions.run_and_verify_switch(wc_dir, wc_dir, url_A_C, expected_output,
+ expected_disk, expected_status, None, None, None, None, None, False)
+
+
+ # However, the URL for wc/A should now reflect ^/A/C/A, not something else.
expected_infos = [
{ 'URL' : '.*/A/C/A$' },
]
- svntest.actions.run_and_verify_info(expected_infos, A_path)
+ svntest.actions.run_and_verify_info(expected_infos, A)
+
+
+ # check that we can recover from the tree conflict
+ # rm A/Z
+ os.remove(A_Z)
+
+ # svn up
+ expected_output = svntest.wc.State(wc_dir, {
+ 'A/Z' : Item(status='A '),
+ })
+
+ expected_disk.tweak('A/Z', contents=None)
+
+ expected_status.tweak(status=' ', wc_rev='2')
+ expected_status.tweak('A/Z', treeconflict=None)
+
+ actions.run_and_verify_update(wc_dir, expected_output, expected_disk,
+ expected_status, None, None, None, None, None, False, wc_dir)
+
+
#----------------------------------------------------------------------
@@ -1283,40 +1340,40 @@ def forced_switch_failures(sbox):
# """
# # Add a directory to obstruct a file.
# mkdir A/B/F/pi
- #
+ #
# # Add a file to obstruct a directory.
# echo "The file 'H'" > A/C/H
- #
+ #
# # Test three cases where forced switch should cause a tree conflict
- #
+ #
# # 1) A forced switch that tries to add a file when an unversioned
# # directory of the same name already exists. (Currently fails)
# svn switch --force url/A/D A/C
- #
+ #
# # 2) A forced switch that tries to add a dir when a file of the same
# # name already exists. (Tree conflict)
# svn switch --force url/A/D/G A/B/F
# svn info A/B/F/pi
- #
+ #
# # 3) A forced update that tries to add a directory when a versioned
# # directory of the same name already exists.
- #
+ #
# # Make dir A/D/H/I in repos.
# svn mkdir -m "Log message" url/A/D/H/I
- #
+ #
# # Make A/D/G/I and co A/D/H/I into it.
# mkdir A/D/G/I
# svn co url/A/D/H/I A/D/G/I
- #
+ #
# # Try the forced switch. A/D/G/I obstructs the dir A/D/G/I coming
# # from the repos, causing an error.
# svn switch --force url/A/D/H A/D/G
- #
+ #
# # Delete all three obstructions and finish the update.
# rm -rf A/D/G/I
# rm A/B/F/pi
# rm A/C/H
- #
+ #
# # A/B/F is switched to A/D/G
# # A/C is switched to A/D
# # A/D/G is switched to A/D/H
@@ -1350,19 +1407,13 @@ def forced_switch_failures(sbox):
# 1) A forced switch that tries to add a file when an unversioned
# directory of the same name already exists. (Currently fails)
# svn switch --force url/A/D A/C
- expected_error = ('Failed to add directory.*' + re.escape(A_C_H) +
- '.*a non-directory object.*already exists')
-
- actions.run_and_verify_switch(wc_dir, A_C, url_A_D, None, None, None,
- expected_error, None, None, None, None, False, '--force')
-
- # 2) A forced switch that tries to add a dir when a file of the same
- # name already exists.
- # svn switch --force url/A/D/G A/B/F
expected_output = svntest.wc.State(wc_dir, {
- 'A/B/F/rho' : Item(status='A '),
- 'A/B/F/pi' : Item(status=' ', treeconflict='C'),
- 'A/B/F/tau' : Item(status='A '),
+ 'A/C/G' : Item(status='A '),
+ 'A/C/G/pi' : Item(status='A '),
+ 'A/C/G/rho' : Item(status='A '),
+ 'A/C/G/tau' : Item(status='A '),
+ 'A/C/gamma' : Item(status='A '),
+ 'A/C/H' : Item(status=' ', treeconflict='C'),
})
expected_disk = svntest.main.greek_state.copy()
@@ -1374,23 +1425,44 @@ def forced_switch_failures(sbox):
'A/C/G/tau' : Item(contents="This is the file 'tau'.\n"),
'A/C/H' : Item(contents="The file 'H'\n"),
'A/B/F/pi' : Item(),
- 'A/B/F/rho' : Item(contents="This is the file 'rho'.\n"),
- 'A/B/F/tau' : Item(contents="This is the file 'tau'.\n"),
})
expected_status = actions.get_virginal_state(wc_dir, 1)
expected_status.add({
- 'A/B/F/tau' : Item(status=' ', wc_rev='1'),
- 'A/B/F/pi' : Item(status='? ', treeconflict='C'),
- 'A/B/F/rho' : Item(status=' ', wc_rev='1'),
'A/C/G' : Item(status=' ', wc_rev='1'),
'A/C/G/rho' : Item(status=' ', wc_rev='1'),
- 'A/C/G/pi' : Item(status=' ', wc_rev='1'),
'A/C/G/tau' : Item(status=' ', wc_rev='1'),
+ 'A/C/G/pi' : Item(status=' ', wc_rev='1'),
+ 'A/C/H' : Item(status='? ', treeconflict='C'),
'A/C/gamma' : Item(status=' ', wc_rev='1'),
})
+ expected_status.tweak('A/C', switched='S')
+
+ actions.run_and_verify_switch(wc_dir, A_C, url_A_D, expected_output,
+ expected_disk, expected_status, None, None, None, None, None, False,
+ '--force')
+
+
+ # 2) A forced switch that tries to add a dir when a file of the same
+ # name already exists. (Tree conflict)
+ # svn switch --force url/A/D/G A/B/F
+ expected_output = svntest.wc.State(wc_dir, {
+ 'A/B/F/rho' : Item(status='A '),
+ 'A/B/F/pi' : Item(status=' ', treeconflict='C'),
+ 'A/B/F/tau' : Item(status='A '),
+ })
+
+ expected_disk.add({
+ 'A/B/F/rho' : Item(contents="This is the file 'rho'.\n"),
+ 'A/B/F/tau' : Item(contents="This is the file 'tau'.\n"),
+ })
+
+ expected_status.add({
+ 'A/B/F/tau' : Item(status=' ', wc_rev='1'),
+ 'A/B/F/pi' : Item(status='? ', treeconflict='C'),
+ 'A/B/F/rho' : Item(status=' ', wc_rev='1'),
+ })
expected_status.tweak('A/B/F', switched='S')
- expected_status.tweak('A/C', status='! ', switched='S')
actions.run_and_verify_switch(wc_dir, A_B_F, url_A_D_G, expected_output,
expected_disk, expected_status, None, None, None, None, None, False,
@@ -1490,14 +1562,13 @@ def forced_switch_failures(sbox):
'A/D/G/psi' : Item(status=' ', wc_rev='2'),
'A/D/G/chi' : Item(status=' ', wc_rev='2'),
'A/D/H/I' : Item(status=' ', wc_rev='2'),
- 'A/C/H' : Item(status=' ', wc_rev='2'),
'A/C/H/psi' : Item(status=' ', wc_rev='2'),
'A/C/H/omega' : Item(status=' ', wc_rev='2'),
'A/C/H/chi' : Item(status=' ', wc_rev='2'),
'A/C/H/I' : Item(status=' ', wc_rev='2'),
})
expected_status.tweak(wc_rev='2', status=' ')
- expected_status.tweak('A/B/F/pi', treeconflict=None)
+ expected_status.tweak('A/B/F/pi', 'A/C/H', treeconflict=None)
expected_status.tweak('A/D/G', switched='S')
actions.run_and_verify_update(wc_dir, expected_output, expected_disk,
@@ -1541,10 +1612,7 @@ def switch_with_obstructing_local_adds(s
# Setup expected results of switch.
expected_output = svntest.wc.State(sbox.wc_dir, {
"A/B/F/gamma" : Item(status=' ', treeconflict='C'),
- "A/B/F/G" : Item(status='E '),
- "A/B/F/G/pi" : Item(status=' ', treeconflict='C'),
- "A/B/F/G/rho" : Item(status='A '),
- "A/B/F/G/tau" : Item(status=' ', treeconflict='C'),
+ "A/B/F/G" : Item(status=' ', treeconflict='C'),
"A/B/F/H" : Item(status='A '),
"A/B/F/H/chi" : Item(status='A '),
"A/B/F/H/omega" : Item(status='A '),
@@ -1556,7 +1624,6 @@ def switch_with_obstructing_local_adds(s
"A/B/F/gamma" : Item("This is the file 'gamma'.\n"),
"A/B/F/G" : Item(),
"A/B/F/G/pi" : Item("This is the OBSTRUCTING file 'pi'.\n"),
- "A/B/F/G/rho" : Item("This is the file 'rho'.\n"),
"A/B/F/G/tau" : Item("This is the file 'tau'.\n"),
"A/B/F/G/upsilon" : Item("This is the unversioned file 'upsilon'.\n"),
"A/B/F/H" : Item(),
@@ -1568,19 +1635,17 @@ def switch_with_obstructing_local_adds(s
expected_status = svntest.actions.get_virginal_state(sbox.wc_dir, 1)
expected_status.tweak('A/B/F', switched='S')
expected_status.add({
- "A/B/F/gamma" : Item(status='R ', treeconflict='C', wc_rev='1'),
-
- "A/B/F/G" : Item(status=' ', wc_rev=1),
- "A/B/F/G/pi" : Item(status='R ', treeconflict='C', wc_rev='1'),
- "A/B/F/G/rho" : Item(status=' ', wc_rev=1),
- "A/B/F/G/tau" : Item(status='R ', treeconflict='C', wc_rev='1'),
- "A/B/F/G/upsilon" : Item(status='A ', wc_rev=0),
- "A/B/F/H" : Item(status=' ', wc_rev=1),
- "A/B/F/H/chi" : Item(status=' ', wc_rev=1),
- "A/B/F/H/omega" : Item(status=' ', wc_rev=1),
- "A/B/F/H/psi" : Item(status=' ', wc_rev=1),
- "A/B/F/I" : Item(status='A ', wc_rev=0),
- })
+ 'A/B/F/gamma' : Item(status='R ', treeconflict='C', wc_rev='1'),
+ 'A/B/F/G' : Item(status='A ', treeconflict='C', wc_rev='0'),
+ 'A/B/F/G/pi' : Item(status='A ', wc_rev='0'),
+ 'A/B/F/G/tau' : Item(status='A ', wc_rev='0'),
+ 'A/B/F/G/upsilon' : Item(status='A ', wc_rev='0'),
+ 'A/B/F/H' : Item(status=' ', wc_rev='1'),
+ 'A/B/F/H/chi' : Item(status=' ', wc_rev='1'),
+ 'A/B/F/H/omega' : Item(status=' ', wc_rev='1'),
+ 'A/B/F/H/psi' : Item(status=' ', wc_rev='1'),
+ 'A/B/F/I' : Item(status='A ', wc_rev='0'),
+ })
# "Extra" files that we expect to result from the conflicts.
extra_files = ['pi\.r0', 'pi\.r1', 'pi\.mine']
Modified: subversion/branches/atomic-revprop/subversion/tests/cmdline/trans_tests.py
URL: http://svn.apache.org/viewvc/subversion/branches/atomic-revprop/subversion/tests/cmdline/trans_tests.py?rev=967221&r1=967220&r2=967221&view=diff
==============================================================================
--- subversion/branches/atomic-revprop/subversion/tests/cmdline/trans_tests.py (original)
+++ subversion/branches/atomic-revprop/subversion/tests/cmdline/trans_tests.py Fri Jul 23 19:37:19 2010
@@ -868,9 +868,10 @@ def props_only_file_update(sbox):
# We used to leave some temporary files around. Make sure that we don't.
temps = os.listdir(os.path.join(wc_dir, svntest.main.get_admin_name(), 'tmp'))
- temps.remove('prop-base')
- temps.remove('props')
- temps.remove('text-base')
+ if os.path.exists(os.path.join(wc_dir, svntest.main.get_admin_name(),
+ 'tmp', 'props')):
+ temps.remove('prop-base')
+ temps.remove('props')
if temps:
print('Temporary files leftover: %s' % (', '.join(temps),))
raise svntest.Failure
Modified: subversion/branches/atomic-revprop/subversion/tests/cmdline/update_tests.py
URL: http://svn.apache.org/viewvc/subversion/branches/atomic-revprop/subversion/tests/cmdline/update_tests.py?rev=967221&r1=967220&r2=967221&view=diff
==============================================================================
--- subversion/branches/atomic-revprop/subversion/tests/cmdline/update_tests.py (original)
+++ subversion/branches/atomic-revprop/subversion/tests/cmdline/update_tests.py Fri Jul 23 19:37:19 2010
@@ -793,15 +793,25 @@ def obstructed_update_alters_wc_props(sb
# Update the WC to that newer rev to trigger the obstruction.
#print "Updating WC"
- expected_output = svntest.wc.State(wc_dir, {})
+ # svntest.factory.make(sbox, 'svn update')
+ # exit(0)
+ expected_output = svntest.wc.State(wc_dir, {
+ 'A/foo' : Item(status=' ', treeconflict='C'),
+ })
+
expected_disk = svntest.main.greek_state.copy()
- expected_status = svntest.actions.get_virginal_state(wc_dir, 1)
- error_re = 'Failed to add directory.*object of the same name already exists'
- svntest.actions.run_and_verify_update(wc_dir,
- expected_output,
- expected_disk,
- expected_status,
- error_re)
+ expected_disk.add({
+ 'A/foo' : Item(contents="an obstruction"),
+ })
+
+ expected_status = actions.get_virginal_state(wc_dir, 2)
+ expected_status.add({
+ 'A/foo' : Item(status='? ', treeconflict='C'),
+ })
+
+ actions.run_and_verify_update(wc_dir, expected_output, expected_disk,
+ expected_status, None, None, None, None, None, False, wc_dir)
+
# Remove the file which caused the obstruction.
#print "Removing obstruction"
@@ -2176,36 +2186,97 @@ def forced_update_failures(sbox):
# A forced update that tries to add a directory when an unversioned file
# of the same name already exists should fail.
- C_Path = os.path.join(wc_backup, 'A', 'C')
- svntest.actions.run_and_verify_update(C_Path, None, None, None,
- ".*Failed to add directory.*" + \
- "a non-directory object of the " + \
- "same name already exists",
- None, None, None, None, 0, C_Path,
- '--force')
-
- # Clean-up what we have done so far. Remove the unversioned file A/C/I
- # and the unversioned directory A/B/F/nu. Then update the backup to
- # r2, except for A/C, update that to r1 so A/C/I isn't present.
- # working copy.
- os.remove(I_path)
- os.rmdir(nu_path)
- svntest.actions.run_and_verify_svn(None, svntest.verify.AnyOutput, [],
- 'up', wc_backup)
- svntest.actions.run_and_verify_svn(None, svntest.verify.AnyOutput, [],
- 'up', '-r', '1', C_Path)
-
- # Checkout %URL%/A/C/I@2 directly to A/C/I. A/C, being at r1, views
- # this as an unversioned object.
- I_url = sbox.repo_url + "/A/C/I"
- exit_code, so, se = svntest.actions.run_and_verify_svn(
- "Unexpected error during co",
- ['Checked out revision 2.\n'], [],
- "co", I_url, I_path)
- svntest.actions.run_and_verify_update(C_Path, None, None, None,
- "Failed to add directory '.*I'.*already exists",
- None, None, None, None, 0, C_Path,
- '--force')
+ # svntest.factory.make(sbox, """
+ # svn up --force wc_dir_backup/A/C
+ # rm -rf wc_dir_backup/A/C/I wc_dir_backup/A/B/F/nu
+ # svn up wc_dir_backup
+ # svn up -r1 wc_dir_backup/A/C
+ # svn co url/A/C/I wc_dir_backup/A/C/I
+ # svn up --force wc_dir_backup/A/C
+ # """)
+ # exit(0)
+ url = sbox.repo_url
+ wc_dir_backup = sbox.wc_dir + '.backup'
+
+ backup_A_B_F_nu = os.path.join(wc_dir_backup, 'A', 'B', 'F', 'nu')
+ backup_A_C = os.path.join(wc_dir_backup, 'A', 'C')
+ backup_A_C_I = os.path.join(wc_dir_backup, 'A', 'C', 'I')
+ url_A_C_I = url + '/A/C/I'
+
+ # svn up --force wc_dir_backup/A/C
+ expected_output = svntest.wc.State(wc_dir_backup, {
+ 'A/C/I' : Item(status=' ', treeconflict='C'),
+ })
+
+ expected_disk = svntest.main.greek_state.copy()
+ expected_disk.add({
+ 'A/B/F/nu' : Item(),
+ 'A/C/I' :
+ Item(contents="This is the file 'I'...shouldn't I be a dir?\n"),
+ })
+
+ expected_status = actions.get_virginal_state(wc_dir_backup, 1)
+ expected_status.add({
+ 'A/C/I' : Item(status='? ', treeconflict='C'),
+ 'A/B/F/nu' : Item(status='? ', treeconflict='C'),
+ })
+ expected_status.tweak('A/C', 'A/B/F', wc_rev='2')
+
+ actions.run_and_verify_update(wc_dir_backup, expected_output,
+ expected_disk, expected_status, None, None, None, None, None, False,
+ '--force', backup_A_C)
+
+ # rm -rf wc_dir_backup/A/C/I wc_dir_backup/A/B/F/nu
+ os.remove(backup_A_C_I)
+ svntest.main.safe_rmtree(backup_A_B_F_nu)
+
+ # svn up wc_dir_backup
+ expected_output = svntest.wc.State(wc_dir_backup, {
+ 'A/C/I' : Item(status='A '),
+ 'A/B/F/nu' : Item(status='A '),
+ })
+
+ expected_disk.tweak('A/B/F/nu', contents="This is the file 'nu'\n")
+ expected_disk.tweak('A/C/I', contents=None)
+
+ expected_status.tweak(wc_rev='2', status=' ')
+ expected_status.tweak('A/C/I', 'A/B/F/nu', treeconflict=None)
+
+ actions.run_and_verify_update(wc_dir_backup, expected_output,
+ expected_disk, expected_status, None, None, None, None, None, False,
+ wc_dir_backup)
+
+ # svn up -r1 wc_dir_backup/A/C
+ expected_output = svntest.wc.State(wc_dir_backup, {
+ 'A/C/I' : Item(status='D '),
+ })
+
+ expected_disk.remove('A/C/I')
+
+ expected_status.remove('A/C/I')
+ expected_status.tweak('A/C', wc_rev='1')
+
+ actions.run_and_verify_update(wc_dir_backup, expected_output,
+ expected_disk, expected_status, None, None, None, None, None, False,
+ '-r1', backup_A_C)
+
+ # svn co url/A/C/I wc_dir_backup/A/C/I
+ expected_output = svntest.wc.State(wc_dir_backup, {})
+
+ expected_disk = svntest.wc.State(wc_dir, {})
+
+ actions.run_and_verify_checkout2(False, url_A_C_I, backup_A_C_I,
+ expected_output, expected_disk, None, None, None, None)
+
+ # svn up --force wc_dir_backup/A/C
+ expected_error = (
+ "svn: Failed to add directory .*I.*working copy with the same name "
+ + "already exists"
+ )
+
+ actions.run_and_verify_update(wc_dir_backup, None, None, None,
+ expected_error, None, None, None, None, False, '--force', backup_A_C)
+
#----------------------------------------------------------------------
# Test for issue #2556. The tests maps a virtual drive to a working copy
Modified: subversion/branches/atomic-revprop/subversion/tests/libsvn_wc/db-test.c
URL: http://svn.apache.org/viewvc/subversion/branches/atomic-revprop/subversion/tests/libsvn_wc/db-test.c?rev=967221&r1=967220&r2=967221&view=diff
==============================================================================
--- subversion/branches/atomic-revprop/subversion/tests/libsvn_wc/db-test.c (original)
+++ subversion/branches/atomic-revprop/subversion/tests/libsvn_wc/db-test.c Fri Jul 23 19:37:19 2010
@@ -321,9 +321,13 @@ create_fake_wc(const char *subdir, int f
svn_sqlite__db_t *sdb;
const char * const my_statements[] = {
statements[STMT_CREATE_SCHEMA],
+#ifdef SVN_WC__NODE_DATA
+ statements[STMT_CREATE_NODE_DATA],
+#endif
TESTING_DATA,
NULL
};
+ int i;
SVN_ERR(svn_io_make_dir_recursively(dirpath, scratch_pool));
svn_error_clear(svn_io_remove_file(dbpath, scratch_pool));
@@ -332,11 +336,8 @@ create_fake_wc(const char *subdir, int f
0, NULL,
scratch_pool, scratch_pool));
- /* Create the database's schema. */
- SVN_ERR(svn_sqlite__exec_statements(sdb, /* my_statements[] */ 0));
-
- /* Throw our extra data into the database. */
- SVN_ERR(svn_sqlite__exec_statements(sdb, /* my_statements[] */ 1));
+ for (i = 0; my_statements[i] != NULL; i++)
+ SVN_ERR(svn_sqlite__exec_statements(sdb, /* my_statements[] */ i));
return SVN_NO_ERROR;
}
Modified: subversion/branches/atomic-revprop/subversion/tests/libsvn_wc/entries-compat.c
URL: http://svn.apache.org/viewvc/subversion/branches/atomic-revprop/subversion/tests/libsvn_wc/entries-compat.c?rev=967221&r1=967220&r2=967221&view=diff
==============================================================================
--- subversion/branches/atomic-revprop/subversion/tests/libsvn_wc/entries-compat.c (original)
+++ subversion/branches/atomic-revprop/subversion/tests/libsvn_wc/entries-compat.c Fri Jul 23 19:37:19 2010
@@ -337,6 +337,7 @@ make_one_db(const char *dirpath,
{
const char *dbpath = svn_dirent_join(dirpath, "wc.db", scratch_pool);
svn_sqlite__db_t *sdb;
+ int i;
/* Create fake-wc/SUBDIR/.svn/ for placing the metadata. */
SVN_ERR(svn_io_make_dir_recursively(dirpath, scratch_pool));
@@ -347,11 +348,8 @@ make_one_db(const char *dirpath,
0, NULL,
scratch_pool, scratch_pool));
- /* Create the database's schema. */
- SVN_ERR(svn_sqlite__exec_statements(sdb, /* my_statements[] */ 0));
-
- /* Throw our extra data into the database. */
- SVN_ERR(svn_sqlite__exec_statements(sdb, /* my_statements[] */ 1));
+ for (i = 0; my_statements[i] != NULL; i++)
+ SVN_ERR(svn_sqlite__exec_statements(sdb, /* my_statements[] */ i));
return SVN_NO_ERROR;
}
@@ -364,11 +362,17 @@ create_fake_wc(const char *subdir, int f
const char *dirpath;
const char * const my_statements[] = {
statements[STMT_CREATE_SCHEMA],
+#ifdef SVN_WC__NODE_DATA
+ statements[STMT_CREATE_NODE_DATA],
+#endif
TESTING_DATA,
NULL
};
const char * const M_statements[] = {
statements[STMT_CREATE_SCHEMA],
+#ifdef SVN_WC__NODE_DATA
+ statements[STMT_CREATE_NODE_DATA],
+#endif
M_TESTING_DATA,
NULL
};
@@ -536,6 +540,7 @@ test_access_baton_like_locking(apr_pool_
const char *D, *D1, *D2, *D3, *D4;
svn_boolean_t locked_here, locked;
svn_error_t *err;
+ svn_wc_adm_access_t *adm_access, *subdir_access;
#undef WC_NAME
#define WC_NAME "test_access_batons"
@@ -550,6 +555,28 @@ test_access_baton_like_locking(apr_pool_
SVN_ERR(svn_io_make_dir_recursively(D4, pool));
+ /* Use the legacy interface */
+ SVN_ERR(svn_wc_adm_open3(&adm_access, NULL, local_abspath, TRUE, 0,
+ NULL, NULL, pool));
+ SVN_ERR(svn_wc_add3(D, adm_access, svn_depth_infinity, NULL,
+ SVN_INVALID_REVNUM, NULL, NULL, NULL, NULL, pool));
+ SVN_ERR(svn_wc_adm_retrieve(&subdir_access, adm_access, D, pool));
+ SVN_ERR(svn_wc_add3(D1, subdir_access, svn_depth_infinity, NULL,
+ SVN_INVALID_REVNUM, NULL, NULL, NULL, NULL, pool));
+ SVN_ERR(svn_wc_adm_retrieve(&subdir_access, adm_access, D1, pool));
+ SVN_ERR(svn_wc_add3(D2, subdir_access, svn_depth_infinity, NULL,
+ SVN_INVALID_REVNUM, NULL, NULL, NULL, NULL, pool));
+ SVN_ERR(svn_wc_adm_retrieve(&subdir_access, adm_access, D2, pool));
+ SVN_ERR(svn_wc_add3(D3, subdir_access, svn_depth_infinity, NULL,
+ SVN_INVALID_REVNUM, NULL, NULL, NULL, NULL, pool));
+ SVN_ERR(svn_wc_locked(&locked, D3, pool));
+ SVN_TEST_ASSERT(locked);
+ SVN_ERR(svn_wc_revert3(D, adm_access, -1, FALSE,
+ NULL, NULL, NULL, NULL, NULL, pool));
+ SVN_ERR(svn_wc_locked(&locked, D3, pool));
+ SVN_TEST_ASSERT(!locked);
+ SVN_ERR(svn_wc_adm_close2(adm_access, pool));
+
SVN_ERR(svn_wc_context_create(&wc_ctx, NULL, pool, pool));
/* Obtain a lock for the root, which is extended on each level */
Modified: subversion/branches/atomic-revprop/tools/buildbot/slaves/win32-SharpSvn/svntest-bindings.cmd
URL: http://svn.apache.org/viewvc/subversion/branches/atomic-revprop/tools/buildbot/slaves/win32-SharpSvn/svntest-bindings.cmd?rev=967221&r1=967220&r2=967221&view=diff
==============================================================================
--- subversion/branches/atomic-revprop/tools/buildbot/slaves/win32-SharpSvn/svntest-bindings.cmd (original)
+++ subversion/branches/atomic-revprop/tools/buildbot/slaves/win32-SharpSvn/svntest-bindings.cmd Fri Jul 23 19:37:19 2010
@@ -23,6 +23,12 @@ SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDE
CALL ..\svn-config.cmd
IF ERRORLEVEL 1 EXIT /B 1
+svnversion . /1.6.x | find "S" > nul:
+IF ERRORLEVEL 1 (
+ ECHO --- Building 1.6.x: Skipping bindings ---
+ EXIT /B 0
+)
+
IF EXIST "%TESTDIR%\swig" rmdir /s /q "%TESTDIR%\swig"
mkdir "%TESTDIR%\swig\py-release\libsvn"
mkdir "%TESTDIR%\swig\py-release\svn"
@@ -35,5 +41,13 @@ xcopy "subversion\bindings\swig\python\s
PATH %PATH%;%TESTDIR%\bin
SET PYTHONPATH=%TESTDIR%\swig\py-release
+SET result=0
+
python subversion\bindings\swig\python\tests\run_all.py
-IF ERRORLEVEL 1 EXIT /B 1
+IF ERRORLEVEL 1 SET result=1
+
+echo win-tests.py -r -f fsfs --javahl "%TESTDIR%\tests"
+win-tests.py -r -f fsfs --javahl "%TESTDIR%\tests"
+IF ERRORLEVEL 1 SET result=1
+
+exit /b %RESULT%
Modified: subversion/branches/atomic-revprop/tools/buildbot/slaves/win32-SharpSvn/svntest-build-bindings.cmd
URL: http://svn.apache.org/viewvc/subversion/branches/atomic-revprop/tools/buildbot/slaves/win32-SharpSvn/svntest-build-bindings.cmd?rev=967221&r1=967220&r2=967221&view=diff
==============================================================================
--- subversion/branches/atomic-revprop/tools/buildbot/slaves/win32-SharpSvn/svntest-build-bindings.cmd (original)
+++ subversion/branches/atomic-revprop/tools/buildbot/slaves/win32-SharpSvn/svntest-build-bindings.cmd Fri Jul 23 19:37:19 2010
@@ -23,5 +23,11 @@ SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDE
CALL ..\svn-config.cmd
IF ERRORLEVEL 1 EXIT /B 1
+svnversion . /1.6.x | find "S" > nul:
+IF ERRORLEVEL 1 (
+ ECHO --- Building 1.6.x: Skipping bindings ---
+ EXIT /B 0
+)
+
msbuild subversion_vcnet.sln /p:Configuration=Release /p:Platform=win32 /t:__JAVAHL__ /t:__SWIG_PYTHON__ /t:__SWIG_PERL__ /t:__JAVAHL_TESTS__
IF ERRORLEVEL 1 EXIT /B 1
Modified: subversion/branches/atomic-revprop/tools/client-side/svn-viewspec.py
URL: http://svn.apache.org/viewvc/subversion/branches/atomic-revprop/tools/client-side/svn-viewspec.py?rev=967221&r1=967220&r2=967221&view=diff
==============================================================================
--- subversion/branches/atomic-revprop/tools/client-side/svn-viewspec.py (original)
+++ subversion/branches/atomic-revprop/tools/client-side/svn-viewspec.py Fri Jul 23 19:37:19 2010
@@ -20,9 +20,10 @@
# ====================================================================
"""\
-Usage: 1. __SCRIPTNAME__ VIEWSPEC-FILE TARGET-DIR
- 2. __SCRIPTNAME__ VIEWSPEC-FILE --dump-tree
- 3. __SCRIPTNAME__ --help
+Usage: 1. __SCRIPTNAME__ checkout VIEWSPEC-FILE TARGET-DIR
+ 2. __SCRIPTNAME__ examine VIEWSPEC-FILE
+ 3. __SCRIPTNAME__ help
+ 4. __SCRIPTNAME__ help-format
VIEWSPEC-FILE is the path of a file whose contents describe a
Subversion sparse checkouts layout, or '-' if that description should
@@ -34,9 +35,14 @@ by this script as it checks out the spec
2. Parse VIEWSPEC-FILE and dump out a human-readable representation of
the tree described in the specification.
-
+
3. Show this usage message.
+4. Show information about the file format this program expects.
+
+"""
+
+FORMAT_HELP = """\
Viewspec File Format
====================
@@ -93,7 +99,7 @@ script in conjunction with 'svn cat' to
versioned viewspec file:
$ svn cat http://svn.example.com/specs/dev-spec.txt |
- __SCRIPTNAME__ - /path/to/target/directory
+ __SCRIPTNAME__ checkout - /path/to/target/directory
"""
@@ -294,32 +300,47 @@ def checkout_spec(viewspec, target_dir):
viewspec.tree,
target_dir)
+def usage_and_exit(errmsg=None):
+ stream = errmsg and sys.stderr or sys.stdout
+ msg = __doc__.replace("__SCRIPTNAME__", os.path.basename(sys.argv[0]))
+ stream.write(msg)
+ if errmsg:
+ stream.write("ERROR: %s\n" % (errmsg))
+ sys.exit(errmsg and 1 or 0)
+
def main():
- if len(sys.argv) < 3 or '--help' in sys.argv:
- msg = __doc__.replace("__SCRIPTNAME__", os.path.basename(sys.argv[0]))
- sys.stderr.write(msg)
- sys.exit(1)
- if sys.argv[1] == '-':
- fp = sys.stdin
- else:
- fp = open(sys.argv[1], 'r')
- if sys.argv[2] == '--dump-tree':
- target_dir = None
- else:
- target_dir = sys.argv[2]
-
- viewspec = parse_viewspec(fp)
- if target_dir is None:
- sys.stderr.write("Url: %s\n" % (viewspec.base_url))
+ argc = len(sys.argv)
+ if argc < 2:
+ usage_and_exit('Not enough arguments.')
+ subcommand = sys.argv[1]
+ if subcommand == 'help':
+ usage_and_exit()
+ elif subcommand == 'help-format':
+ msg = FORMAT_HELP.replace("__SCRIPTNAME__",
+ os.path.basename(sys.argv[0]))
+ sys.stdout.write(msg)
+ elif subcommand == 'examine':
+ if argc < 3:
+ usage_and_exit('No viewspec file specified.')
+ fp = (sys.argv[2] == '-') and sys.stdin or open(sys.argv[2], 'r')
+ viewspec = parse_viewspec(fp)
+ sys.stdout.write("Url: %s\n" % (viewspec.base_url))
revision = viewspec.revision
if revision != -1:
- sys.stderr.write("Revision: %s\n" % (revision))
+ sys.stdout.write("Revision: %s\n" % (revision))
else:
- sys.stderr.write("Revision: HEAD\n")
- sys.stderr.write("\n")
+ sys.stdout.write("Revision: HEAD\n")
+ sys.stdout.write("\n")
viewspec.tree.dump(True)
+ elif subcommand == 'checkout':
+ if argc < 3:
+ usage_and_exit('No viewspec file specified.')
+ if argc < 4:
+ usage_and_exit('No target directory specified.')
+ fp = (sys.argv[2] == '-') and sys.stdin or open(sys.argv[2], 'r')
+ checkout_spec(parse_viewspec(fp), sys.argv[3])
else:
- checkout_spec(viewspec, target_dir)
-
+ usage_and_exit('Unknown subcommand "%s".' % (subcommand))
+
if __name__ == "__main__":
main()
Modified: subversion/branches/atomic-revprop/tools/dev/unix-build/Makefile.svn
URL: http://svn.apache.org/viewvc/subversion/branches/atomic-revprop/tools/dev/unix-build/Makefile.svn?rev=967221&r1=967220&r2=967221&view=diff
==============================================================================
--- subversion/branches/atomic-revprop/tools/dev/unix-build/Makefile.svn (original)
+++ subversion/branches/atomic-revprop/tools/dev/unix-build/Makefile.svn Fri Jul 23 19:37:19 2010
@@ -2,31 +2,6 @@
#
# WARNING: This may or may not work on your system. This Makefile is
# an example, rather than a ready-made universal solution.
-#
-# This Makefile builds and installs Subversion, and many of its
-# dependencies, on UNIX-like systems, in the current working directory.
-# Indirect dependencies are not covered, e.g. you need OpenSSL installed
-# to get SSL support in neon and serf.
-#
-# The Makefile can also run Subversion's regression test suite via all
-# repository backends and RA methods. It generates the necessary configuration
-# files and starts svnserve and httpd daemons automatically on non-privileged
-# ports.
-#
-# Some version of Subversion is required to be in $PATH and will be used
-# to check out working copies.
-#
-# The default is to compile trunk.
-# Pass the branch you want to build in BRANCH, e.g.
-# $ make BRANCH="1.5.x"
-# You can also pass a tag to build:
-# $ make TAG="1.6.6"
-# And you can specify a working copy to use, in case you need more
-# than one working copy of the same branch:
-# $ make BRANCH="1.6.x" WC="1.6.x-test2"
-#
-# After the build, point your PATH to the Subversion build you want to use.
-# Note that this Makefile requires GNU make.
ENABLE_PYTHON_BINDINGS ?= yes
ENABLE_RUBY_BINDINGS ?= yes
@@ -84,8 +59,8 @@ FETCH_CMD = wget -c
SUBVERSION_REPOS_URL = https://svn.apache.org/repos/asf/subversion
BDB_URL = http://ftp2.de.freebsd.org/pub/FreeBSD/distfiles/bdb/$(BDB_DIST)
APR_URL = http://svn.apache.org/repos/asf/apr/apr
-APR_ICONV_URL = ftp://ftp.fu-berlin.de/unix/www/apache/apr/$(APR_ICONV_DIST)
-GNU_ICONV_URL = ftp://ftp.fu-berlin.de/unix/gnu/libiconv/$(GNU_ICONV_DIST)
+APR_ICONV_URL = http://www.apache.org/dist/apr/$(APR_ICONV_DIST)
+GNU_ICONV_URL = http://ftp.gnu.org/pub/gnu/libiconv/$(GNU_ICONV_DIST)
APR_UTIL_URL = http://svn.apache.org/repos/asf/apr/apr-util
HTTPD_URL = http://archive.apache.org/dist/httpd/$(HTTPD_DIST)
NEON_URL = http://webdav.org/neon/$(NEON_DIST)
Modified: subversion/branches/atomic-revprop/win-tests.py
URL: http://svn.apache.org/viewvc/subversion/branches/atomic-revprop/win-tests.py?rev=967221&r1=967220&r2=967221&view=diff
==============================================================================
--- subversion/branches/atomic-revprop/win-tests.py (original)
+++ subversion/branches/atomic-revprop/win-tests.py Fri Jul 23 19:37:19 2010
@@ -27,7 +27,7 @@ For a list of options, run this script w
# $HeadURL$
# $LastChangedRevision$
-import os, sys
+import os, sys, subprocess
import filecmp
import shutil
import traceback
@@ -76,6 +76,7 @@ def _usage_exit():
print(" --httpd-daemon : Run Apache httpd as daemon")
print(" --httpd-service : Run Apache httpd as Windows service (default)")
print(" --http-library : dav library to use, neon (default) or serf")
+ print(" --javahl : Run the javahl tests instead of the normal tests")
print(" --list : print test doc strings only")
print(" --enable-sasl : enable Cyrus SASL authentication for")
print(" svnserve")
@@ -115,7 +116,7 @@ opts, args = my_getopt(sys.argv[1:], 'hr
'url=', 'svnserve-args=', 'fs-type=', 'asp.net-hack',
'httpd-dir=', 'httpd-port=', 'httpd-daemon',
'httpd-server', 'http-library=', 'help',
- 'fsfs-packing', 'fsfs-sharding=',
+ 'fsfs-packing', 'fsfs-sharding=', 'javahl',
'list', 'enable-sasl', 'bin=', 'parallel',
'config-file=', 'server-minor-version='])
if len(args) > 1:
@@ -134,6 +135,7 @@ httpd_port = None
httpd_service = None
http_library = 'neon'
list_tests = None
+test_javahl = None
enable_sasl = None
svn_bin = None
parallel = None
@@ -180,6 +182,8 @@ for opt, val in opts:
fsfs_sharding = int(val)
elif opt == '--fsfs-packing':
fsfs_packing = 1
+ elif opt == '--javahl':
+ test_javahl = 1
elif opt == '--list':
list_tests = 1
elif opt == '--enable-sasl':
@@ -642,25 +646,65 @@ else:
print('Testing %s configuration on %s' % (objdir, repo_loc))
sys.path.insert(0, os.path.join(abs_srcdir, 'build'))
-import run_tests
-th = run_tests.TestHarness(abs_srcdir, abs_builddir,
- os.path.join(abs_builddir, log),
- os.path.join(abs_builddir, faillog),
- base_url, fs_type, http_library,
- server_minor_version, 1, cleanup,
- enable_sasl, parallel, config_file,
- fsfs_sharding, fsfs_packing,
- list_tests, svn_bin)
-old_cwd = os.getcwd()
-try:
- os.chdir(abs_builddir)
- failed = th.run(tests_to_run)
-except:
- os.chdir(old_cwd)
- raise
-else:
- os.chdir(old_cwd)
+if not test_javahl:
+ import run_tests
+ th = run_tests.TestHarness(abs_srcdir, abs_builddir,
+ os.path.join(abs_builddir, log),
+ os.path.join(abs_builddir, faillog),
+ base_url, fs_type, http_library,
+ server_minor_version, 1, cleanup,
+ enable_sasl, parallel, config_file,
+ fsfs_sharding, fsfs_packing,
+ list_tests, svn_bin)
+ old_cwd = os.getcwd()
+ try:
+ os.chdir(abs_builddir)
+ failed = th.run(tests_to_run)
+ except:
+ os.chdir(old_cwd)
+ raise
+ else:
+ os.chdir(old_cwd)
+else:
+ failed = False
+ args = (
+ 'java.exe',
+ '-Dtest.rootdir=' + os.path.join(abs_builddir, 'javahl'),
+ '-Dtest.srcdir=' + os.path.join(abs_srcdir,
+ 'subversion/bindings/javahl'),
+ '-Dtest.rooturl=',
+ '-Dtest.fstype=' + fs_type ,
+ '-Dtest.tests=',
+
+ '-Djava.library.path='
+ + os.path.join(abs_objdir,
+ 'subversion/bindings/javahl/native'),
+ '-classpath',
+ os.path.join(abs_srcdir, 'subversion/bindings/javahl/classes') +';' +
+ gen_obj.junit_path
+ )
+
+ sys.stderr.flush()
+ print('Running org.apache.subversion tests:')
+ sys.stdout.flush()
+
+ r = subprocess.call(args + tuple(['org.apache.subversion.javahl.RunTests']))
+ sys.stdout.flush()
+ sys.stderr.flush()
+ if (r != 0):
+ print('[Test runner reported failure]')
+ failed = True
+
+ print('Running org.tigris.subversion tests:')
+ sys.stdout.flush()
+ r = subprocess.call(args + tuple(['org.tigris.subversion.javahl.RunTests']))
+ sys.stdout.flush()
+ sys.stderr.flush()
+ if (r != 0):
+ print('[Test runner reported failure]')
+ failed = True
+
# Stop service daemon, if any
if daemon:
del daemon