From: Łukasz Rekucki Date: Tue, 22 Sep 2009 13:56:55 +0000 (+0200) Subject: Sample repositories for RAL testing. X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/b2dfa52bb8e6aeb20dd6a9d397d3b87e71aa7a4e Sample repositories for RAL testing. --- diff --git a/lib/wlrepo/tests/data/branched/.hg/00changelog.i b/lib/wlrepo/tests/data/branched/.hg/00changelog.i new file mode 100644 index 00000000..d3a83110 Binary files /dev/null and b/lib/wlrepo/tests/data/branched/.hg/00changelog.i differ diff --git a/lib/wlrepo/tests/data/branched/.hg/branch b/lib/wlrepo/tests/data/branched/.hg/branch new file mode 100644 index 00000000..4ad96d51 --- /dev/null +++ b/lib/wlrepo/tests/data/branched/.hg/branch @@ -0,0 +1 @@ +default diff --git a/lib/wlrepo/tests/data/branched/.hg/branchheads.cache b/lib/wlrepo/tests/data/branched/.hg/branchheads.cache new file mode 100644 index 00000000..6baf99d0 --- /dev/null +++ b/lib/wlrepo/tests/data/branched/.hg/branchheads.cache @@ -0,0 +1,4 @@ +e0fbb8dc3f54c34581848d59a215d1d222a9e891 4 +26ecd403388cce326f6ca1e32625db0651900eb7 default +34d4aa807563b28774bcbe07f6acbb984aa4dc8d personal_tester_valid_file +e0fbb8dc3f54c34581848d59a215d1d222a9e891 personal_tester_file_valid_file diff --git a/lib/wlrepo/tests/data/branched/.hg/dirstate b/lib/wlrepo/tests/data/branched/.hg/dirstate new file mode 100644 index 00000000..9c1a27d7 Binary files /dev/null and b/lib/wlrepo/tests/data/branched/.hg/dirstate differ diff --git a/lib/wlrepo/tests/data/branched/.hg/requires b/lib/wlrepo/tests/data/branched/.hg/requires new file mode 100644 index 00000000..5175383b --- /dev/null +++ b/lib/wlrepo/tests/data/branched/.hg/requires @@ -0,0 +1,3 @@ +revlogv1 +store +fncache diff --git a/lib/wlrepo/tests/data/branched/.hg/store/00changelog.i b/lib/wlrepo/tests/data/branched/.hg/store/00changelog.i new file mode 100644 index 00000000..f7ca4087 Binary files /dev/null and b/lib/wlrepo/tests/data/branched/.hg/store/00changelog.i differ diff --git a/lib/wlrepo/tests/data/branched/.hg/store/00manifest.i b/lib/wlrepo/tests/data/branched/.hg/store/00manifest.i new file mode 100644 index 00000000..997a181d Binary files /dev/null and b/lib/wlrepo/tests/data/branched/.hg/store/00manifest.i differ diff --git a/lib/wlrepo/tests/data/branched/.hg/store/data/.hgignore.i b/lib/wlrepo/tests/data/branched/.hg/store/data/.hgignore.i new file mode 100644 index 00000000..2431023a Binary files /dev/null and b/lib/wlrepo/tests/data/branched/.hg/store/data/.hgignore.i differ diff --git a/lib/wlrepo/tests/data/branched/.hg/store/data/ignored__file.i b/lib/wlrepo/tests/data/branched/.hg/store/data/ignored__file.i new file mode 100644 index 00000000..a6bdf46f Binary files /dev/null and b/lib/wlrepo/tests/data/branched/.hg/store/data/ignored__file.i differ diff --git a/lib/wlrepo/tests/data/branched/.hg/store/data/pub__polish__file.xml.i b/lib/wlrepo/tests/data/branched/.hg/store/data/pub__polish__file.xml.i new file mode 100644 index 00000000..3488bccb Binary files /dev/null and b/lib/wlrepo/tests/data/branched/.hg/store/data/pub__polish__file.xml.i differ diff --git a/lib/wlrepo/tests/data/branched/.hg/store/data/pub__valid__file.xml.i b/lib/wlrepo/tests/data/branched/.hg/store/data/pub__valid__file.xml.i new file mode 100644 index 00000000..fd3c7f7b Binary files /dev/null and b/lib/wlrepo/tests/data/branched/.hg/store/data/pub__valid__file.xml.i differ diff --git a/lib/wlrepo/tests/data/branched/.hg/store/fncache b/lib/wlrepo/tests/data/branched/.hg/store/fncache new file mode 100644 index 00000000..8730267a --- /dev/null +++ b/lib/wlrepo/tests/data/branched/.hg/store/fncache @@ -0,0 +1,4 @@ +data/.hgignore.i +data/ignored_file.i +data/pub_valid_file.xml.i +data/pub_polish_file.xml.i diff --git a/lib/wlrepo/tests/data/branched/.hg/store/undo b/lib/wlrepo/tests/data/branched/.hg/store/undo new file mode 100644 index 00000000..fb22969a Binary files /dev/null and b/lib/wlrepo/tests/data/branched/.hg/store/undo differ diff --git a/lib/wlrepo/tests/data/branched/.hg/undo.branch b/lib/wlrepo/tests/data/branched/.hg/undo.branch new file mode 100644 index 00000000..620a92c9 --- /dev/null +++ b/lib/wlrepo/tests/data/branched/.hg/undo.branch @@ -0,0 +1 @@ +personal_tester_file_valid_file \ No newline at end of file diff --git a/lib/wlrepo/tests/data/branched/.hg/undo.dirstate b/lib/wlrepo/tests/data/branched/.hg/undo.dirstate new file mode 100644 index 00000000..2c1df6a1 Binary files /dev/null and b/lib/wlrepo/tests/data/branched/.hg/undo.dirstate differ diff --git a/lib/wlrepo/tests/data/branched/.hgignore b/lib/wlrepo/tests/data/branched/.hgignore new file mode 100644 index 00000000..e69de29b diff --git a/lib/wlrepo/tests/data/branched/ignored_file b/lib/wlrepo/tests/data/branched/ignored_file new file mode 100644 index 00000000..e69de29b diff --git a/lib/wlrepo/tests/data/branched/pub_polish_file.xml b/lib/wlrepo/tests/data/branched/pub_polish_file.xml new file mode 100644 index 00000000..c7ada58c --- /dev/null +++ b/lib/wlrepo/tests/data/branched/pub_polish_file.xml @@ -0,0 +1 @@ +Gąska! diff --git a/lib/wlrepo/tests/data/branched/pub_valid_file.xml b/lib/wlrepo/tests/data/branched/pub_valid_file.xml new file mode 100644 index 00000000..84321884 --- /dev/null +++ b/lib/wlrepo/tests/data/branched/pub_valid_file.xml @@ -0,0 +1 @@ +Ala ma kota diff --git a/lib/wlrepo/tests/data/branched2/.hg/00changelog.i b/lib/wlrepo/tests/data/branched2/.hg/00changelog.i new file mode 100644 index 00000000..d3a83110 Binary files /dev/null and b/lib/wlrepo/tests/data/branched2/.hg/00changelog.i differ diff --git a/lib/wlrepo/tests/data/branched2/.hg/branch b/lib/wlrepo/tests/data/branched2/.hg/branch new file mode 100644 index 00000000..4ad96d51 --- /dev/null +++ b/lib/wlrepo/tests/data/branched2/.hg/branch @@ -0,0 +1 @@ +default diff --git a/lib/wlrepo/tests/data/branched2/.hg/branchheads.cache b/lib/wlrepo/tests/data/branched2/.hg/branchheads.cache new file mode 100644 index 00000000..87464e7d --- /dev/null +++ b/lib/wlrepo/tests/data/branched2/.hg/branchheads.cache @@ -0,0 +1,5 @@ +9208a537d2f003ccc46a90595e7f0801c6b64d45 7 +26ecd403388cce326f6ca1e32625db0651900eb7 default +34d4aa807563b28774bcbe07f6acbb984aa4dc8d personal_tester_valid_file +9208a537d2f003ccc46a90595e7f0801c6b64d45 personal_admin_file_ala +e0fbb8dc3f54c34581848d59a215d1d222a9e891 personal_tester_file_valid_file diff --git a/lib/wlrepo/tests/data/branched2/.hg/dirstate b/lib/wlrepo/tests/data/branched2/.hg/dirstate new file mode 100644 index 00000000..0f0112fb Binary files /dev/null and b/lib/wlrepo/tests/data/branched2/.hg/dirstate differ diff --git a/lib/wlrepo/tests/data/branched2/.hg/requires b/lib/wlrepo/tests/data/branched2/.hg/requires new file mode 100644 index 00000000..5175383b --- /dev/null +++ b/lib/wlrepo/tests/data/branched2/.hg/requires @@ -0,0 +1,3 @@ +revlogv1 +store +fncache diff --git a/lib/wlrepo/tests/data/branched2/.hg/store/00changelog.i b/lib/wlrepo/tests/data/branched2/.hg/store/00changelog.i new file mode 100644 index 00000000..d5181246 Binary files /dev/null and b/lib/wlrepo/tests/data/branched2/.hg/store/00changelog.i differ diff --git a/lib/wlrepo/tests/data/branched2/.hg/store/00manifest.i b/lib/wlrepo/tests/data/branched2/.hg/store/00manifest.i new file mode 100644 index 00000000..f1311aa2 Binary files /dev/null and b/lib/wlrepo/tests/data/branched2/.hg/store/00manifest.i differ diff --git a/lib/wlrepo/tests/data/branched2/.hg/store/data/.hgignore.i b/lib/wlrepo/tests/data/branched2/.hg/store/data/.hgignore.i new file mode 100644 index 00000000..2431023a Binary files /dev/null and b/lib/wlrepo/tests/data/branched2/.hg/store/data/.hgignore.i differ diff --git a/lib/wlrepo/tests/data/branched2/.hg/store/data/ignored__file.i b/lib/wlrepo/tests/data/branched2/.hg/store/data/ignored__file.i new file mode 100644 index 00000000..a6bdf46f Binary files /dev/null and b/lib/wlrepo/tests/data/branched2/.hg/store/data/ignored__file.i differ diff --git a/lib/wlrepo/tests/data/branched2/.hg/store/data/pub__ala.xml.i b/lib/wlrepo/tests/data/branched2/.hg/store/data/pub__ala.xml.i new file mode 100644 index 00000000..084d15c2 Binary files /dev/null and b/lib/wlrepo/tests/data/branched2/.hg/store/data/pub__ala.xml.i differ diff --git a/lib/wlrepo/tests/data/branched2/.hg/store/data/pub__polish__file.xml.i b/lib/wlrepo/tests/data/branched2/.hg/store/data/pub__polish__file.xml.i new file mode 100644 index 00000000..3488bccb Binary files /dev/null and b/lib/wlrepo/tests/data/branched2/.hg/store/data/pub__polish__file.xml.i differ diff --git a/lib/wlrepo/tests/data/branched2/.hg/store/data/pub__valid__file.xml.i b/lib/wlrepo/tests/data/branched2/.hg/store/data/pub__valid__file.xml.i new file mode 100644 index 00000000..fd3c7f7b Binary files /dev/null and b/lib/wlrepo/tests/data/branched2/.hg/store/data/pub__valid__file.xml.i differ diff --git a/lib/wlrepo/tests/data/branched2/.hg/store/fncache b/lib/wlrepo/tests/data/branched2/.hg/store/fncache new file mode 100644 index 00000000..0e671a68 --- /dev/null +++ b/lib/wlrepo/tests/data/branched2/.hg/store/fncache @@ -0,0 +1,5 @@ +data/.hgignore.i +data/ignored_file.i +data/pub_valid_file.xml.i +data/pub_polish_file.xml.i +data/pub_ala.xml.i diff --git a/lib/wlrepo/tests/data/branched2/.hg/store/undo b/lib/wlrepo/tests/data/branched2/.hg/store/undo new file mode 100644 index 00000000..a0a28337 Binary files /dev/null and b/lib/wlrepo/tests/data/branched2/.hg/store/undo differ diff --git a/lib/wlrepo/tests/data/branched2/.hg/undo.branch b/lib/wlrepo/tests/data/branched2/.hg/undo.branch new file mode 100644 index 00000000..2b1d956b --- /dev/null +++ b/lib/wlrepo/tests/data/branched2/.hg/undo.branch @@ -0,0 +1 @@ +personal_admin_file_ala \ No newline at end of file diff --git a/lib/wlrepo/tests/data/branched2/.hg/undo.dirstate b/lib/wlrepo/tests/data/branched2/.hg/undo.dirstate new file mode 100644 index 00000000..bc31b9ad Binary files /dev/null and b/lib/wlrepo/tests/data/branched2/.hg/undo.dirstate differ diff --git a/lib/wlrepo/tests/data/branched2/.hgignore b/lib/wlrepo/tests/data/branched2/.hgignore new file mode 100644 index 00000000..e69de29b diff --git a/lib/wlrepo/tests/data/branched2/ignored_file b/lib/wlrepo/tests/data/branched2/ignored_file new file mode 100644 index 00000000..e69de29b diff --git a/lib/wlrepo/tests/data/branched2/pub_polish_file.xml b/lib/wlrepo/tests/data/branched2/pub_polish_file.xml new file mode 100644 index 00000000..c7ada58c --- /dev/null +++ b/lib/wlrepo/tests/data/branched2/pub_polish_file.xml @@ -0,0 +1 @@ +Gąska! diff --git a/lib/wlrepo/tests/data/branched2/pub_valid_file.xml b/lib/wlrepo/tests/data/branched2/pub_valid_file.xml new file mode 100644 index 00000000..84321884 --- /dev/null +++ b/lib/wlrepo/tests/data/branched2/pub_valid_file.xml @@ -0,0 +1 @@ +Ala ma kota diff --git a/lib/wlrepo/tests/data/clean/.hg/00changelog.i b/lib/wlrepo/tests/data/clean/.hg/00changelog.i new file mode 100644 index 00000000..d3a83110 Binary files /dev/null and b/lib/wlrepo/tests/data/clean/.hg/00changelog.i differ diff --git a/lib/wlrepo/tests/data/clean/.hg/dirstate b/lib/wlrepo/tests/data/clean/.hg/dirstate new file mode 100644 index 00000000..b0aa1e64 Binary files /dev/null and b/lib/wlrepo/tests/data/clean/.hg/dirstate differ diff --git a/lib/wlrepo/tests/data/clean/.hg/requires b/lib/wlrepo/tests/data/clean/.hg/requires new file mode 100644 index 00000000..5175383b --- /dev/null +++ b/lib/wlrepo/tests/data/clean/.hg/requires @@ -0,0 +1,3 @@ +revlogv1 +store +fncache diff --git a/lib/wlrepo/tests/data/clean/.hg/store/00changelog.i b/lib/wlrepo/tests/data/clean/.hg/store/00changelog.i new file mode 100644 index 00000000..45c1c461 Binary files /dev/null and b/lib/wlrepo/tests/data/clean/.hg/store/00changelog.i differ diff --git a/lib/wlrepo/tests/data/clean/.hg/store/00manifest.i b/lib/wlrepo/tests/data/clean/.hg/store/00manifest.i new file mode 100644 index 00000000..ed99f61a Binary files /dev/null and b/lib/wlrepo/tests/data/clean/.hg/store/00manifest.i differ diff --git a/lib/wlrepo/tests/data/clean/.hg/store/data/.hgignore.i b/lib/wlrepo/tests/data/clean/.hg/store/data/.hgignore.i new file mode 100644 index 00000000..2431023a Binary files /dev/null and b/lib/wlrepo/tests/data/clean/.hg/store/data/.hgignore.i differ diff --git a/lib/wlrepo/tests/data/clean/.hg/store/data/ignored__file.i b/lib/wlrepo/tests/data/clean/.hg/store/data/ignored__file.i new file mode 100644 index 00000000..a6bdf46f Binary files /dev/null and b/lib/wlrepo/tests/data/clean/.hg/store/data/ignored__file.i differ diff --git a/lib/wlrepo/tests/data/clean/.hg/store/data/pub__valid__file.xml.i b/lib/wlrepo/tests/data/clean/.hg/store/data/pub__valid__file.xml.i new file mode 100644 index 00000000..a6bdf46f Binary files /dev/null and b/lib/wlrepo/tests/data/clean/.hg/store/data/pub__valid__file.xml.i differ diff --git a/lib/wlrepo/tests/data/clean/.hg/store/fncache b/lib/wlrepo/tests/data/clean/.hg/store/fncache new file mode 100644 index 00000000..a1607dd1 --- /dev/null +++ b/lib/wlrepo/tests/data/clean/.hg/store/fncache @@ -0,0 +1,3 @@ +data/.hgignore.i +data/ignored_file.i +data/pub_valid_file.xml.i diff --git a/lib/wlrepo/tests/data/clean/.hg/store/undo b/lib/wlrepo/tests/data/clean/.hg/store/undo new file mode 100644 index 00000000..90d4cb1d Binary files /dev/null and b/lib/wlrepo/tests/data/clean/.hg/store/undo differ diff --git a/lib/wlrepo/tests/data/clean/.hg/undo.branch b/lib/wlrepo/tests/data/clean/.hg/undo.branch new file mode 100644 index 00000000..331d858c --- /dev/null +++ b/lib/wlrepo/tests/data/clean/.hg/undo.branch @@ -0,0 +1 @@ +default \ No newline at end of file diff --git a/lib/wlrepo/tests/data/clean/.hg/undo.dirstate b/lib/wlrepo/tests/data/clean/.hg/undo.dirstate new file mode 100644 index 00000000..1d0af27f Binary files /dev/null and b/lib/wlrepo/tests/data/clean/.hg/undo.dirstate differ diff --git a/lib/wlrepo/tests/data/clean/.hgignore b/lib/wlrepo/tests/data/clean/.hgignore new file mode 100644 index 00000000..e69de29b diff --git a/lib/wlrepo/tests/data/clean/ignored_file b/lib/wlrepo/tests/data/clean/ignored_file new file mode 100644 index 00000000..e69de29b diff --git a/lib/wlrepo/tests/data/clean/pub_valid_file.xml b/lib/wlrepo/tests/data/clean/pub_valid_file.xml new file mode 100644 index 00000000..e69de29b diff --git a/lib/wlrepo/tests/data/merged/.hg/00changelog.i b/lib/wlrepo/tests/data/merged/.hg/00changelog.i new file mode 100644 index 00000000..d3a83110 Binary files /dev/null and b/lib/wlrepo/tests/data/merged/.hg/00changelog.i differ diff --git a/lib/wlrepo/tests/data/merged/.hg/branch b/lib/wlrepo/tests/data/merged/.hg/branch new file mode 100644 index 00000000..4ad96d51 --- /dev/null +++ b/lib/wlrepo/tests/data/merged/.hg/branch @@ -0,0 +1 @@ +default diff --git a/lib/wlrepo/tests/data/merged/.hg/branchheads.cache b/lib/wlrepo/tests/data/merged/.hg/branchheads.cache new file mode 100644 index 00000000..3a33d42c --- /dev/null +++ b/lib/wlrepo/tests/data/merged/.hg/branchheads.cache @@ -0,0 +1,5 @@ +c0c0576584c8b0c74c7efd4aac52da3af0ee16a9 8 +c0c0576584c8b0c74c7efd4aac52da3af0ee16a9 default +34d4aa807563b28774bcbe07f6acbb984aa4dc8d personal_tester_valid_file +9208a537d2f003ccc46a90595e7f0801c6b64d45 personal_admin_file_ala +e0fbb8dc3f54c34581848d59a215d1d222a9e891 personal_tester_file_valid_file diff --git a/lib/wlrepo/tests/data/merged/.hg/dirstate b/lib/wlrepo/tests/data/merged/.hg/dirstate new file mode 100644 index 00000000..0bd4bce4 Binary files /dev/null and b/lib/wlrepo/tests/data/merged/.hg/dirstate differ diff --git a/lib/wlrepo/tests/data/merged/.hg/requires b/lib/wlrepo/tests/data/merged/.hg/requires new file mode 100644 index 00000000..5175383b --- /dev/null +++ b/lib/wlrepo/tests/data/merged/.hg/requires @@ -0,0 +1,3 @@ +revlogv1 +store +fncache diff --git a/lib/wlrepo/tests/data/merged/.hg/store/00changelog.i b/lib/wlrepo/tests/data/merged/.hg/store/00changelog.i new file mode 100644 index 00000000..31a5d325 Binary files /dev/null and b/lib/wlrepo/tests/data/merged/.hg/store/00changelog.i differ diff --git a/lib/wlrepo/tests/data/merged/.hg/store/00manifest.i b/lib/wlrepo/tests/data/merged/.hg/store/00manifest.i new file mode 100644 index 00000000..c9a695e2 Binary files /dev/null and b/lib/wlrepo/tests/data/merged/.hg/store/00manifest.i differ diff --git a/lib/wlrepo/tests/data/merged/.hg/store/data/.hgignore.i b/lib/wlrepo/tests/data/merged/.hg/store/data/.hgignore.i new file mode 100644 index 00000000..2431023a Binary files /dev/null and b/lib/wlrepo/tests/data/merged/.hg/store/data/.hgignore.i differ diff --git a/lib/wlrepo/tests/data/merged/.hg/store/data/ignored__file.i b/lib/wlrepo/tests/data/merged/.hg/store/data/ignored__file.i new file mode 100644 index 00000000..a6bdf46f Binary files /dev/null and b/lib/wlrepo/tests/data/merged/.hg/store/data/ignored__file.i differ diff --git a/lib/wlrepo/tests/data/merged/.hg/store/data/pub__ala.xml.i b/lib/wlrepo/tests/data/merged/.hg/store/data/pub__ala.xml.i new file mode 100644 index 00000000..084d15c2 Binary files /dev/null and b/lib/wlrepo/tests/data/merged/.hg/store/data/pub__ala.xml.i differ diff --git a/lib/wlrepo/tests/data/merged/.hg/store/data/pub__polish__file.xml.i b/lib/wlrepo/tests/data/merged/.hg/store/data/pub__polish__file.xml.i new file mode 100644 index 00000000..3488bccb Binary files /dev/null and b/lib/wlrepo/tests/data/merged/.hg/store/data/pub__polish__file.xml.i differ diff --git a/lib/wlrepo/tests/data/merged/.hg/store/data/pub__valid__file.xml.i b/lib/wlrepo/tests/data/merged/.hg/store/data/pub__valid__file.xml.i new file mode 100644 index 00000000..fd3c7f7b Binary files /dev/null and b/lib/wlrepo/tests/data/merged/.hg/store/data/pub__valid__file.xml.i differ diff --git a/lib/wlrepo/tests/data/merged/.hg/store/fncache b/lib/wlrepo/tests/data/merged/.hg/store/fncache new file mode 100644 index 00000000..0e671a68 --- /dev/null +++ b/lib/wlrepo/tests/data/merged/.hg/store/fncache @@ -0,0 +1,5 @@ +data/.hgignore.i +data/ignored_file.i +data/pub_valid_file.xml.i +data/pub_polish_file.xml.i +data/pub_ala.xml.i diff --git a/lib/wlrepo/tests/data/merged/.hg/store/undo b/lib/wlrepo/tests/data/merged/.hg/store/undo new file mode 100644 index 00000000..6f22e302 Binary files /dev/null and b/lib/wlrepo/tests/data/merged/.hg/store/undo differ diff --git a/lib/wlrepo/tests/data/merged/.hg/undo.branch b/lib/wlrepo/tests/data/merged/.hg/undo.branch new file mode 100644 index 00000000..331d858c --- /dev/null +++ b/lib/wlrepo/tests/data/merged/.hg/undo.branch @@ -0,0 +1 @@ +default \ No newline at end of file diff --git a/lib/wlrepo/tests/data/merged/.hg/undo.dirstate b/lib/wlrepo/tests/data/merged/.hg/undo.dirstate new file mode 100644 index 00000000..f4260532 Binary files /dev/null and b/lib/wlrepo/tests/data/merged/.hg/undo.dirstate differ diff --git a/lib/wlrepo/tests/data/merged/.hgignore b/lib/wlrepo/tests/data/merged/.hgignore new file mode 100644 index 00000000..e69de29b diff --git a/lib/wlrepo/tests/data/merged/ignored_file b/lib/wlrepo/tests/data/merged/ignored_file new file mode 100644 index 00000000..e69de29b diff --git a/lib/wlrepo/tests/data/merged/pub_ala.xml b/lib/wlrepo/tests/data/merged/pub_ala.xml new file mode 100644 index 00000000..94d21052 --- /dev/null +++ b/lib/wlrepo/tests/data/merged/pub_ala.xml @@ -0,0 +1 @@ +Super tekst. diff --git a/lib/wlrepo/tests/data/merged/pub_polish_file.xml b/lib/wlrepo/tests/data/merged/pub_polish_file.xml new file mode 100644 index 00000000..c7ada58c --- /dev/null +++ b/lib/wlrepo/tests/data/merged/pub_polish_file.xml @@ -0,0 +1 @@ +Gąska! diff --git a/lib/wlrepo/tests/data/merged/pub_valid_file.xml b/lib/wlrepo/tests/data/merged/pub_valid_file.xml new file mode 100644 index 00000000..84321884 --- /dev/null +++ b/lib/wlrepo/tests/data/merged/pub_valid_file.xml @@ -0,0 +1 @@ +Ala ma kota diff --git a/lib/wlrepo/tests/data/merged_with_local_commit/.hg/00changelog.i b/lib/wlrepo/tests/data/merged_with_local_commit/.hg/00changelog.i new file mode 100644 index 00000000..d3a83110 Binary files /dev/null and b/lib/wlrepo/tests/data/merged_with_local_commit/.hg/00changelog.i differ diff --git a/lib/wlrepo/tests/data/merged_with_local_commit/.hg/branch b/lib/wlrepo/tests/data/merged_with_local_commit/.hg/branch new file mode 100644 index 00000000..4ad96d51 --- /dev/null +++ b/lib/wlrepo/tests/data/merged_with_local_commit/.hg/branch @@ -0,0 +1 @@ +default diff --git a/lib/wlrepo/tests/data/merged_with_local_commit/.hg/branchheads.cache b/lib/wlrepo/tests/data/merged_with_local_commit/.hg/branchheads.cache new file mode 100644 index 00000000..d4a4b7eb --- /dev/null +++ b/lib/wlrepo/tests/data/merged_with_local_commit/.hg/branchheads.cache @@ -0,0 +1,5 @@ +0985918ffd936a45d40005b7e0fa6feb504c94c5 9 +c0c0576584c8b0c74c7efd4aac52da3af0ee16a9 default +34d4aa807563b28774bcbe07f6acbb984aa4dc8d personal_tester_valid_file +0985918ffd936a45d40005b7e0fa6feb504c94c5 personal_admin_file_ala +e0fbb8dc3f54c34581848d59a215d1d222a9e891 personal_tester_file_valid_file diff --git a/lib/wlrepo/tests/data/merged_with_local_commit/.hg/dirstate b/lib/wlrepo/tests/data/merged_with_local_commit/.hg/dirstate new file mode 100644 index 00000000..10e596e7 Binary files /dev/null and b/lib/wlrepo/tests/data/merged_with_local_commit/.hg/dirstate differ diff --git a/lib/wlrepo/tests/data/merged_with_local_commit/.hg/requires b/lib/wlrepo/tests/data/merged_with_local_commit/.hg/requires new file mode 100644 index 00000000..5175383b --- /dev/null +++ b/lib/wlrepo/tests/data/merged_with_local_commit/.hg/requires @@ -0,0 +1,3 @@ +revlogv1 +store +fncache diff --git a/lib/wlrepo/tests/data/merged_with_local_commit/.hg/store/00changelog.i b/lib/wlrepo/tests/data/merged_with_local_commit/.hg/store/00changelog.i new file mode 100644 index 00000000..09fc04bf Binary files /dev/null and b/lib/wlrepo/tests/data/merged_with_local_commit/.hg/store/00changelog.i differ diff --git a/lib/wlrepo/tests/data/merged_with_local_commit/.hg/store/00manifest.i b/lib/wlrepo/tests/data/merged_with_local_commit/.hg/store/00manifest.i new file mode 100644 index 00000000..8e1e7870 Binary files /dev/null and b/lib/wlrepo/tests/data/merged_with_local_commit/.hg/store/00manifest.i differ diff --git a/lib/wlrepo/tests/data/merged_with_local_commit/.hg/store/data/.hgignore.i b/lib/wlrepo/tests/data/merged_with_local_commit/.hg/store/data/.hgignore.i new file mode 100644 index 00000000..2431023a Binary files /dev/null and b/lib/wlrepo/tests/data/merged_with_local_commit/.hg/store/data/.hgignore.i differ diff --git a/lib/wlrepo/tests/data/merged_with_local_commit/.hg/store/data/ignored__file.i b/lib/wlrepo/tests/data/merged_with_local_commit/.hg/store/data/ignored__file.i new file mode 100644 index 00000000..a6bdf46f Binary files /dev/null and b/lib/wlrepo/tests/data/merged_with_local_commit/.hg/store/data/ignored__file.i differ diff --git a/lib/wlrepo/tests/data/merged_with_local_commit/.hg/store/data/pub__ala.xml.i b/lib/wlrepo/tests/data/merged_with_local_commit/.hg/store/data/pub__ala.xml.i new file mode 100644 index 00000000..e811401c Binary files /dev/null and b/lib/wlrepo/tests/data/merged_with_local_commit/.hg/store/data/pub__ala.xml.i differ diff --git a/lib/wlrepo/tests/data/merged_with_local_commit/.hg/store/data/pub__polish__file.xml.i b/lib/wlrepo/tests/data/merged_with_local_commit/.hg/store/data/pub__polish__file.xml.i new file mode 100644 index 00000000..3488bccb Binary files /dev/null and b/lib/wlrepo/tests/data/merged_with_local_commit/.hg/store/data/pub__polish__file.xml.i differ diff --git a/lib/wlrepo/tests/data/merged_with_local_commit/.hg/store/data/pub__valid__file.xml.i b/lib/wlrepo/tests/data/merged_with_local_commit/.hg/store/data/pub__valid__file.xml.i new file mode 100644 index 00000000..fd3c7f7b Binary files /dev/null and b/lib/wlrepo/tests/data/merged_with_local_commit/.hg/store/data/pub__valid__file.xml.i differ diff --git a/lib/wlrepo/tests/data/merged_with_local_commit/.hg/store/fncache b/lib/wlrepo/tests/data/merged_with_local_commit/.hg/store/fncache new file mode 100644 index 00000000..0e671a68 --- /dev/null +++ b/lib/wlrepo/tests/data/merged_with_local_commit/.hg/store/fncache @@ -0,0 +1,5 @@ +data/.hgignore.i +data/ignored_file.i +data/pub_valid_file.xml.i +data/pub_polish_file.xml.i +data/pub_ala.xml.i diff --git a/lib/wlrepo/tests/data/merged_with_local_commit/.hg/store/undo b/lib/wlrepo/tests/data/merged_with_local_commit/.hg/store/undo new file mode 100644 index 00000000..40c23ad4 Binary files /dev/null and b/lib/wlrepo/tests/data/merged_with_local_commit/.hg/store/undo differ diff --git a/lib/wlrepo/tests/data/merged_with_local_commit/.hg/undo.branch b/lib/wlrepo/tests/data/merged_with_local_commit/.hg/undo.branch new file mode 100644 index 00000000..2b1d956b --- /dev/null +++ b/lib/wlrepo/tests/data/merged_with_local_commit/.hg/undo.branch @@ -0,0 +1 @@ +personal_admin_file_ala \ No newline at end of file diff --git a/lib/wlrepo/tests/data/merged_with_local_commit/.hg/undo.dirstate b/lib/wlrepo/tests/data/merged_with_local_commit/.hg/undo.dirstate new file mode 100644 index 00000000..496c1aef Binary files /dev/null and b/lib/wlrepo/tests/data/merged_with_local_commit/.hg/undo.dirstate differ diff --git a/lib/wlrepo/tests/data/merged_with_local_commit/.hgignore b/lib/wlrepo/tests/data/merged_with_local_commit/.hgignore new file mode 100644 index 00000000..e69de29b diff --git a/lib/wlrepo/tests/data/merged_with_local_commit/ignored_file b/lib/wlrepo/tests/data/merged_with_local_commit/ignored_file new file mode 100644 index 00000000..e69de29b diff --git a/lib/wlrepo/tests/data/merged_with_local_commit/pub_ala.xml b/lib/wlrepo/tests/data/merged_with_local_commit/pub_ala.xml new file mode 100644 index 00000000..94d21052 --- /dev/null +++ b/lib/wlrepo/tests/data/merged_with_local_commit/pub_ala.xml @@ -0,0 +1 @@ +Super tekst. diff --git a/lib/wlrepo/tests/data/merged_with_local_commit/pub_polish_file.xml b/lib/wlrepo/tests/data/merged_with_local_commit/pub_polish_file.xml new file mode 100644 index 00000000..c7ada58c --- /dev/null +++ b/lib/wlrepo/tests/data/merged_with_local_commit/pub_polish_file.xml @@ -0,0 +1 @@ +Gąska! diff --git a/lib/wlrepo/tests/data/merged_with_local_commit/pub_valid_file.xml b/lib/wlrepo/tests/data/merged_with_local_commit/pub_valid_file.xml new file mode 100644 index 00000000..84321884 --- /dev/null +++ b/lib/wlrepo/tests/data/merged_with_local_commit/pub_valid_file.xml @@ -0,0 +1 @@ +Ala ma kota diff --git a/lib/wlrepo/tests/data/repos/cleanrepo/.hg/00changelog.i b/lib/wlrepo/tests/data/repos/cleanrepo/.hg/00changelog.i deleted file mode 100644 index d3a83110..00000000 Binary files a/lib/wlrepo/tests/data/repos/cleanrepo/.hg/00changelog.i and /dev/null differ diff --git a/lib/wlrepo/tests/data/repos/cleanrepo/.hg/dirstate b/lib/wlrepo/tests/data/repos/cleanrepo/.hg/dirstate deleted file mode 100644 index b0aa1e64..00000000 Binary files a/lib/wlrepo/tests/data/repos/cleanrepo/.hg/dirstate and /dev/null differ diff --git a/lib/wlrepo/tests/data/repos/cleanrepo/.hg/requires b/lib/wlrepo/tests/data/repos/cleanrepo/.hg/requires deleted file mode 100644 index 5175383b..00000000 --- a/lib/wlrepo/tests/data/repos/cleanrepo/.hg/requires +++ /dev/null @@ -1,3 +0,0 @@ -revlogv1 -store -fncache diff --git a/lib/wlrepo/tests/data/repos/cleanrepo/.hg/store/00changelog.i b/lib/wlrepo/tests/data/repos/cleanrepo/.hg/store/00changelog.i deleted file mode 100644 index 45c1c461..00000000 Binary files a/lib/wlrepo/tests/data/repos/cleanrepo/.hg/store/00changelog.i and /dev/null differ diff --git a/lib/wlrepo/tests/data/repos/cleanrepo/.hg/store/00manifest.i b/lib/wlrepo/tests/data/repos/cleanrepo/.hg/store/00manifest.i deleted file mode 100644 index ed99f61a..00000000 Binary files a/lib/wlrepo/tests/data/repos/cleanrepo/.hg/store/00manifest.i and /dev/null differ diff --git a/lib/wlrepo/tests/data/repos/cleanrepo/.hg/store/data/.hgignore.i b/lib/wlrepo/tests/data/repos/cleanrepo/.hg/store/data/.hgignore.i deleted file mode 100644 index 2431023a..00000000 Binary files a/lib/wlrepo/tests/data/repos/cleanrepo/.hg/store/data/.hgignore.i and /dev/null differ diff --git a/lib/wlrepo/tests/data/repos/cleanrepo/.hg/store/data/ignored__file.i b/lib/wlrepo/tests/data/repos/cleanrepo/.hg/store/data/ignored__file.i deleted file mode 100644 index a6bdf46f..00000000 Binary files a/lib/wlrepo/tests/data/repos/cleanrepo/.hg/store/data/ignored__file.i and /dev/null differ diff --git a/lib/wlrepo/tests/data/repos/cleanrepo/.hg/store/data/pub__valid__file.xml.i b/lib/wlrepo/tests/data/repos/cleanrepo/.hg/store/data/pub__valid__file.xml.i deleted file mode 100644 index a6bdf46f..00000000 Binary files a/lib/wlrepo/tests/data/repos/cleanrepo/.hg/store/data/pub__valid__file.xml.i and /dev/null differ diff --git a/lib/wlrepo/tests/data/repos/cleanrepo/.hg/store/fncache b/lib/wlrepo/tests/data/repos/cleanrepo/.hg/store/fncache deleted file mode 100644 index a1607dd1..00000000 --- a/lib/wlrepo/tests/data/repos/cleanrepo/.hg/store/fncache +++ /dev/null @@ -1,3 +0,0 @@ -data/.hgignore.i -data/ignored_file.i -data/pub_valid_file.xml.i diff --git a/lib/wlrepo/tests/data/repos/cleanrepo/.hg/store/undo b/lib/wlrepo/tests/data/repos/cleanrepo/.hg/store/undo deleted file mode 100644 index 90d4cb1d..00000000 Binary files a/lib/wlrepo/tests/data/repos/cleanrepo/.hg/store/undo and /dev/null differ diff --git a/lib/wlrepo/tests/data/repos/cleanrepo/.hg/undo.branch b/lib/wlrepo/tests/data/repos/cleanrepo/.hg/undo.branch deleted file mode 100644 index 331d858c..00000000 --- a/lib/wlrepo/tests/data/repos/cleanrepo/.hg/undo.branch +++ /dev/null @@ -1 +0,0 @@ -default \ No newline at end of file diff --git a/lib/wlrepo/tests/data/repos/cleanrepo/.hg/undo.dirstate b/lib/wlrepo/tests/data/repos/cleanrepo/.hg/undo.dirstate deleted file mode 100644 index 1d0af27f..00000000 Binary files a/lib/wlrepo/tests/data/repos/cleanrepo/.hg/undo.dirstate and /dev/null differ diff --git a/lib/wlrepo/tests/data/repos/cleanrepo/.hgignore b/lib/wlrepo/tests/data/repos/cleanrepo/.hgignore deleted file mode 100644 index e69de29b..00000000 diff --git a/lib/wlrepo/tests/data/repos/cleanrepo/ignored_file b/lib/wlrepo/tests/data/repos/cleanrepo/ignored_file deleted file mode 100644 index e69de29b..00000000 diff --git a/lib/wlrepo/tests/data/repos/cleanrepo/pub_valid_file.xml b/lib/wlrepo/tests/data/repos/cleanrepo/pub_valid_file.xml deleted file mode 100644 index e69de29b..00000000 diff --git a/lib/wlrepo/tests/data/repos/testrepoI/.hg/00changelog.i b/lib/wlrepo/tests/data/repos/testrepoI/.hg/00changelog.i deleted file mode 100644 index d3a83110..00000000 Binary files a/lib/wlrepo/tests/data/repos/testrepoI/.hg/00changelog.i and /dev/null differ diff --git a/lib/wlrepo/tests/data/repos/testrepoI/.hg/dirstate b/lib/wlrepo/tests/data/repos/testrepoI/.hg/dirstate deleted file mode 100644 index c13e1c1c..00000000 Binary files a/lib/wlrepo/tests/data/repos/testrepoI/.hg/dirstate and /dev/null differ diff --git a/lib/wlrepo/tests/data/repos/testrepoI/.hg/requires b/lib/wlrepo/tests/data/repos/testrepoI/.hg/requires deleted file mode 100644 index 5175383b..00000000 --- a/lib/wlrepo/tests/data/repos/testrepoI/.hg/requires +++ /dev/null @@ -1,3 +0,0 @@ -revlogv1 -store -fncache diff --git a/lib/wlrepo/tests/data/repos/testrepoI/.hg/store/00changelog.i b/lib/wlrepo/tests/data/repos/testrepoI/.hg/store/00changelog.i deleted file mode 100644 index 35b7cda0..00000000 Binary files a/lib/wlrepo/tests/data/repos/testrepoI/.hg/store/00changelog.i and /dev/null differ diff --git a/lib/wlrepo/tests/data/repos/testrepoI/.hg/store/00manifest.i b/lib/wlrepo/tests/data/repos/testrepoI/.hg/store/00manifest.i deleted file mode 100644 index 7eb40cb5..00000000 Binary files a/lib/wlrepo/tests/data/repos/testrepoI/.hg/store/00manifest.i and /dev/null differ diff --git a/lib/wlrepo/tests/data/repos/testrepoI/.hg/store/data/.hgignore.i b/lib/wlrepo/tests/data/repos/testrepoI/.hg/store/data/.hgignore.i deleted file mode 100644 index 2431023a..00000000 Binary files a/lib/wlrepo/tests/data/repos/testrepoI/.hg/store/data/.hgignore.i and /dev/null differ diff --git a/lib/wlrepo/tests/data/repos/testrepoI/.hg/store/data/ignored__file.i b/lib/wlrepo/tests/data/repos/testrepoI/.hg/store/data/ignored__file.i deleted file mode 100644 index a6bdf46f..00000000 Binary files a/lib/wlrepo/tests/data/repos/testrepoI/.hg/store/data/ignored__file.i and /dev/null differ diff --git a/lib/wlrepo/tests/data/repos/testrepoI/.hg/store/data/pub__polish__file.xml.i b/lib/wlrepo/tests/data/repos/testrepoI/.hg/store/data/pub__polish__file.xml.i deleted file mode 100644 index 3488bccb..00000000 Binary files a/lib/wlrepo/tests/data/repos/testrepoI/.hg/store/data/pub__polish__file.xml.i and /dev/null differ diff --git a/lib/wlrepo/tests/data/repos/testrepoI/.hg/store/data/pub__valid__file.xml.i b/lib/wlrepo/tests/data/repos/testrepoI/.hg/store/data/pub__valid__file.xml.i deleted file mode 100644 index fd3c7f7b..00000000 Binary files a/lib/wlrepo/tests/data/repos/testrepoI/.hg/store/data/pub__valid__file.xml.i and /dev/null differ diff --git a/lib/wlrepo/tests/data/repos/testrepoI/.hg/store/fncache b/lib/wlrepo/tests/data/repos/testrepoI/.hg/store/fncache deleted file mode 100644 index 8730267a..00000000 --- a/lib/wlrepo/tests/data/repos/testrepoI/.hg/store/fncache +++ /dev/null @@ -1,4 +0,0 @@ -data/.hgignore.i -data/ignored_file.i -data/pub_valid_file.xml.i -data/pub_polish_file.xml.i diff --git a/lib/wlrepo/tests/data/repos/testrepoI/.hg/store/undo b/lib/wlrepo/tests/data/repos/testrepoI/.hg/store/undo deleted file mode 100644 index 62ca7e43..00000000 Binary files a/lib/wlrepo/tests/data/repos/testrepoI/.hg/store/undo and /dev/null differ diff --git a/lib/wlrepo/tests/data/repos/testrepoI/.hg/undo.branch b/lib/wlrepo/tests/data/repos/testrepoI/.hg/undo.branch deleted file mode 100644 index 331d858c..00000000 --- a/lib/wlrepo/tests/data/repos/testrepoI/.hg/undo.branch +++ /dev/null @@ -1 +0,0 @@ -default \ No newline at end of file diff --git a/lib/wlrepo/tests/data/repos/testrepoI/.hg/undo.dirstate b/lib/wlrepo/tests/data/repos/testrepoI/.hg/undo.dirstate deleted file mode 100644 index fb1041a5..00000000 Binary files a/lib/wlrepo/tests/data/repos/testrepoI/.hg/undo.dirstate and /dev/null differ diff --git a/lib/wlrepo/tests/data/repos/testrepoI/.hgignore b/lib/wlrepo/tests/data/repos/testrepoI/.hgignore deleted file mode 100644 index e69de29b..00000000 diff --git a/lib/wlrepo/tests/data/repos/testrepoI/ignored_file b/lib/wlrepo/tests/data/repos/testrepoI/ignored_file deleted file mode 100644 index e69de29b..00000000 diff --git a/lib/wlrepo/tests/data/repos/testrepoI/pub_polish_file.xml b/lib/wlrepo/tests/data/repos/testrepoI/pub_polish_file.xml deleted file mode 100644 index c7ada58c..00000000 --- a/lib/wlrepo/tests/data/repos/testrepoI/pub_polish_file.xml +++ /dev/null @@ -1 +0,0 @@ -Gąska! diff --git a/lib/wlrepo/tests/data/repos/testrepoI/pub_valid_file.xml b/lib/wlrepo/tests/data/repos/testrepoI/pub_valid_file.xml deleted file mode 100644 index 84321884..00000000 --- a/lib/wlrepo/tests/data/repos/testrepoI/pub_valid_file.xml +++ /dev/null @@ -1 +0,0 @@ -Ala ma kota diff --git a/lib/wlrepo/tests/data/repos/testrepoII/.hg/00changelog.i b/lib/wlrepo/tests/data/repos/testrepoII/.hg/00changelog.i deleted file mode 100644 index d3a83110..00000000 Binary files a/lib/wlrepo/tests/data/repos/testrepoII/.hg/00changelog.i and /dev/null differ diff --git a/lib/wlrepo/tests/data/repos/testrepoII/.hg/branch b/lib/wlrepo/tests/data/repos/testrepoII/.hg/branch deleted file mode 100644 index 4ad96d51..00000000 --- a/lib/wlrepo/tests/data/repos/testrepoII/.hg/branch +++ /dev/null @@ -1 +0,0 @@ -default diff --git a/lib/wlrepo/tests/data/repos/testrepoII/.hg/branchheads.cache b/lib/wlrepo/tests/data/repos/testrepoII/.hg/branchheads.cache deleted file mode 100644 index 6baf99d0..00000000 --- a/lib/wlrepo/tests/data/repos/testrepoII/.hg/branchheads.cache +++ /dev/null @@ -1,4 +0,0 @@ -e0fbb8dc3f54c34581848d59a215d1d222a9e891 4 -26ecd403388cce326f6ca1e32625db0651900eb7 default -34d4aa807563b28774bcbe07f6acbb984aa4dc8d personal_tester_valid_file -e0fbb8dc3f54c34581848d59a215d1d222a9e891 personal_tester_file_valid_file diff --git a/lib/wlrepo/tests/data/repos/testrepoII/.hg/dirstate b/lib/wlrepo/tests/data/repos/testrepoII/.hg/dirstate deleted file mode 100644 index 9c1a27d7..00000000 Binary files a/lib/wlrepo/tests/data/repos/testrepoII/.hg/dirstate and /dev/null differ diff --git a/lib/wlrepo/tests/data/repos/testrepoII/.hg/requires b/lib/wlrepo/tests/data/repos/testrepoII/.hg/requires deleted file mode 100644 index 5175383b..00000000 --- a/lib/wlrepo/tests/data/repos/testrepoII/.hg/requires +++ /dev/null @@ -1,3 +0,0 @@ -revlogv1 -store -fncache diff --git a/lib/wlrepo/tests/data/repos/testrepoII/.hg/store/00changelog.i b/lib/wlrepo/tests/data/repos/testrepoII/.hg/store/00changelog.i deleted file mode 100644 index f7ca4087..00000000 Binary files a/lib/wlrepo/tests/data/repos/testrepoII/.hg/store/00changelog.i and /dev/null differ diff --git a/lib/wlrepo/tests/data/repos/testrepoII/.hg/store/00manifest.i b/lib/wlrepo/tests/data/repos/testrepoII/.hg/store/00manifest.i deleted file mode 100644 index 997a181d..00000000 Binary files a/lib/wlrepo/tests/data/repos/testrepoII/.hg/store/00manifest.i and /dev/null differ diff --git a/lib/wlrepo/tests/data/repos/testrepoII/.hg/store/data/.hgignore.i b/lib/wlrepo/tests/data/repos/testrepoII/.hg/store/data/.hgignore.i deleted file mode 100644 index 2431023a..00000000 Binary files a/lib/wlrepo/tests/data/repos/testrepoII/.hg/store/data/.hgignore.i and /dev/null differ diff --git a/lib/wlrepo/tests/data/repos/testrepoII/.hg/store/data/ignored__file.i b/lib/wlrepo/tests/data/repos/testrepoII/.hg/store/data/ignored__file.i deleted file mode 100644 index a6bdf46f..00000000 Binary files a/lib/wlrepo/tests/data/repos/testrepoII/.hg/store/data/ignored__file.i and /dev/null differ diff --git a/lib/wlrepo/tests/data/repos/testrepoII/.hg/store/data/pub__polish__file.xml.i b/lib/wlrepo/tests/data/repos/testrepoII/.hg/store/data/pub__polish__file.xml.i deleted file mode 100644 index 3488bccb..00000000 Binary files a/lib/wlrepo/tests/data/repos/testrepoII/.hg/store/data/pub__polish__file.xml.i and /dev/null differ diff --git a/lib/wlrepo/tests/data/repos/testrepoII/.hg/store/data/pub__valid__file.xml.i b/lib/wlrepo/tests/data/repos/testrepoII/.hg/store/data/pub__valid__file.xml.i deleted file mode 100644 index fd3c7f7b..00000000 Binary files a/lib/wlrepo/tests/data/repos/testrepoII/.hg/store/data/pub__valid__file.xml.i and /dev/null differ diff --git a/lib/wlrepo/tests/data/repos/testrepoII/.hg/store/fncache b/lib/wlrepo/tests/data/repos/testrepoII/.hg/store/fncache deleted file mode 100644 index 8730267a..00000000 --- a/lib/wlrepo/tests/data/repos/testrepoII/.hg/store/fncache +++ /dev/null @@ -1,4 +0,0 @@ -data/.hgignore.i -data/ignored_file.i -data/pub_valid_file.xml.i -data/pub_polish_file.xml.i diff --git a/lib/wlrepo/tests/data/repos/testrepoII/.hg/store/undo b/lib/wlrepo/tests/data/repos/testrepoII/.hg/store/undo deleted file mode 100644 index fb22969a..00000000 Binary files a/lib/wlrepo/tests/data/repos/testrepoII/.hg/store/undo and /dev/null differ diff --git a/lib/wlrepo/tests/data/repos/testrepoII/.hg/undo.branch b/lib/wlrepo/tests/data/repos/testrepoII/.hg/undo.branch deleted file mode 100644 index 620a92c9..00000000 --- a/lib/wlrepo/tests/data/repos/testrepoII/.hg/undo.branch +++ /dev/null @@ -1 +0,0 @@ -personal_tester_file_valid_file \ No newline at end of file diff --git a/lib/wlrepo/tests/data/repos/testrepoII/.hg/undo.dirstate b/lib/wlrepo/tests/data/repos/testrepoII/.hg/undo.dirstate deleted file mode 100644 index 2c1df6a1..00000000 Binary files a/lib/wlrepo/tests/data/repos/testrepoII/.hg/undo.dirstate and /dev/null differ diff --git a/lib/wlrepo/tests/data/repos/testrepoII/.hgignore b/lib/wlrepo/tests/data/repos/testrepoII/.hgignore deleted file mode 100644 index e69de29b..00000000 diff --git a/lib/wlrepo/tests/data/repos/testrepoII/ignored_file b/lib/wlrepo/tests/data/repos/testrepoII/ignored_file deleted file mode 100644 index e69de29b..00000000 diff --git a/lib/wlrepo/tests/data/repos/testrepoII/pub_polish_file.xml b/lib/wlrepo/tests/data/repos/testrepoII/pub_polish_file.xml deleted file mode 100644 index c7ada58c..00000000 --- a/lib/wlrepo/tests/data/repos/testrepoII/pub_polish_file.xml +++ /dev/null @@ -1 +0,0 @@ -Gąska! diff --git a/lib/wlrepo/tests/data/repos/testrepoII/pub_valid_file.xml b/lib/wlrepo/tests/data/repos/testrepoII/pub_valid_file.xml deleted file mode 100644 index 84321884..00000000 --- a/lib/wlrepo/tests/data/repos/testrepoII/pub_valid_file.xml +++ /dev/null @@ -1 +0,0 @@ -Ala ma kota diff --git a/lib/wlrepo/tests/data/simple/.hg/00changelog.i b/lib/wlrepo/tests/data/simple/.hg/00changelog.i new file mode 100644 index 00000000..d3a83110 Binary files /dev/null and b/lib/wlrepo/tests/data/simple/.hg/00changelog.i differ diff --git a/lib/wlrepo/tests/data/simple/.hg/dirstate b/lib/wlrepo/tests/data/simple/.hg/dirstate new file mode 100644 index 00000000..c13e1c1c Binary files /dev/null and b/lib/wlrepo/tests/data/simple/.hg/dirstate differ diff --git a/lib/wlrepo/tests/data/simple/.hg/requires b/lib/wlrepo/tests/data/simple/.hg/requires new file mode 100644 index 00000000..5175383b --- /dev/null +++ b/lib/wlrepo/tests/data/simple/.hg/requires @@ -0,0 +1,3 @@ +revlogv1 +store +fncache diff --git a/lib/wlrepo/tests/data/simple/.hg/store/00changelog.i b/lib/wlrepo/tests/data/simple/.hg/store/00changelog.i new file mode 100644 index 00000000..35b7cda0 Binary files /dev/null and b/lib/wlrepo/tests/data/simple/.hg/store/00changelog.i differ diff --git a/lib/wlrepo/tests/data/simple/.hg/store/00manifest.i b/lib/wlrepo/tests/data/simple/.hg/store/00manifest.i new file mode 100644 index 00000000..7eb40cb5 Binary files /dev/null and b/lib/wlrepo/tests/data/simple/.hg/store/00manifest.i differ diff --git a/lib/wlrepo/tests/data/simple/.hg/store/data/.hgignore.i b/lib/wlrepo/tests/data/simple/.hg/store/data/.hgignore.i new file mode 100644 index 00000000..2431023a Binary files /dev/null and b/lib/wlrepo/tests/data/simple/.hg/store/data/.hgignore.i differ diff --git a/lib/wlrepo/tests/data/simple/.hg/store/data/ignored__file.i b/lib/wlrepo/tests/data/simple/.hg/store/data/ignored__file.i new file mode 100644 index 00000000..a6bdf46f Binary files /dev/null and b/lib/wlrepo/tests/data/simple/.hg/store/data/ignored__file.i differ diff --git a/lib/wlrepo/tests/data/simple/.hg/store/data/pub__polish__file.xml.i b/lib/wlrepo/tests/data/simple/.hg/store/data/pub__polish__file.xml.i new file mode 100644 index 00000000..3488bccb Binary files /dev/null and b/lib/wlrepo/tests/data/simple/.hg/store/data/pub__polish__file.xml.i differ diff --git a/lib/wlrepo/tests/data/simple/.hg/store/data/pub__valid__file.xml.i b/lib/wlrepo/tests/data/simple/.hg/store/data/pub__valid__file.xml.i new file mode 100644 index 00000000..fd3c7f7b Binary files /dev/null and b/lib/wlrepo/tests/data/simple/.hg/store/data/pub__valid__file.xml.i differ diff --git a/lib/wlrepo/tests/data/simple/.hg/store/fncache b/lib/wlrepo/tests/data/simple/.hg/store/fncache new file mode 100644 index 00000000..8730267a --- /dev/null +++ b/lib/wlrepo/tests/data/simple/.hg/store/fncache @@ -0,0 +1,4 @@ +data/.hgignore.i +data/ignored_file.i +data/pub_valid_file.xml.i +data/pub_polish_file.xml.i diff --git a/lib/wlrepo/tests/data/simple/.hg/store/undo b/lib/wlrepo/tests/data/simple/.hg/store/undo new file mode 100644 index 00000000..62ca7e43 Binary files /dev/null and b/lib/wlrepo/tests/data/simple/.hg/store/undo differ diff --git a/lib/wlrepo/tests/data/simple/.hg/undo.branch b/lib/wlrepo/tests/data/simple/.hg/undo.branch new file mode 100644 index 00000000..331d858c --- /dev/null +++ b/lib/wlrepo/tests/data/simple/.hg/undo.branch @@ -0,0 +1 @@ +default \ No newline at end of file diff --git a/lib/wlrepo/tests/data/simple/.hg/undo.dirstate b/lib/wlrepo/tests/data/simple/.hg/undo.dirstate new file mode 100644 index 00000000..fb1041a5 Binary files /dev/null and b/lib/wlrepo/tests/data/simple/.hg/undo.dirstate differ diff --git a/lib/wlrepo/tests/data/simple/.hgignore b/lib/wlrepo/tests/data/simple/.hgignore new file mode 100644 index 00000000..e69de29b diff --git a/lib/wlrepo/tests/data/simple/ignored_file b/lib/wlrepo/tests/data/simple/ignored_file new file mode 100644 index 00000000..e69de29b diff --git a/lib/wlrepo/tests/data/simple/pub_polish_file.xml b/lib/wlrepo/tests/data/simple/pub_polish_file.xml new file mode 100644 index 00000000..c7ada58c --- /dev/null +++ b/lib/wlrepo/tests/data/simple/pub_polish_file.xml @@ -0,0 +1 @@ +Gąska! diff --git a/lib/wlrepo/tests/data/simple/pub_valid_file.xml b/lib/wlrepo/tests/data/simple/pub_valid_file.xml new file mode 100644 index 00000000..84321884 --- /dev/null +++ b/lib/wlrepo/tests/data/simple/pub_valid_file.xml @@ -0,0 +1 @@ +Ala ma kota diff --git a/lib/wlrepo/tests/data/test5/.hg/00changelog.i b/lib/wlrepo/tests/data/test5/.hg/00changelog.i new file mode 100644 index 00000000..d3a83110 Binary files /dev/null and b/lib/wlrepo/tests/data/test5/.hg/00changelog.i differ diff --git a/lib/wlrepo/tests/data/test5/.hg/branch b/lib/wlrepo/tests/data/test5/.hg/branch new file mode 100644 index 00000000..4ad96d51 --- /dev/null +++ b/lib/wlrepo/tests/data/test5/.hg/branch @@ -0,0 +1 @@ +default diff --git a/lib/wlrepo/tests/data/test5/.hg/branchheads.cache b/lib/wlrepo/tests/data/test5/.hg/branchheads.cache new file mode 100644 index 00000000..3d37dbfc --- /dev/null +++ b/lib/wlrepo/tests/data/test5/.hg/branchheads.cache @@ -0,0 +1,5 @@ +2c0751c1c4cf5665d0a0af9c80b3050a45110436 9 +2c0751c1c4cf5665d0a0af9c80b3050a45110436 default +34d4aa807563b28774bcbe07f6acbb984aa4dc8d personal_tester_valid_file +9208a537d2f003ccc46a90595e7f0801c6b64d45 personal_admin_file_ala +e0fbb8dc3f54c34581848d59a215d1d222a9e891 personal_tester_file_valid_file diff --git a/lib/wlrepo/tests/data/test5/.hg/dirstate b/lib/wlrepo/tests/data/test5/.hg/dirstate new file mode 100644 index 00000000..4ff8f518 Binary files /dev/null and b/lib/wlrepo/tests/data/test5/.hg/dirstate differ diff --git a/lib/wlrepo/tests/data/test5/.hg/requires b/lib/wlrepo/tests/data/test5/.hg/requires new file mode 100644 index 00000000..5175383b --- /dev/null +++ b/lib/wlrepo/tests/data/test5/.hg/requires @@ -0,0 +1,3 @@ +revlogv1 +store +fncache diff --git a/lib/wlrepo/tests/data/test5/.hg/store/00changelog.i b/lib/wlrepo/tests/data/test5/.hg/store/00changelog.i new file mode 100644 index 00000000..29ef7d21 Binary files /dev/null and b/lib/wlrepo/tests/data/test5/.hg/store/00changelog.i differ diff --git a/lib/wlrepo/tests/data/test5/.hg/store/00manifest.i b/lib/wlrepo/tests/data/test5/.hg/store/00manifest.i new file mode 100644 index 00000000..231b5cdb Binary files /dev/null and b/lib/wlrepo/tests/data/test5/.hg/store/00manifest.i differ diff --git a/lib/wlrepo/tests/data/test5/.hg/store/data/.hgignore.i b/lib/wlrepo/tests/data/test5/.hg/store/data/.hgignore.i new file mode 100644 index 00000000..2431023a Binary files /dev/null and b/lib/wlrepo/tests/data/test5/.hg/store/data/.hgignore.i differ diff --git a/lib/wlrepo/tests/data/test5/.hg/store/data/ignored__file.i b/lib/wlrepo/tests/data/test5/.hg/store/data/ignored__file.i new file mode 100644 index 00000000..a6bdf46f Binary files /dev/null and b/lib/wlrepo/tests/data/test5/.hg/store/data/ignored__file.i differ diff --git a/lib/wlrepo/tests/data/test5/.hg/store/data/pub__ala.xml.i b/lib/wlrepo/tests/data/test5/.hg/store/data/pub__ala.xml.i new file mode 100644 index 00000000..330e2f7b Binary files /dev/null and b/lib/wlrepo/tests/data/test5/.hg/store/data/pub__ala.xml.i differ diff --git a/lib/wlrepo/tests/data/test5/.hg/store/data/pub__polish__file.xml.i b/lib/wlrepo/tests/data/test5/.hg/store/data/pub__polish__file.xml.i new file mode 100644 index 00000000..3488bccb Binary files /dev/null and b/lib/wlrepo/tests/data/test5/.hg/store/data/pub__polish__file.xml.i differ diff --git a/lib/wlrepo/tests/data/test5/.hg/store/data/pub__valid__file.xml.i b/lib/wlrepo/tests/data/test5/.hg/store/data/pub__valid__file.xml.i new file mode 100644 index 00000000..fd3c7f7b Binary files /dev/null and b/lib/wlrepo/tests/data/test5/.hg/store/data/pub__valid__file.xml.i differ diff --git a/lib/wlrepo/tests/data/test5/.hg/store/fncache b/lib/wlrepo/tests/data/test5/.hg/store/fncache new file mode 100644 index 00000000..0e671a68 --- /dev/null +++ b/lib/wlrepo/tests/data/test5/.hg/store/fncache @@ -0,0 +1,5 @@ +data/.hgignore.i +data/ignored_file.i +data/pub_valid_file.xml.i +data/pub_polish_file.xml.i +data/pub_ala.xml.i diff --git a/lib/wlrepo/tests/data/test5/.hg/store/undo b/lib/wlrepo/tests/data/test5/.hg/store/undo new file mode 100644 index 00000000..40c23ad4 Binary files /dev/null and b/lib/wlrepo/tests/data/test5/.hg/store/undo differ diff --git a/lib/wlrepo/tests/data/test5/.hg/undo.branch b/lib/wlrepo/tests/data/test5/.hg/undo.branch new file mode 100644 index 00000000..331d858c --- /dev/null +++ b/lib/wlrepo/tests/data/test5/.hg/undo.branch @@ -0,0 +1 @@ +default \ No newline at end of file diff --git a/lib/wlrepo/tests/data/test5/.hg/undo.dirstate b/lib/wlrepo/tests/data/test5/.hg/undo.dirstate new file mode 100644 index 00000000..0bd4bce4 Binary files /dev/null and b/lib/wlrepo/tests/data/test5/.hg/undo.dirstate differ diff --git a/lib/wlrepo/tests/data/test5/.hgignore b/lib/wlrepo/tests/data/test5/.hgignore new file mode 100644 index 00000000..e69de29b diff --git a/lib/wlrepo/tests/data/test5/ignored_file b/lib/wlrepo/tests/data/test5/ignored_file new file mode 100644 index 00000000..e69de29b diff --git a/lib/wlrepo/tests/data/test5/pub_ala.xml b/lib/wlrepo/tests/data/test5/pub_ala.xml new file mode 100644 index 00000000..b53384ce --- /dev/null +++ b/lib/wlrepo/tests/data/test5/pub_ala.xml @@ -0,0 +1 @@ +Super tekst. - w default. diff --git a/lib/wlrepo/tests/data/test5/pub_polish_file.xml b/lib/wlrepo/tests/data/test5/pub_polish_file.xml new file mode 100644 index 00000000..c7ada58c --- /dev/null +++ b/lib/wlrepo/tests/data/test5/pub_polish_file.xml @@ -0,0 +1 @@ +Gąska! diff --git a/lib/wlrepo/tests/data/test5/pub_valid_file.xml b/lib/wlrepo/tests/data/test5/pub_valid_file.xml new file mode 100644 index 00000000..84321884 --- /dev/null +++ b/lib/wlrepo/tests/data/test5/pub_valid_file.xml @@ -0,0 +1 @@ +Ala ma kota diff --git a/lib/wlrepo/tests/data/test5c/.hg/00changelog.i b/lib/wlrepo/tests/data/test5c/.hg/00changelog.i new file mode 100644 index 00000000..d3a83110 Binary files /dev/null and b/lib/wlrepo/tests/data/test5c/.hg/00changelog.i differ diff --git a/lib/wlrepo/tests/data/test5c/.hg/branch b/lib/wlrepo/tests/data/test5c/.hg/branch new file mode 100644 index 00000000..4ad96d51 --- /dev/null +++ b/lib/wlrepo/tests/data/test5c/.hg/branch @@ -0,0 +1 @@ +default diff --git a/lib/wlrepo/tests/data/test5c/.hg/branchheads.cache b/lib/wlrepo/tests/data/test5c/.hg/branchheads.cache new file mode 100644 index 00000000..74a5febf --- /dev/null +++ b/lib/wlrepo/tests/data/test5c/.hg/branchheads.cache @@ -0,0 +1,5 @@ +046a51b7783408c0011f01ae6943791e62652c7e 10 +c0c0576584c8b0c74c7efd4aac52da3af0ee16a9 default +34d4aa807563b28774bcbe07f6acbb984aa4dc8d personal_tester_valid_file +046a51b7783408c0011f01ae6943791e62652c7e personal_admin_file_ala +e0fbb8dc3f54c34581848d59a215d1d222a9e891 personal_tester_file_valid_file diff --git a/lib/wlrepo/tests/data/test5c/.hg/dirstate b/lib/wlrepo/tests/data/test5c/.hg/dirstate new file mode 100644 index 00000000..8822e5f1 Binary files /dev/null and b/lib/wlrepo/tests/data/test5c/.hg/dirstate differ diff --git a/lib/wlrepo/tests/data/test5c/.hg/requires b/lib/wlrepo/tests/data/test5c/.hg/requires new file mode 100644 index 00000000..5175383b --- /dev/null +++ b/lib/wlrepo/tests/data/test5c/.hg/requires @@ -0,0 +1,3 @@ +revlogv1 +store +fncache diff --git a/lib/wlrepo/tests/data/test5c/.hg/store/00changelog.i b/lib/wlrepo/tests/data/test5c/.hg/store/00changelog.i new file mode 100644 index 00000000..6b31c31a Binary files /dev/null and b/lib/wlrepo/tests/data/test5c/.hg/store/00changelog.i differ diff --git a/lib/wlrepo/tests/data/test5c/.hg/store/00manifest.i b/lib/wlrepo/tests/data/test5c/.hg/store/00manifest.i new file mode 100644 index 00000000..82963b0f Binary files /dev/null and b/lib/wlrepo/tests/data/test5c/.hg/store/00manifest.i differ diff --git a/lib/wlrepo/tests/data/test5c/.hg/store/data/.hgignore.i b/lib/wlrepo/tests/data/test5c/.hg/store/data/.hgignore.i new file mode 100644 index 00000000..2431023a Binary files /dev/null and b/lib/wlrepo/tests/data/test5c/.hg/store/data/.hgignore.i differ diff --git a/lib/wlrepo/tests/data/test5c/.hg/store/data/ignored__file.i b/lib/wlrepo/tests/data/test5c/.hg/store/data/ignored__file.i new file mode 100644 index 00000000..a6bdf46f Binary files /dev/null and b/lib/wlrepo/tests/data/test5c/.hg/store/data/ignored__file.i differ diff --git a/lib/wlrepo/tests/data/test5c/.hg/store/data/pub__ala.xml.i b/lib/wlrepo/tests/data/test5c/.hg/store/data/pub__ala.xml.i new file mode 100644 index 00000000..c390642d Binary files /dev/null and b/lib/wlrepo/tests/data/test5c/.hg/store/data/pub__ala.xml.i differ diff --git a/lib/wlrepo/tests/data/test5c/.hg/store/data/pub__polish__file.xml.i b/lib/wlrepo/tests/data/test5c/.hg/store/data/pub__polish__file.xml.i new file mode 100644 index 00000000..3488bccb Binary files /dev/null and b/lib/wlrepo/tests/data/test5c/.hg/store/data/pub__polish__file.xml.i differ diff --git a/lib/wlrepo/tests/data/test5c/.hg/store/data/pub__valid__file.xml.i b/lib/wlrepo/tests/data/test5c/.hg/store/data/pub__valid__file.xml.i new file mode 100644 index 00000000..fd3c7f7b Binary files /dev/null and b/lib/wlrepo/tests/data/test5c/.hg/store/data/pub__valid__file.xml.i differ diff --git a/lib/wlrepo/tests/data/test5c/.hg/store/fncache b/lib/wlrepo/tests/data/test5c/.hg/store/fncache new file mode 100644 index 00000000..0e671a68 --- /dev/null +++ b/lib/wlrepo/tests/data/test5c/.hg/store/fncache @@ -0,0 +1,5 @@ +data/.hgignore.i +data/ignored_file.i +data/pub_valid_file.xml.i +data/pub_polish_file.xml.i +data/pub_ala.xml.i diff --git a/lib/wlrepo/tests/data/test5c/.hg/store/undo b/lib/wlrepo/tests/data/test5c/.hg/store/undo new file mode 100644 index 00000000..70ff532a Binary files /dev/null and b/lib/wlrepo/tests/data/test5c/.hg/store/undo differ diff --git a/lib/wlrepo/tests/data/test5c/.hg/undo.branch b/lib/wlrepo/tests/data/test5c/.hg/undo.branch new file mode 100644 index 00000000..2b1d956b --- /dev/null +++ b/lib/wlrepo/tests/data/test5c/.hg/undo.branch @@ -0,0 +1 @@ +personal_admin_file_ala \ No newline at end of file diff --git a/lib/wlrepo/tests/data/test5c/.hg/undo.dirstate b/lib/wlrepo/tests/data/test5c/.hg/undo.dirstate new file mode 100644 index 00000000..5b237cc7 Binary files /dev/null and b/lib/wlrepo/tests/data/test5c/.hg/undo.dirstate differ diff --git a/lib/wlrepo/tests/data/test5c/.hgignore b/lib/wlrepo/tests/data/test5c/.hgignore new file mode 100644 index 00000000..e69de29b diff --git a/lib/wlrepo/tests/data/test5c/ignored_file b/lib/wlrepo/tests/data/test5c/ignored_file new file mode 100644 index 00000000..e69de29b diff --git a/lib/wlrepo/tests/data/test5c/pub_ala.xml b/lib/wlrepo/tests/data/test5c/pub_ala.xml new file mode 100644 index 00000000..94d21052 --- /dev/null +++ b/lib/wlrepo/tests/data/test5c/pub_ala.xml @@ -0,0 +1 @@ +Super tekst. diff --git a/lib/wlrepo/tests/data/test5c/pub_polish_file.xml b/lib/wlrepo/tests/data/test5c/pub_polish_file.xml new file mode 100644 index 00000000..c7ada58c --- /dev/null +++ b/lib/wlrepo/tests/data/test5c/pub_polish_file.xml @@ -0,0 +1 @@ +Gąska! diff --git a/lib/wlrepo/tests/data/test5c/pub_valid_file.xml b/lib/wlrepo/tests/data/test5c/pub_valid_file.xml new file mode 100644 index 00000000..84321884 --- /dev/null +++ b/lib/wlrepo/tests/data/test5c/pub_valid_file.xml @@ -0,0 +1 @@ +Ala ma kota diff --git a/lib/wlrepo/tests/data/test6-update/.hg/00changelog.i b/lib/wlrepo/tests/data/test6-update/.hg/00changelog.i new file mode 100644 index 00000000..d3a83110 Binary files /dev/null and b/lib/wlrepo/tests/data/test6-update/.hg/00changelog.i differ diff --git a/lib/wlrepo/tests/data/test6-update/.hg/branch b/lib/wlrepo/tests/data/test6-update/.hg/branch new file mode 100644 index 00000000..4ad96d51 --- /dev/null +++ b/lib/wlrepo/tests/data/test6-update/.hg/branch @@ -0,0 +1 @@ +default diff --git a/lib/wlrepo/tests/data/test6-update/.hg/branchheads.cache b/lib/wlrepo/tests/data/test6-update/.hg/branchheads.cache new file mode 100644 index 00000000..74a5febf --- /dev/null +++ b/lib/wlrepo/tests/data/test6-update/.hg/branchheads.cache @@ -0,0 +1,5 @@ +046a51b7783408c0011f01ae6943791e62652c7e 10 +c0c0576584c8b0c74c7efd4aac52da3af0ee16a9 default +34d4aa807563b28774bcbe07f6acbb984aa4dc8d personal_tester_valid_file +046a51b7783408c0011f01ae6943791e62652c7e personal_admin_file_ala +e0fbb8dc3f54c34581848d59a215d1d222a9e891 personal_tester_file_valid_file diff --git a/lib/wlrepo/tests/data/test6-update/.hg/dirstate b/lib/wlrepo/tests/data/test6-update/.hg/dirstate new file mode 100644 index 00000000..4ecca25d Binary files /dev/null and b/lib/wlrepo/tests/data/test6-update/.hg/dirstate differ diff --git a/lib/wlrepo/tests/data/test6-update/.hg/requires b/lib/wlrepo/tests/data/test6-update/.hg/requires new file mode 100644 index 00000000..5175383b --- /dev/null +++ b/lib/wlrepo/tests/data/test6-update/.hg/requires @@ -0,0 +1,3 @@ +revlogv1 +store +fncache diff --git a/lib/wlrepo/tests/data/test6-update/.hg/store/00changelog.i b/lib/wlrepo/tests/data/test6-update/.hg/store/00changelog.i new file mode 100644 index 00000000..7c76d905 Binary files /dev/null and b/lib/wlrepo/tests/data/test6-update/.hg/store/00changelog.i differ diff --git a/lib/wlrepo/tests/data/test6-update/.hg/store/00manifest.i b/lib/wlrepo/tests/data/test6-update/.hg/store/00manifest.i new file mode 100644 index 00000000..053fed3b Binary files /dev/null and b/lib/wlrepo/tests/data/test6-update/.hg/store/00manifest.i differ diff --git a/lib/wlrepo/tests/data/test6-update/.hg/store/data/.hgignore.i b/lib/wlrepo/tests/data/test6-update/.hg/store/data/.hgignore.i new file mode 100644 index 00000000..2431023a Binary files /dev/null and b/lib/wlrepo/tests/data/test6-update/.hg/store/data/.hgignore.i differ diff --git a/lib/wlrepo/tests/data/test6-update/.hg/store/data/ignored__file.i b/lib/wlrepo/tests/data/test6-update/.hg/store/data/ignored__file.i new file mode 100644 index 00000000..a6bdf46f Binary files /dev/null and b/lib/wlrepo/tests/data/test6-update/.hg/store/data/ignored__file.i differ diff --git a/lib/wlrepo/tests/data/test6-update/.hg/store/data/pub__ala.xml.i b/lib/wlrepo/tests/data/test6-update/.hg/store/data/pub__ala.xml.i new file mode 100644 index 00000000..c390642d Binary files /dev/null and b/lib/wlrepo/tests/data/test6-update/.hg/store/data/pub__ala.xml.i differ diff --git a/lib/wlrepo/tests/data/test6-update/.hg/store/data/pub__polish__file.xml.i b/lib/wlrepo/tests/data/test6-update/.hg/store/data/pub__polish__file.xml.i new file mode 100644 index 00000000..3488bccb Binary files /dev/null and b/lib/wlrepo/tests/data/test6-update/.hg/store/data/pub__polish__file.xml.i differ diff --git a/lib/wlrepo/tests/data/test6-update/.hg/store/data/pub__valid__file.xml.i b/lib/wlrepo/tests/data/test6-update/.hg/store/data/pub__valid__file.xml.i new file mode 100644 index 00000000..fd3c7f7b Binary files /dev/null and b/lib/wlrepo/tests/data/test6-update/.hg/store/data/pub__valid__file.xml.i differ diff --git a/lib/wlrepo/tests/data/test6-update/.hg/store/fncache b/lib/wlrepo/tests/data/test6-update/.hg/store/fncache new file mode 100644 index 00000000..0e671a68 --- /dev/null +++ b/lib/wlrepo/tests/data/test6-update/.hg/store/fncache @@ -0,0 +1,5 @@ +data/.hgignore.i +data/ignored_file.i +data/pub_valid_file.xml.i +data/pub_polish_file.xml.i +data/pub_ala.xml.i diff --git a/lib/wlrepo/tests/data/test6-update/.hg/store/undo b/lib/wlrepo/tests/data/test6-update/.hg/store/undo new file mode 100644 index 00000000..653cbbb9 Binary files /dev/null and b/lib/wlrepo/tests/data/test6-update/.hg/store/undo differ diff --git a/lib/wlrepo/tests/data/test6-update/.hg/undo.branch b/lib/wlrepo/tests/data/test6-update/.hg/undo.branch new file mode 100644 index 00000000..331d858c --- /dev/null +++ b/lib/wlrepo/tests/data/test6-update/.hg/undo.branch @@ -0,0 +1 @@ +default \ No newline at end of file diff --git a/lib/wlrepo/tests/data/test6-update/.hg/undo.dirstate b/lib/wlrepo/tests/data/test6-update/.hg/undo.dirstate new file mode 100644 index 00000000..ecb13c24 Binary files /dev/null and b/lib/wlrepo/tests/data/test6-update/.hg/undo.dirstate differ diff --git a/lib/wlrepo/tests/data/test6-update/.hgignore b/lib/wlrepo/tests/data/test6-update/.hgignore new file mode 100644 index 00000000..e69de29b diff --git a/lib/wlrepo/tests/data/test6-update/pub_ala.xml b/lib/wlrepo/tests/data/test6-update/pub_ala.xml new file mode 100644 index 00000000..94d21052 --- /dev/null +++ b/lib/wlrepo/tests/data/test6-update/pub_ala.xml @@ -0,0 +1 @@ +Super tekst. diff --git a/lib/wlrepo/tests/data/test6-update/pub_valid_file.xml b/lib/wlrepo/tests/data/test6-update/pub_valid_file.xml new file mode 100644 index 00000000..84321884 --- /dev/null +++ b/lib/wlrepo/tests/data/test6-update/pub_valid_file.xml @@ -0,0 +1 @@ +Ala ma kota diff --git a/lib/wlrepo/tests/test_mercurial.py b/lib/wlrepo/tests/test_mercurial.py index 69978260..1bf5d5bf 100644 --- a/lib/wlrepo/tests/test_mercurial.py +++ b/lib/wlrepo/tests/test_mercurial.py @@ -13,224 +13,218 @@ from wlrepo.backend_mercurial import * import os, os.path, tempfile import shutil -REPO_TEMPLATES = os.path.join( os.path.dirname(__file__), 'data/repos') -ROOT_PATH = None - -class testBasicLibrary(object): - - def setUp(self): - self.path = tempfile.mkdtemp("", "testdir_" ) - print self.path - for subdir in os.listdir(REPO_TEMPLATES): - shutil.copytree(REPO_TEMPLATES + '/' + subdir, self.path + '/' + subdir, False) - - def tearDown(self): - if self.path is not None: - shutil.rmtree(self.path, True) - pass - - def test_opening(self): - library = MercurialLibrary(self.path + '/cleanrepo') - - def test_main_cabinett(self): - library = MercurialLibrary(self.path + '/cleanrepo') - - mcab = library.main_cabinet - assert_equal(mcab.maindoc_name, '') - - # @type mcab MercurialCabinet - doclist = mcab.documents() - assert_equal( list(doclist), ['valid_file']) - - - def test_read_document(self): - library = MercurialLibrary(self.path + '/testrepoI') - doc = library.main_cabinet.retrieve('valid_file') - - assert_equal(doc.read().strip(), 'Ala ma kota') - - def test_read_UTF8_document(self): - library = MercurialLibrary(self.path + '/testrepoI') - doc = library.main_cabinet.retrieve('polish_file') - - assert_equal(doc.read().strip(), u'Gąska!'.encode('utf-8')) - - def test_write_document(self): - library = MercurialLibrary(self.path + '/testrepoI') - doc = library.main_cabinet.retrieve('valid_file') - - assert_equal(doc.read().strip(), 'Ala ma kota') - - STRING = u'Gąski lubią pływać!\n'.encode('utf-8') - doc.write(STRING) - - assert_equal(doc.read(), STRING) - - def test_create_document(self): - repopath = os.path.join(self.path, 'testrepoI') - - library = MercurialLibrary(repopath) - doc = library.main_cabinet.create("another_file", "Some text") - assert_equal( doc.read(), "Some text") - assert_true( os.path.isfile( os.path.join(repopath, "pub_another_file.xml")) ) - - def test_switch_branch(self): - library = MercurialLibrary(self.path + '/testrepoII') - - tester_cab = library.cabinet("valid_file", "tester", create=False) - assert_equal( list(tester_cab.documents()), ['valid_file']) - - @raises(wlrepo.CabinetNotFound) - def test_branch_not_found(self): - library = MercurialLibrary(self.path + '/testrepoII') - tester_cab = library.cabinet("ugh", "tester", create=False) - - def test_no_branches(self): - library = MercurialLibrary(self.path + '/testrepoII') - n4 = library.shelf(4) - n3 = library.shelf(3) - n2 = library.shelf(2) - n1 = library.shelf(1) - n0 = library.shelf(0) - - assert_true( n3.parentof(n4) ) - assert_false( n4.parentof(n3) ) - assert_true( n0.parentof(n1) ) - assert_false( n1.parentof(n0) ) - assert_false( n0.parentof(n4) ) - - # def test_ancestor_of_simple(self): - assert_true( n3.ancestorof(n4) ) - assert_true( n2.ancestorof(n4) ) - assert_true( n1.ancestorof(n4) ) - assert_true( n0.ancestorof(n4) ) - - assert_true( n2.ancestorof(n3) ) - assert_true( n1.ancestorof(n3) ) - assert_true( n0.ancestorof(n3) ) - - assert_false( n4.ancestorof(n4) ) - assert_false( n4.ancestorof(n3) ) - assert_false( n3.ancestorof(n2) ) - assert_false( n3.ancestorof(n1) ) - assert_false( n3.ancestorof(n0) ) - - # def test_common_ancestor_simple(self): - assert_true( n3.has_common_ancestor(n4) ) - assert_true( n3.has_common_ancestor(n3) ) - assert_true( n3.has_common_ancestor(n3) ) - - - def test_once_branched(self): - library = MercurialLibrary(self.path + '/test3') - - n7 = library.shelf(7) - n6 = library.shelf(6) - n5 = library.shelf(5) - n4 = library.shelf(4) - n3 = library.shelf(3) - n2 = library.shelf(2) - - assert_true( n2.parentof(n3) ) - assert_false( n3.parentof(n2) ) - - assert_true( n2.parentof(n5) ) - assert_false( n5.parentof(n2) ) - - assert_false( n2.parentof(n4) ) - assert_false( n2.parentof(n6) ) - assert_false( n3.parentof(n5) ) - assert_false( n5.parentof(n3) ) - - # def test_ancestorof_branched(self): - assert_true( n2.ancestorof(n7) ) - assert_false( n7.ancestorof(n2) ) - assert_true( n2.ancestorof(n6) ) - assert_false( n6.ancestorof(n2) ) - assert_true( n2.ancestorof(n5) ) - assert_false( n5.ancestorof(n2) ) - - assert_false( n3.ancestorof(n5) ) - assert_false( n5.ancestorof(n3) ) - assert_false( n4.ancestorof(n5) ) - assert_false( n5.ancestorof(n4) ) - assert_false( n3.ancestorof(n7) ) - assert_false( n7.ancestorof(n3) ) - assert_false( n4.ancestorof(n6) ) - assert_false( n6.ancestorof(n4) ) - - # def test_common_ancestor_branched(self): - assert_true( n2.has_common_ancestor(n4) ) - assert_true( n2.has_common_ancestor(n7) ) - assert_true( n2.has_common_ancestor(n6) ) - - # cause it's not in the right branch - assert_false( n5.has_common_ancestor(n3) ) - assert_false( n7.has_common_ancestor(n4) ) - - def test_after_merge(self): - library = MercurialLibrary(self.path + '/test4') - n8 = library.shelf(8) - n7 = library.shelf(7) - n6 = library.shelf(6) - - assert_true( n7.parentof(n8) ) - assert_false( n8.parentof(n7) ) - - assert_true( n7.ancestorof(n8) ) - assert_true( n6.ancestorof(n8) ) - - - assert_true( n7.has_common_ancestor(n8) ) - # cause it's not in the right branch - assert_false( n8.has_common_ancestor(n7) ) - - - def test_after_merge_and_local_commit(self): - library = MercurialLibrary(self.path + '/test5b') - n9 = library.shelf(9) - n8 = library.shelf(8) - n7 = library.shelf(7) - n6 = library.shelf(6) - - assert_true( n7.parentof(n8) ) - assert_false( n8.parentof(n7) ) - - assert_true( n9.has_common_ancestor(n8) ) - # cause it's not in the right branch - assert_false( n8.has_common_ancestor(n9) ) +REPO_TEMPLATES = os.path.join( os.path.dirname(__file__), 'data/repos') - def test_merge_personal_to_default(self): - library = MercurialLibrary(self.path + '/test3') +def temprepo(name): + def decorator(func): + def decorated(self, *args, **kwargs): + clean = False + try: + temp = tempfile.mkdtemp("", "testdir_" ) + path = join(temp, 'repo') + shutil.copytree(join(REPO_TEMPLATES, name), path, False) + repo = MercurialLibrary(path) + func(self, *args, library=repo, **kwargs) + clean = True + finally: + #if not clean and self.response: + # print "RESULT", func.__name__, ">>>" + # print self.response + # print "<<<" + shutil.rmtree(temp, True) + + return decorated + return decorator + + +@temprepo('clean') +def test_opening(library): + pass + +@temprepo('clean') +def test_main_cabinet(library): + mcab = library.main_cabinet + assert_equal(mcab.maindoc_name, '') + + doclist = mcab.documents() + assert_equal( list(doclist), ['valid_file']) + +@temprepo('simple') +def test_read_document(library): + doc = library.main_cabinet.retrieve('valid_file') + assert_equal(doc.read().strip(), 'Ala ma kota') + +@temprepo('simple') +def test_read_UTF8_document(library): + doc = library.main_cabinet.retrieve('polish_file') + assert_equal(doc.read().strip(), u'Gąska!'.encode('utf-8')) + +@temprepo('simple') +def test_write_document(library): + doc = library.main_cabinet.retrieve('valid_file') + assert_equal(doc.read().strip(), 'Ala ma kota') + STRING = u'Gąski lubią pływać!\n'.encode('utf-8') + doc.write(STRING) + assert_equal(doc.read(), STRING) + +@temprepo('simple') +def test_create_document(library): + doc = library.main_cabinet.create("another_file", "Some text") + assert_equal( doc.read(), "Some text") + assert_true( os.path.isfile( os.path.join(repopath, "pub_another_file.xml")) ) + +@temprepo('branched') +def test_switch_branch(library): + tester_cab = library.cabinet("valid_file", "tester", create=False) + assert_equal( list(tester_cab.documents()), ['valid_file']) + +@raises(wlrepo.CabinetNotFound) +@temprepo('branched') +def test_branch_not_found(library): + tester_cab = library.cabinet("ugh", "tester", create=False) + +@temprepo('branched') +def test_no_branches(library): + n4 = library.shelf(4) + n3 = library.shelf(3) + n2 = library.shelf(2) + n1 = library.shelf(1) + n0 = library.shelf(0) + + assert_true( n3.parentof(n4) ) + assert_false( n4.parentof(n3) ) + assert_true( n0.parentof(n1) ) + assert_false( n1.parentof(n0) ) + assert_false( n0.parentof(n4) ) + +# def test_ancestor_of_simple(self): + assert_true( n3.ancestorof(n4) ) + assert_true( n2.ancestorof(n4) ) + assert_true( n1.ancestorof(n4) ) + assert_true( n0.ancestorof(n4) ) + + assert_true( n2.ancestorof(n3) ) + assert_true( n1.ancestorof(n3) ) + assert_true( n0.ancestorof(n3) ) + + assert_false( n4.ancestorof(n4) ) + assert_false( n4.ancestorof(n3) ) + assert_false( n3.ancestorof(n2) ) + assert_false( n3.ancestorof(n1) ) + assert_false( n3.ancestorof(n0) ) + +# def test_common_ancestor_simple(self): + assert_true( n3.has_common_ancestor(n4) ) + assert_true( n3.has_common_ancestor(n3) ) + assert_true( n3.has_common_ancestor(n3) ) + + +@temprepo('branched_two') +def test_once_branched(library): + n7 = library.shelf(7) + n6 = library.shelf(6) + n5 = library.shelf(5) + n4 = library.shelf(4) + n3 = library.shelf(3) + n2 = library.shelf(2) + + assert_true( n2.parentof(n3) ) + assert_false( n3.parentof(n2) ) + + assert_true( n2.parentof(n5) ) + assert_false( n5.parentof(n2) ) + + assert_false( n2.parentof(n4) ) + assert_false( n2.parentof(n6) ) + assert_false( n3.parentof(n5) ) + assert_false( n5.parentof(n3) ) + +# def test_ancestorof_branched(self): + assert_true( n2.ancestorof(n7) ) + assert_false( n7.ancestorof(n2) ) + assert_true( n2.ancestorof(n6) ) + assert_false( n6.ancestorof(n2) ) + assert_true( n2.ancestorof(n5) ) + assert_false( n5.ancestorof(n2) ) + + assert_false( n3.ancestorof(n5) ) + assert_false( n5.ancestorof(n3) ) + assert_false( n4.ancestorof(n5) ) + assert_false( n5.ancestorof(n4) ) + assert_false( n3.ancestorof(n7) ) + assert_false( n7.ancestorof(n3) ) + assert_false( n4.ancestorof(n6) ) + assert_false( n6.ancestorof(n4) ) + +# def test_common_ancestor_branched(self): + assert_true( n2.has_common_ancestor(n4) ) + assert_true( n2.has_common_ancestor(n7) ) + assert_true( n2.has_common_ancestor(n6) ) + + # cause it's not in the right branch + assert_false( n5.has_common_ancestor(n3) ) + assert_false( n7.has_common_ancestor(n4) ) + +@temprepo('merged') +def test_after_merge(library): + n8 = library.shelf(8) + n7 = library.shelf(7) + n6 = library.shelf(6) + + assert_true( n7.parentof(n8) ) + assert_false( n8.parentof(n7) ) + + assert_true( n7.ancestorof(n8) ) + assert_true( n6.ancestorof(n8) ) + + + assert_true( n7.has_common_ancestor(n8) ) + # cause it's not in the right branch + assert_false( n8.has_common_ancestor(n7) ) + +@temprepo('merged_with_local_commit') +def test_after_merge_and_local_commit(library): + n9 = library.shelf(9) + n8 = library.shelf(8) + n7 = library.shelf(7) + n6 = library.shelf(6) + + assert_true( n7.parentof(n8) ) + assert_false( n8.parentof(n7) ) + + assert_true( n9.has_common_ancestor(n8) ) + # cause it's not in the right branch + assert_false( n8.has_common_ancestor(n9) ) + + +@temprepo('branched2') +def test_merge_personal_to_default(library): + main = library.shelf(2) + local = library.shelf(7) - main = library.shelf(2) - local = library.shelf(7) + document = library.document("ala", "admin") + shared = document.shared() + print document, shared - document = library.document("ala", "admin") - shared = document.shared() - print document, shared + document.share("Here is my copy!") + + assert_equal( document.shelf(), local) # local didn't change - document.share("Here is my copy!") - assert_equal( document.shelf(), local) # local didn't change + new_main = shared.shelf() + assert_not_equal( new_main, main) # main has new revision - - new_main = shared.shelf() - assert_not_equal( new_main, main) # main has new revision - - # check for parents - assert_true( main.parentof(new_main) ) - assert_true( local.parentof(new_main) ) - - + # check for parents + assert_true( main.parentof(new_main) ) + assert_true( local.parentof(new_main) ) - def testCreateBranch(self): - repopath = os.path.join(self.path, 'testrepoII') - library = MercurialLibrary(repopath) +@temprepo('clean') +def testCreateBranch(library): + library = MercurialLibrary(repopath) - tester_cab = library.cabinet("anotherone", "tester", create=True) - assert_equal( list(tester_cab.documents()), ['anotherone']) + tester_cab = library.cabinet("anotherone", "tester", create=True) + assert_equal( list(tester_cab.documents()), ['anotherone'])