Index: trunk/doc/RUNNING_TESTS
===================================================================
--- trunk/doc/RUNNING_TESTS	(nonexistent)
+++ trunk/doc/RUNNING_TESTS	(revision 951)
@@ -0,0 +1,13 @@
+Creating test repositories
+===================
+
+mkdir tmp/test
+
+Subversion
+----------
+svnadmin create tmp/test/subversion_repository
+gunzip < test/fixtures/repositories/subversion_repository.dump.gz | svnadmin load tmp/test/subversion_repository
+
+Bazaar
+------
+gunzip < test/fixtures/repositories/bazaar_repository.tar.gz | tar -xv -C tmp/test
\ No newline at end of file

Property changes on: trunk/doc/RUNNING_TESTS
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Index: trunk/test/fixtures/repositories/subversion_repository.dump
===================================================================
--- trunk/test/fixtures/repositories/subversion_repository.dump	(revision 950)
+++ trunk/test/fixtures/repositories/subversion_repository.dump	(nonexistent)
@@ -1,536 +0,0 @@
-SVN-fs-dump-format-version: 2
-
-UUID: 54439772-bf7c-654d-b6c6-528e40cb36d2
-
-Revision-number: 0
-Prop-content-length: 56
-Content-length: 56
-
-K 8
-svn:date
-V 27
-2007-09-10T16:46:04.453125Z
-PROPS-END
-
-Revision-number: 1
-Prop-content-length: 112
-Content-length: 112
-
-K 7
-svn:log
-V 15
-Initial import.
-K 10
-svn:author
-V 2
-jp
-K 8
-svn:date
-V 27
-2007-09-10T16:54:38.484000Z
-PROPS-END
-
-Node-path: subversion_test
-Node-kind: dir
-Node-action: add
-Prop-content-length: 10
-Content-length: 10
-
-PROPS-END
-
-
-Revision-number: 2
-Prop-content-length: 112
-Content-length: 112
-
-K 7
-svn:log
-V 15
-Initial import.
-K 10
-svn:author
-V 2
-jp
-K 8
-svn:date
-V 27
-2007-09-10T16:54:52.203000Z
-PROPS-END
-
-Node-path: subversion_test/.project
-Node-kind: file
-Node-action: add
-Prop-content-length: 10
-Text-content-length: 219
-Text-content-md5: 6ca948b340b02ac5ee54c647cc964d9d
-Content-length: 229
-
-PROPS-END
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
-	<name>subversion_test</name>
-	<comment></comment>
-	<projects>
-	</projects>
-	<buildSpec>
-	</buildSpec>
-	<natures>
-	</natures>
-</projectDescription>
-
-
-Node-path: subversion_test/folder
-Node-kind: dir
-Node-action: add
-Prop-content-length: 10
-Content-length: 10
-
-PROPS-END
-
-
-Node-path: subversion_test/folder/greeter.rb
-Node-kind: file
-Node-action: add
-Prop-content-length: 40
-Text-content-length: 227
-Text-content-md5: f6e7a960573db1f6274e48c0a42b520a
-Content-length: 267
-
-K 13
-svn:eol-style
-V 6
-native
-PROPS-END
-# The Greeter class
-class Greeter
-  def initialize(name)
-    @name = name.capitalize
-  end
- 
-  def salute
-    puts "Hello #{@name}!"
-  end
-end
- 
-# Create a new object
-g = Greeter.new("world")
- 
-# Output "Hello World!"
-g.salute
-
-
-Node-path: subversion_test/folder/subfolder
-Node-kind: dir
-Node-action: add
-Prop-content-length: 10
-Content-length: 10
-
-PROPS-END
-
-
-Node-path: subversion_test/folder/subfolder/rubylogo.gif
-Node-kind: file
-Node-action: add
-Prop-content-length: 59
-Text-content-length: 8576
-Text-content-md5: bf864bc5278fd4f4facdf39673bb6d37
-Content-length: 8635
-
-K 13
-svn:mime-type
-V 24
-application/octet-stream
-PROPS-END
-GIF89aKw�����������������������������������������������������������������������������¿����������������������罽���𵵿��絵����賬ﮮ箮���߮�童襥���椝ݥ�������杜���皖���ߚ�敔ݕ����̙�ה����捌ߏ�指���֏�������ߊ�ύ��������zъ�惃�{{ރ�݄z�}z�||Ձ�ss�{x�ss�yv�|z����ur�}{�sr�up�||�lm�ff�sl�qq�lj�jd�kf�jj�me�de�mb�jj�nn�b_�da�da�ff�aZ�ll�\Y�ZS�WP�YY�``�RK�XN�SR�YW�TI�KQ�ZZ�JC�KKfff�GD�C;�JJ�B:�@=�DD�BB�;3�4<�==�99�GG�11�11�/*�::�33�60�**OOO�5+�77�'�)!�))�//�$,�!!�'#�-"� ��"�)&�  �))� ��$���  �???��**�"��))��!������
-
-��
-����333�	��	���	������z�
-����		���	�����		�����}�������	��q��	�|s��|tf!�1,Kw�cH����*\Ȱ�Ç#J�H��ŋ3j�ȱ�Ǐ C�I��ɓ(S�\ɲ�˗0cʜI��͛8s��ɳ�ϟ@�
-J��ѣH�*]ʴ�ӧP�J�J��իX�j�ʵ�ׯ`ÊK��ٳhӪ]˶-�<�`�#N�M���;n�h� ���VH�QDK�;�]U*U+[̀3�.^<Tzp @LZ�<x����PCft	T�V��IC7γgM@��({.��żrT�X#P�6�
-&m۶q�����W/P��s
-�E.mڐ![F�~�rhICg��F���w�h�4�lS�=�h�ރ2	���1���K}�P@�
-i�q�#��(��:����yƨ����8�\x�f��2{@g�aJ6��M���7���2VYRe0��9�(3�2�h���!��2��.�M3K.)͒)���;�ȃ�V���9��Ζ��͡aZ(f��ٰ&3�BM3�4c�4p��͒v�O-4�A	M�a���B��AM��:���s�9׈3
-���h�|T<
-��LZi2�f���w�M��ϳ�>��>	�/�Ī����z뗹��!}f���Zc)��6�9ܜC9�"�R�:O��LK�N
-�k;�lk���*�7`�i!��ua.<!�7�x��4ݱs�9�,<�D�(��2ʄ�QK�B��8Y�H�|�����
-��8�2P $q-@�\��۠s�;���=ш��v�����@J%D;3�5}�J<��s��v���&�c|/`�^.���C#@!)�{�7[�N�|>�
-�t�E	�S�1���DJf�m�
-���M�<�<���vY����bPTQ�`|�FL���Ӈ�C����D4���A4����'u��L2t6��nӊ����3�_���'����q�{���.5�p3o�!�A��q���%9�<L>�L8�6ӕ�V	����(�h`� &�D<���D#�u�'^�r���a���!\�&�'�����SG8�W��j
-�����b���&�j�"�B��+���x���p�=�q�{��~��A�5J˅.9���EC��ػF��a�.��P�2TQ�:����ȣeZQ
-[��<�G���+�0�
-�"��B0�$���sv03��JX�Q<B�h�*ps[����0P	�v�����--$f�4��y��ER�e��ӈ�n�J
-|X�J[h��4�Qj�C���>�qZ>˖��7u�H^����%IgFab�t��`�gJ���'>�1�
-h�V�̦6ρo���\�J��1�%�@B��.`"U�X�97b��Ir��k�%Oǳ�,
-X�)��~�Ә�C���$uh�����!s9�h�� ��_A��_t�8���[~m�y��`�z8��c�0��3�n�h-�$��A֙zիꨩ=���[4��H�v9��Bu �3j��گ&��k�`�@��H~�c#��2G�@�p�d�9=�q���jG%ZC�A��`f��h��x��P\"N}� \8�A�pT��Ds�hBb9���ymlB����zn�)�U�1:ҽ���,ضRX³��,Y��]�.����][�JT!��k\c N��C��@p
-R6h�P!΂���rģ�`.s��-�
-3g�hG��v�����-�2� �ja���*���-H
-��W�D��Lh��孷J�C=|��n�Y5G7l�����@g%<0
-���G ��?`��.���&�MȈ��׳d��-m�9�}��s.�ǌi�
-�6���"ձ�ݖ�nx`M�l����#���Q�=�ю9T�_�H�m�`����{�-�
-R���X ���O�,��L��Ǒˑ�v��Y
-)Ϻ1��eK
-�
-�:��Z{�Kf�T�F���r�9hq� �~�F�E}<�
-Ju��|�;�թ�^<�@_i����m��%�#[^�5�Zf*�6��<=��%�E����[�V���/�U`��s��}����t�G%`4!	`�����Ͷ>Z�."t;���b����#}����@�]�A�wij�a�j>2�8`�f;۝q�(	X@�ì���9�R�uA��-���9
-In�W���7�	B�����P�}CjR��hGx�f8�x�h	T�@r`��]j>'Y�o�:�e����
-}����I���)�k
-_x�y�Ej&ϑ�=0j���j�1>���`C����p��E�5ғ^�ޖ��1�}�xCZ�^Hm�,O�oӟ��ל���8�"z.@��A��`3�b�F����3^jo�T����	A���~���w���pQ��ܱѶ�n�#�|��Q�$`� 7`h`���0k��wG{�2p{�l�u��X�VG�o	�	�"Q��{U"eP
-� 
-��y�Gt2`n�j�
-@�Q>wp>�>��{&~�d�
-o�t*�T-�{!F���x�ve�bb1W��X\ㅬ���`���f��6F�n&Y�
-@i 	E�d�@q��g��"D�	�"��b�oW��W%x�Q^!���i�G-P	��
-�P�� vd��en�U�`	
- t�	TA��A4	�	�@n�'E�w�@	�~�E�a��$&^f,�,�7u��,g�6&���	��ぃ��geGj�������H��PDET
-�0	ŀ����w���-˖oƖ |���uq�"����P�
-טNƍ���d@
-��p	D���aGu�	�0����+C�![�W�����,�&f�wų#�
-��`��V�}����
-y�1�g�U�P��?ĎYG��
-y�G�0n� ��z�V�-��¸�W8�te�W)���eT�P��[�9&�r�
-ɐ�'78vGg	p
-��z�
-����JVs�(E�@tlch�
-�Tiy�]X�We1PR�^[�9��5����QXp�*"�e�x)	z	�b��2e�m*��9��A�I��J΄�wk})���� qC��Mp�_�����w�/ �9��t.���`�K�p<�[�B�9r�Н4D�X �?i��P)�p�j�d�@krb�G�T�����H���"ι�+>��5qU��8�a�X�����	nu�ul%P��Be:9���<�CBRm����	���̀�H7O`k��1�����L*MԤO�����
-�"��0t6x9�D�*nК\���[
-��Q6�H3P�8�RP�y0��	��
-{��0oPxV��M�JMАO��O.՗M�h��ѩְSQfJ��29`C "�p�sZ��P
-�rz�k�r�
-��L�
-�T�.��k�@��GQڜ���}�c�Ge3y��Z0A
- !p:m ?�
-��
-�`~�+O�M�������-�TV���X)�T��S��b
-�`
-2Β��"v��pF+�3�m�9���(�pʧw݂�05+�Veՠ���S
-S���
-���Q<�p�1�� 	��mx���a.B��0��31��]�%�X�����
-��`
-׀
-հpk�W��P����B��	��
-01�4
-P@.@yPt�FF�a&ez*���g[Հ
-D��x������I3*p�@.k�Xtw9�<�
-���|�%e�����{����D��di�q\9o	F/PJЀ
-g��~�/��;h0a4{Hc�[V���Ʈ�
-�����+kA�)ڞ��Hj"K Z[�=P�C;��L�׺FF��Y�0H?��ۛ���Pl��HPMƐ��	ya���_�}q ���
-ѩ�K�y��6�E�Ut��{�Sj
-��X�%����%�2��*�LX�OŲ
-m���}i0�v���	Vj{{G�d���i�J�೵�g�����R�L{*���T�����<l*/�kC|*dY�QQ��~Q�P
-��
-�@_0��s�|��
-&l�E��7��l��k�܋���pñ��i���Zcx�E.f�s�P�F[�P9�s��Z)�����0,L$
-}pZ���(	���}�;�.2H���F��+ô��*���_��P��MQ��f6�ţ�ecbs�eS�!����
-���,	A���P�dƛ��H�C׮�k��P����A,���|\C�I��@ˋ8�EE��v�E�#�5�����1�
-�`���ؑ���d�Y����VWt������Ω��	�Z���E^�	+Y����J�&Xyl�n@���Y΢Q4�h��p�1@�B9�2-�������Tr���'�B��ґ0��R2�	���A[��E3s�I��D5������^��p^���L�r��F
-H��"�_\G�&�Ϟ��\ ��P�OY
-ŀ����*�]j�Zz��;���P	��U6A\<��?���uȕ�<%��<�\2�J[��W�����*,(6���&�[[��,�\2�`\�]Ԅ`���Ǉ%3�ۺ�BÍ�ŭ�A���B��W����ܿ]2��}l��t!�dHp]�����Ͱ	�aG��
-',�~�y�����d�P
-�ͽ���p
-��ZAǦ?��t�m�T6��B 
-��V65���u��U\�i[W6��5�h.\e�Q�#~U��^yN-ڜ��0��1����&�Q�?>� 
-�1�2�%Q:��j)\��2\t<��ϊ�1M�
-�PS���)�}��K�綺Ӷ-���Ή����Po;�&�)g*��Ξ���wP��ba3�ȧ?�[�����-�f���*�'\�u<�^�[
-��s;y��YV�Pg��˟�	�6�=ϛ��YF�F�eމ|ìp3��D+r�P
-�)�Š�
-���~��kU'L=�@��ְ� ��	�@��*(s�-�G�u��b�L��EW�������9�1豮��%�>-X�*�,��ʳ�'6�e������~^��l��u�	�B�����1�����υc',R�҄����V��m��ʶ��������	vp/<��¢c�M�$H�7]xMU���f
-O���%)NނL;a��e�����I��~�i&��em�QV��&����K��sk���\)��"��F������w�ɨ"�dT0$_
-��7��g;��AZ4��SԆ���\�?�<_Ws�/�<���i�[%s��&Q����U<X�?�����4�k"�&8�>_��_�@.��~��1؈���Ԥ�z
-r��<~�F�-�D����ޠ�{
-UP%@�\���]��5�B_���>�pf�f����y�F_x,�@c��Q��3��<X��P��`t��>b4���>7-,���E���qt��A��H��H��6��Q�L�-��l�8t=߽#�
-�kD��k�4i<��ƃ��T{U�1m�T���ռ6��X�X�J�^�u�N	��L}��(@h�>}4,����E��pl��
-��x����e�]�	�#��^BV:�1�}�J>#�EB�'����3Cr�G���{pزi�f�{�>�����bݻ�������	��>����ꂎ����C�I��(�bӦ�Ï�R�N�N�����j������g��,V<��`�Y+WxP/C
-7���г��
-Xh8�D�MD�TTo�O�PD�8|qF�`��Ee�Dk��F;iǸ|�Ǜm���yܱ�u�C����R'*�dJ�*��k�A�h���t1�SN�$�u�YǕ��3O���A/=�4PA%4C�(��v��I��aGs��r)K�ZJK��
-�n��F�`��E�5t�O>i$�t�Y��Bg%�����V]w��<[�j�&�|Rk���+��
-�u�r��g�I'�r�	�k�1&���|�K>���F�Ɨ
-|
-�X0k�]y祷����F�yҝq$Ej����Y�68Zxf�`j��)c�dŕS:�ĐJV9�^�?9d����s���Ir�'YK	��Yi�B�f���u��&_nY��GyAd��F:i<�8�{�q�Iz���e�1eVf��>8��{f���^����5���D0T:n��NZ�@�����y�����-�kF��l����UD�$KQ�?��C�1Ƹ"�(6�<�9�b�G'��^h!Y��[o����o�]�_d���C6�`�
-2� �3ָ<y�/���(�^�1(0�z�Ǔ��Ca��frA�G��>�#:� >~⇟?x6����gs̛��7�1�{D`-��#���d�� �5�!
-f�`�`��3hЃqh�����'C
-��B��-YМ�6�/�a
-e�Bj�Їs��@/<�	K0�ֆ�Z��l��І2���_���.r�_�B�@'�1	Qp���)Xa
-o��Ҙ��ю �`�#�шGԂ��4|������4���,C$%��/PR��B�@Nr2	NHB(���$(�	J@����D!w�e,{e�9(aD�c.��E-t�
-Z�%+Y�KZ�X��/4S���B4�*0����B��n�D�&�� ��Dg:��*ؒA ��pxf���,���OL�Sq�j�ZA
-P`Z&A~��`=�v����5Ё�N��tC'(�
-z����@�A��0F��S�7�&rZ)�ԧ=}����!AEBx�T� 8�AdpT��;�H�gR�v�"xAl�ю���8eZC�P��խn=h��M%�ӮGxgX�T���6��\��ְ,`A
-B�U�r��/�lp�Rv9�75�͆�U�E�QCZ"a��5kjq�����/0l
-\ ��ֶ'@P ������k_��`3iH��\�&��<t���T��9�vo�����.x�
-f[[��&Az�k�� ,��o�{G� ��%n~k�_���J�`�.�����
-` ��3hZ0��@���@��d�(��|E�����&��x[�Ķ�ň�l�|`�
-W��u�
-\0�	��$�zA��
-��E����|`��<q���W�'X�	P�e.w��5~�
-llc����+PA��l6{�o�4�d%[�����l�	P����]�|�������^F7��#(�}�|b_��>f3��g8����D-�����$
-�wЯ�T���z�M�u�u=����W���L�! �" �/Ё4��3�#0�<���6���<�����X�D�X�gv��݆>��k=�Z������.0~�[�ӎ@�~m��0x���6�7ZF0�T�Jf��t��g@(�afw@0��/`�}���ޖ@��m�7`
-X@��s���8��p��c@A& �
-<`O7�0u� �W��W>�g���^��Ѐ�3@Ox�{> �� ܣh�ם^�(`m8<��>x�@@��e�mƏ��g/��%��#���<ؾyγ��ڭ��������퍷~�
-�ի>u�K�����0]�� ��=�e�_W	� p�7���|�gOu�G����}��}�?��'���?�d<0��	��W��ֿ~�������C?~��) ;
-
-Node-path: subversion_test/helloworld.rb
-Node-kind: file
-Node-action: add
-Prop-content-length: 40
-Text-content-length: 173
-Text-content-md5: 43a160386b7ee483c29d539c0913b8a8
-Content-length: 213
-
-K 13
-svn:eol-style
-V 6
-native
-PROPS-END
-# The famous Hello World
-# program is trivial in
-# Ruby. You don't need:
-#
-# * a "main" method
-# * newline escapes
-# * semicolons
-#
-# Here's the code:
- 
-puts "Hello World!"
-
-
-Node-path: subversion_test/textfile.txt
-Node-kind: file
-Node-action: add
-Prop-content-length: 10
-Text-content-length: 858
-Text-content-md5: 03ea5a32eb93a93d73f57c9d4446b8cf
-Content-length: 868
-
-PROPS-END
-Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed non risus.
-Suspendisse lectus tortor, dignissim sit amet, adipiscing nec, ultricies sed, dolor.
-Cras elementum ultrices diam. Maecenas ligula massa, varius a, semper congue, euismod non, mi.
-Proin porttitor, orci nec nonummy molestie, enim est eleifend mi, non fermentum diam nisl sit amet erat.
-Duis semper. Duis arcu massa, scelerisque vitae, consequat in, pretium a, enim. Pellentesque congue.
-Ut in risus volutpat libero pharetra tempor. Cras vestibulum bibendum augue. Praesent egestas leo in pede.
-Praesent blandit odio eu enim. Pellentesque sed dui ut augue blandit sodales.
-Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aliquam nibh.
-Mauris ac mauris sed pede pellentesque fermentum. Maecenas adipiscing ante non diam sodales hendrerit.
-
-
-Revision-number: 3
-Prop-content-length: 145
-Content-length: 145
-
-K 7
-svn:log
-V 48
-2 files modified:
-* helloworld.rb
-* textfile.txt
-K 10
-svn:author
-V 2
-jp
-K 8
-svn:date
-V 27
-2007-09-10T16:56:48.468000Z
-PROPS-END
-
-Node-path: subversion_test/helloworld.rb
-Node-kind: file
-Node-action: change
-Text-content-length: 152
-Text-content-md5: b4d6efe024dd1fce5de9c96a212341d9
-Content-length: 152
-
-# The famous Hello World
-# program is trivial in
-# Ruby. You don't need:
-#
-# * a "main" method
-# * newline escapes
-# * semicolons
- 
-puts "Hello World!"
-
-
-Node-path: subversion_test/textfile.txt
-Node-kind: file
-Node-action: change
-Text-content-length: 756
-Text-content-md5: 167df05d8f87cc2e04bb20aa3abe731d
-Content-length: 756
-
-Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed non risus.
-Suspendisse lectus tortor, dignissim sit amet, adipiscing nec, ultricies sed, dolor.
-Cras elementum ultrices diam. Maecenas ligula massa, varius a, semper congue, euismod non, mi.
-Proin porttitor, orci nec nonummy molestie, enim est eleifend mi, non fermentum diam nisl sit amet erat.
-Ut in risus volutpat libero pharetra tempor. Cras vestibulum bibendum augue. Praesent egestas leo in pede.
-Praesent blandit odio eu enim. Pellentesque sed dui ut augue blandit sodales.
-Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aliquam nibh.
-Mauris ac mauris sed pede pellentesque fermentum. Maecenas adipiscing ante non diam sodales hendrerit.
-
-
-Revision-number: 4
-Prop-content-length: 110
-Content-length: 110
-
-K 7
-svn:log
-V 13
-C file added.
-K 10
-svn:author
-V 2
-jp
-K 8
-svn:date
-V 27
-2007-09-10T16:58:29.875000Z
-PROPS-END
-
-Node-path: subversion_test/helloworld.c
-Node-kind: file
-Node-action: add
-Prop-content-length: 10
-Text-content-length: 92
-Text-content-md5: a0ae86da4c00baeb9546e7addef7723d
-Content-length: 102
-
-PROPS-END
-#include <stdio.h>
-
-int main(void)
-{
-    printf("hello, world\n");
-
-    return 0;
-}
-
-
-Revision-number: 5
-Prop-content-length: 129
-Content-length: 129
-
-K 7
-svn:log
-V 32
-Modified one file in the folder.
-K 10
-svn:author
-V 2
-jp
-K 8
-svn:date
-V 27
-2007-09-10T17:01:08.078000Z
-PROPS-END
-
-Node-path: subversion_test/folder/greeter.rb
-Node-kind: file
-Node-action: change
-Text-content-length: 229
-Text-content-md5: 8cb28f1b0d87596118ccaf87a06b44ed
-Content-length: 229
-
-# The Greeter class
-class Greeter
-  def initialize(name)
-    @name = name.capitalize
-  end
- 
-  def salute
-    puts "Bonjour #{@name}!"
-  end
-end
- 
-# Create a new object
-g = Greeter.new("world")
- 
-# Output "Hello World!"
-g.salute
-
-
-Revision-number: 6
-Prop-content-length: 135
-Content-length: 135
-
-K 7
-svn:log
-V 38
-Moved helloworld.rb from / to /folder.
-K 10
-svn:author
-V 2
-jp
-K 8
-svn:date
-V 27
-2007-09-10T17:01:47.687000Z
-PROPS-END
-
-Node-path: subversion_test/folder/helloworld.rb
-Node-kind: file
-Node-action: add
-Node-copyfrom-rev: 3
-Node-copyfrom-path: subversion_test/helloworld.rb
-
-
-Node-path: subversion_test/helloworld.rb
-Node-action: delete
-
-
-Revision-number: 7
-Prop-content-length: 114
-Content-length: 114
-
-K 7
-svn:log
-V 17
-Removed one file.
-K 10
-svn:author
-V 2
-jp
-K 8
-svn:date
-V 27
-2007-09-10T17:02:16.609000Z
-PROPS-END
-
-Node-path: subversion_test/folder/greeter.rb
-Node-action: delete
-
-
-Revision-number: 8
-Prop-content-length: 138
-Content-length: 138
-
-K 7
-svn:log
-V 41
-This commits references an issue.
-Refs #2
-K 10
-svn:author
-V 2
-jp
-K 8
-svn:date
-V 27
-2007-09-10T17:04:35.859000Z
-PROPS-END
-
-Node-path: subversion_test/helloworld.c
-Node-kind: file
-Node-action: change
-Text-content-length: 90
-Text-content-md5: 8757c8cdd0c061db15ec78fba6a2653c
-Content-length: 90
-
-#include <stdio.h>
-
-int main(void)
-{
-    printf("hello, world\n");
-    return 0;
-}
-
-
Index: trunk/test/fixtures/repositories/bazaar_repository.tar.gz
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream

Property changes on: trunk/test/fixtures/repositories/bazaar_repository.tar.gz
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Index: trunk/test/fixtures/repositories/subversion_repository.dump.gz
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream

Property changes on: trunk/test/fixtures/repositories/subversion_repository.dump.gz
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Index: trunk/test/unit/repository_bazaar_test.rb
===================================================================
--- trunk/test/unit/repository_bazaar_test.rb	(nonexistent)
+++ trunk/test/unit/repository_bazaar_test.rb	(revision 951)
@@ -0,0 +1,87 @@
+# redMine - project management software
+# Copyright (C) 2006-2007  Jean-Philippe Lang
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+# 
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+# 
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+
+require File.dirname(__FILE__) + '/../test_helper'
+
+class RepositoryBazaarTest < Test::Unit::TestCase
+  fixtures :projects
+  
+  # No '..' in the repository path
+  REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + 'tmp/test/bazaar_repository'
+  
+  def setup
+    @project = Project.find(1)
+    assert @repository = Repository::Bazaar.create(:project => @project, :url => "file:///#{REPOSITORY_PATH}")
+  end
+  
+  if File.directory?(REPOSITORY_PATH)  
+    def test_fetch_changesets_from_scratch
+      @repository.fetch_changesets
+      @repository.reload
+      
+      assert_equal 4, @repository.changesets.count
+      assert_equal 9, @repository.changes.count
+      assert_equal 'Initial import', @repository.changesets.find_by_revision(1).comments
+    end
+    
+    def test_fetch_changesets_incremental
+      @repository.fetch_changesets
+      # Remove changesets with revision > 5
+      @repository.changesets.find(:all, :conditions => 'revision > 2').each(&:destroy)
+      @repository.reload
+      assert_equal 2, @repository.changesets.count
+      
+      @repository.fetch_changesets
+      assert_equal 4, @repository.changesets.count
+    end
+    
+    def test_entries
+      entries = @repository.entries
+      assert_equal 2, entries.size
+      
+      assert_equal 'dir', entries[0].kind
+      assert_equal 'directory', entries[0].name
+      
+      assert_equal 'file', entries[1].kind
+      assert_equal 'doc-mkdir.txt', entries[1].name
+    end
+    
+    def test_entries_in_subdirectory
+      entries = @repository.entries('directory')
+      assert_equal 3, entries.size
+
+      assert_equal 'file', entries.last.kind
+      assert_equal 'edit.png', entries.last.name
+    end
+    
+    def test_cat
+      cat = @repository.scm.cat('directory/document.txt')
+      assert cat =~ /Write the contents of a file as of a given revision to standard output/
+    end
+    
+    def test_annotate
+      annotate = @repository.scm.annotate('doc-mkdir.txt')
+      assert_equal 17, annotate.lines.size
+      assert_equal 1, annotate.revisions[0].identifier
+      assert_equal 'jsmith@', annotate.revisions[0].author
+      assert_equal 'mkdir', annotate.lines[0]
+    end
+  else
+    puts "Bazaar test repository NOT FOUND. Skipping tests !!!"
+    def test_fake; assert true end
+  end
+end

Property changes on: trunk/test/unit/repository_bazaar_test.rb
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Index: trunk/test/unit/repository_subversion_test.rb
===================================================================
--- trunk/test/unit/repository_subversion_test.rb	(revision 950)
+++ trunk/test/unit/repository_subversion_test.rb	(revision 951)
@@ -50,6 +50,6 @@
     end
   else
     puts "Subversion test repository NOT FOUND. Skipping tests !!!"
-    def test_fake; assert false end
+    def test_fake; assert true end
   end
 end
