From 3bcc03862b46d25ec0c81cfa49c0d1596ba0c271 Mon Sep 17 00:00:00 2001 From: zuber Date: Thu, 26 Nov 2009 23:06:07 +0100 Subject: [PATCH] =?utf8?q?Dodanie=20biblioteki=20vstorage=20(pierwszy=20co?= =?utf8?q?mmit=20zmierzaj=C4=85cy=20do=20uliniowienia=20historii=20zmian?= =?utf8?q?=20i=20uproszczenia=20workflowu).?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../branched/.hgignore => tests/__init__.py} | 0 lib/tests/test_vstorage.py | 94 +++++ lib/vstorage/__init__.py | 399 ++++++++++++++++++ lib/wlrepo/__init__.py | 144 ------- lib/wlrepo/mercurial_backend/__init__.py | 14 - lib/wlrepo/mercurial_backend/document.py | 245 ----------- lib/wlrepo/mercurial_backend/library.py | 283 ------------- lib/wlrepo/mercurial_backend/revision.py | 114 ----- lib/wlrepo/tests/__init__.py | 7 - .../tests/data/branched/.hg/00changelog.i | Bin 57 -> 0 bytes lib/wlrepo/tests/data/branched/.hg/branch | 1 - .../tests/data/branched/.hg/branchheads.cache | 4 - lib/wlrepo/tests/data/branched/.hg/dirstate | Bin 166 -> 0 bytes lib/wlrepo/tests/data/branched/.hg/requires | 3 - .../data/branched/.hg/store/00changelog.i | Bin 947 -> 0 bytes .../data/branched/.hg/store/00manifest.i | Bin 670 -> 0 bytes .../data/branched/.hg/store/data/.hgignore.i | Bin 64 -> 0 bytes .../branched/.hg/store/data/ignored__file.i | Bin 64 -> 0 bytes .../.hg/store/data/pub__polish__file.xml.i | Bin 73 -> 0 bytes .../.hg/store/data/pub__valid__file.xml.i | Bin 152 -> 0 bytes .../tests/data/branched/.hg/store/fncache | 4 - lib/wlrepo/tests/data/branched/.hg/store/undo | Bin 35 -> 0 bytes .../tests/data/branched/.hg/undo.branch | 1 - .../tests/data/branched/.hg/undo.dirstate | Bin 101 -> 0 bytes lib/wlrepo/tests/data/branched/ignored_file | 0 .../tests/data/branched/pub_polish_file.xml | 1 - .../tests/data/branched/pub_valid_file.xml | 1 - .../tests/data/branched2/.hg/00changelog.i | Bin 57 -> 0 bytes lib/wlrepo/tests/data/branched2/.hg/branch | 1 - .../data/branched2/.hg/branchheads.cache | 5 - lib/wlrepo/tests/data/branched2/.hg/dirstate | Bin 166 -> 0 bytes lib/wlrepo/tests/data/branched2/.hg/requires | 3 - .../data/branched2/.hg/store/00changelog.i | Bin 1518 -> 0 bytes .../data/branched2/.hg/store/00manifest.i | Bin 1102 -> 0 bytes .../data/branched2/.hg/store/data/.hgignore.i | Bin 64 -> 0 bytes .../branched2/.hg/store/data/ignored__file.i | Bin 64 -> 0 bytes .../branched2/.hg/store/data/pub__ala.xml.i | Bin 153 -> 0 bytes .../.hg/store/data/pub__polish__file.xml.i | Bin 73 -> 0 bytes .../.hg/store/data/pub__valid__file.xml.i | Bin 152 -> 0 bytes .../tests/data/branched2/.hg/store/fncache | 5 - .../tests/data/branched2/.hg/store/undo | Bin 58 -> 0 bytes .../tests/data/branched2/.hg/undo.branch | 1 - .../tests/data/branched2/.hg/undo.dirstate | Bin 194 -> 0 bytes lib/wlrepo/tests/data/branched2/.hgignore | 0 lib/wlrepo/tests/data/branched2/ignored_file | 0 .../tests/data/branched2/pub_polish_file.xml | 1 - .../tests/data/branched2/pub_valid_file.xml | 1 - lib/wlrepo/tests/data/clean/$meta | 0 lib/wlrepo/tests/data/clean/.hg/00changelog.i | Bin 57 -> 0 bytes lib/wlrepo/tests/data/clean/.hg/dirstate | Bin 88 -> 0 bytes lib/wlrepo/tests/data/clean/.hg/requires | 3 - .../tests/data/clean/.hg/store/00changelog.i | Bin 176 -> 0 bytes .../tests/data/clean/.hg/store/00manifest.i | Bin 130 -> 0 bytes .../tests/data/clean/.hg/store/data/$meta.i | Bin 64 -> 0 bytes .../data/clean/.hg/store/data/.hgignore.i | Bin 64 -> 0 bytes lib/wlrepo/tests/data/clean/.hg/store/fncache | 2 - lib/wlrepo/tests/data/clean/.hg/store/undo | Bin 65 -> 0 bytes lib/wlrepo/tests/data/clean/.hg/undo.branch | 1 - lib/wlrepo/tests/data/clean/.hg/undo.dirstate | Bin 88 -> 0 bytes lib/wlrepo/tests/data/clean/.hgignore | 0 .../tests/data/merged/.hg/00changelog.i | Bin 57 -> 0 bytes lib/wlrepo/tests/data/merged/.hg/branch | 1 - .../tests/data/merged/.hg/branchheads.cache | 5 - lib/wlrepo/tests/data/merged/.hg/dirstate | Bin 194 -> 0 bytes lib/wlrepo/tests/data/merged/.hg/requires | 3 - .../tests/data/merged/.hg/store/00changelog.i | Bin 1687 -> 0 bytes .../tests/data/merged/.hg/store/00manifest.i | Bin 1166 -> 0 bytes .../data/merged/.hg/store/data/.hgignore.i | Bin 64 -> 0 bytes .../merged/.hg/store/data/ignored__file.i | Bin 64 -> 0 bytes .../data/merged/.hg/store/data/pub__ala.xml.i | Bin 153 -> 0 bytes .../.hg/store/data/pub__polish__file.xml.i | Bin 73 -> 0 bytes .../.hg/store/data/pub__valid__file.xml.i | Bin 152 -> 0 bytes .../tests/data/merged/.hg/store/fncache | 5 - lib/wlrepo/tests/data/merged/.hg/store/undo | Bin 37 -> 0 bytes lib/wlrepo/tests/data/merged/.hg/undo.branch | 1 - .../tests/data/merged/.hg/undo.dirstate | Bin 194 -> 0 bytes lib/wlrepo/tests/data/merged/.hgignore | 0 lib/wlrepo/tests/data/merged/ignored_file | 0 lib/wlrepo/tests/data/merged/pub_ala.xml | 1 - .../tests/data/merged/pub_polish_file.xml | 1 - .../tests/data/merged/pub_valid_file.xml | 1 - .../.hg/00changelog.i | Bin 57 -> 0 bytes .../data/merged_with_local_commit/.hg/branch | 1 - .../.hg/branchheads.cache | 5 - .../merged_with_local_commit/.hg/dirstate | Bin 194 -> 0 bytes .../merged_with_local_commit/.hg/requires | 3 - .../.hg/store/00changelog.i | Bin 1891 -> 0 bytes .../.hg/store/00manifest.i | Bin 1295 -> 0 bytes .../.hg/store/data/.hgignore.i | Bin 64 -> 0 bytes .../.hg/store/data/ignored__file.i | Bin 64 -> 0 bytes .../.hg/store/data/pub__ala.xml.i | Bin 239 -> 0 bytes .../.hg/store/data/pub__polish__file.xml.i | Bin 73 -> 0 bytes .../.hg/store/data/pub__valid__file.xml.i | Bin 152 -> 0 bytes .../.hg/store/fncache | 5 - .../merged_with_local_commit/.hg/store/undo | Bin 60 -> 0 bytes .../merged_with_local_commit/.hg/undo.branch | 1 - .../.hg/undo.dirstate | Bin 194 -> 0 bytes .../data/merged_with_local_commit/.hgignore | 0 .../merged_with_local_commit/ignored_file | 0 .../data/merged_with_local_commit/pub_ala.xml | 1 - .../pub_polish_file.xml | 1 - .../pub_valid_file.xml | 1 - lib/wlrepo/tests/data/simple/$meta | 0 .../tests/data/simple/.hg/00changelog.i | Bin 57 -> 0 bytes lib/wlrepo/tests/data/simple/.hg/branch | 1 - .../tests/data/simple/.hg/branchheads.cache | 4 - lib/wlrepo/tests/data/simple/.hg/dirstate | Bin 112 -> 0 bytes lib/wlrepo/tests/data/simple/.hg/requires | 3 - .../tests/data/simple/.hg/store/00changelog.i | Bin 759 -> 0 bytes .../tests/data/simple/.hg/store/00manifest.i | Bin 588 -> 0 bytes .../tests/data/simple/.hg/store/data/$meta.i | Bin 64 -> 0 bytes .../data/simple/.hg/store/data/.hgignore.i | Bin 64 -> 0 bytes .../data/simple/.hg/store/data/.hgtags.i | Bin 118 -> 0 bytes .../data/simple/.hg/store/data/sample.parts.i | Bin 64 -> 0 bytes .../data/simple/.hg/store/data/sample.xml.i | Bin 77 -> 0 bytes .../simple/.hg/store/data/sample__pl.xml.i | Bin 79 -> 0 bytes .../tests/data/simple/.hg/store/fncache | 6 - lib/wlrepo/tests/data/simple/.hg/store/undo | Bin 52 -> 0 bytes .../.hg/strip-backup/26716f931d95-backup | Bin 867 -> 0 bytes lib/wlrepo/tests/data/simple/.hg/undo.branch | 1 - .../tests/data/simple/.hg/undo.dirstate | Bin 112 -> 0 bytes lib/wlrepo/tests/data/simple/.hgignore | 0 lib/wlrepo/tests/data/simple/.hgtags | 1 - lib/wlrepo/tests/data/test5/.hg/00changelog.i | Bin 57 -> 0 bytes lib/wlrepo/tests/data/test5/.hg/branch | 1 - .../tests/data/test5/.hg/branchheads.cache | 5 - lib/wlrepo/tests/data/test5/.hg/dirstate | Bin 194 -> 0 bytes lib/wlrepo/tests/data/test5/.hg/requires | 3 - .../tests/data/test5/.hg/store/00changelog.i | Bin 1869 -> 0 bytes .../tests/data/test5/.hg/store/00manifest.i | Bin 1295 -> 0 bytes .../data/test5/.hg/store/data/.hgignore.i | Bin 64 -> 0 bytes .../data/test5/.hg/store/data/ignored__file.i | Bin 64 -> 0 bytes .../data/test5/.hg/store/data/pub__ala.xml.i | Bin 244 -> 0 bytes .../.hg/store/data/pub__polish__file.xml.i | Bin 73 -> 0 bytes .../.hg/store/data/pub__valid__file.xml.i | Bin 152 -> 0 bytes lib/wlrepo/tests/data/test5/.hg/store/fncache | 5 - lib/wlrepo/tests/data/test5/.hg/store/undo | Bin 60 -> 0 bytes lib/wlrepo/tests/data/test5/.hg/undo.branch | 1 - lib/wlrepo/tests/data/test5/.hg/undo.dirstate | Bin 194 -> 0 bytes lib/wlrepo/tests/data/test5/.hgignore | 0 lib/wlrepo/tests/data/test5/ignored_file | 0 lib/wlrepo/tests/data/test5/pub_ala.xml | 1 - .../tests/data/test5/pub_polish_file.xml | 1 - .../tests/data/test5/pub_valid_file.xml | 1 - .../tests/data/test5c/.hg/00changelog.i | Bin 57 -> 0 bytes lib/wlrepo/tests/data/test5c/.hg/branch | 1 - .../tests/data/test5c/.hg/branchheads.cache | 5 - lib/wlrepo/tests/data/test5c/.hg/dirstate | Bin 194 -> 0 bytes lib/wlrepo/tests/data/test5c/.hg/requires | 3 - .../tests/data/test5c/.hg/store/00changelog.i | Bin 2087 -> 0 bytes .../tests/data/test5c/.hg/store/00manifest.i | Bin 1424 -> 0 bytes .../data/test5c/.hg/store/data/.hgignore.i | Bin 64 -> 0 bytes .../test5c/.hg/store/data/ignored__file.i | Bin 64 -> 0 bytes .../data/test5c/.hg/store/data/pub__ala.xml.i | Bin 360 -> 0 bytes .../.hg/store/data/pub__polish__file.xml.i | Bin 73 -> 0 bytes .../.hg/store/data/pub__valid__file.xml.i | Bin 152 -> 0 bytes .../tests/data/test5c/.hg/store/fncache | 5 - lib/wlrepo/tests/data/test5c/.hg/store/undo | Bin 60 -> 0 bytes lib/wlrepo/tests/data/test5c/.hg/undo.branch | 1 - .../tests/data/test5c/.hg/undo.dirstate | Bin 194 -> 0 bytes lib/wlrepo/tests/data/test5c/.hgignore | 0 lib/wlrepo/tests/data/test5c/ignored_file | 0 lib/wlrepo/tests/data/test5c/pub_ala.xml | 1 - .../tests/data/test5c/pub_polish_file.xml | 1 - .../tests/data/test5c/pub_valid_file.xml | 1 - .../tests/data/test6-update/.hg/00changelog.i | Bin 57 -> 0 bytes lib/wlrepo/tests/data/test6-update/.hg/branch | 1 - .../data/test6-update/.hg/branchheads.cache | 5 - .../tests/data/test6-update/.hg/dirstate | Bin 129 -> 0 bytes .../tests/data/test6-update/.hg/requires | 3 - .../data/test6-update/.hg/store/00changelog.i | Bin 2291 -> 0 bytes .../data/test6-update/.hg/store/00manifest.i | Bin 1618 -> 0 bytes .../test6-update/.hg/store/data/.hgignore.i | Bin 64 -> 0 bytes .../.hg/store/data/ignored__file.i | Bin 64 -> 0 bytes .../.hg/store/data/pub__ala.xml.i | Bin 360 -> 0 bytes .../.hg/store/data/pub__polish__file.xml.i | Bin 73 -> 0 bytes .../.hg/store/data/pub__valid__file.xml.i | Bin 152 -> 0 bytes .../tests/data/test6-update/.hg/store/fncache | 5 - .../tests/data/test6-update/.hg/store/undo | Bin 37 -> 0 bytes .../tests/data/test6-update/.hg/undo.branch | 1 - .../tests/data/test6-update/.hg/undo.dirstate | Bin 194 -> 0 bytes lib/wlrepo/tests/data/test6-update/.hgignore | 0 .../tests/data/test6-update/pub_ala.xml | 1 - .../data/test6-update/pub_valid_file.xml | 1 - lib/wlrepo/tests/test_mercurial.py | 242 ----------- 185 files changed, 493 insertions(+), 1192 deletions(-) rename lib/{wlrepo/tests/data/branched/.hgignore => tests/__init__.py} (100%) create mode 100644 lib/tests/test_vstorage.py create mode 100644 lib/vstorage/__init__.py delete mode 100755 lib/wlrepo/__init__.py delete mode 100644 lib/wlrepo/mercurial_backend/__init__.py delete mode 100755 lib/wlrepo/mercurial_backend/document.py delete mode 100755 lib/wlrepo/mercurial_backend/library.py delete mode 100755 lib/wlrepo/mercurial_backend/revision.py delete mode 100644 lib/wlrepo/tests/__init__.py delete mode 100644 lib/wlrepo/tests/data/branched/.hg/00changelog.i delete mode 100644 lib/wlrepo/tests/data/branched/.hg/branch delete mode 100644 lib/wlrepo/tests/data/branched/.hg/branchheads.cache delete mode 100644 lib/wlrepo/tests/data/branched/.hg/dirstate delete mode 100644 lib/wlrepo/tests/data/branched/.hg/requires delete mode 100644 lib/wlrepo/tests/data/branched/.hg/store/00changelog.i delete mode 100644 lib/wlrepo/tests/data/branched/.hg/store/00manifest.i delete mode 100644 lib/wlrepo/tests/data/branched/.hg/store/data/.hgignore.i delete mode 100644 lib/wlrepo/tests/data/branched/.hg/store/data/ignored__file.i delete mode 100644 lib/wlrepo/tests/data/branched/.hg/store/data/pub__polish__file.xml.i delete mode 100644 lib/wlrepo/tests/data/branched/.hg/store/data/pub__valid__file.xml.i delete mode 100644 lib/wlrepo/tests/data/branched/.hg/store/fncache delete mode 100644 lib/wlrepo/tests/data/branched/.hg/store/undo delete mode 100644 lib/wlrepo/tests/data/branched/.hg/undo.branch delete mode 100644 lib/wlrepo/tests/data/branched/.hg/undo.dirstate delete mode 100644 lib/wlrepo/tests/data/branched/ignored_file delete mode 100644 lib/wlrepo/tests/data/branched/pub_polish_file.xml delete mode 100644 lib/wlrepo/tests/data/branched/pub_valid_file.xml delete mode 100644 lib/wlrepo/tests/data/branched2/.hg/00changelog.i delete mode 100644 lib/wlrepo/tests/data/branched2/.hg/branch delete mode 100644 lib/wlrepo/tests/data/branched2/.hg/branchheads.cache delete mode 100644 lib/wlrepo/tests/data/branched2/.hg/dirstate delete mode 100644 lib/wlrepo/tests/data/branched2/.hg/requires delete mode 100644 lib/wlrepo/tests/data/branched2/.hg/store/00changelog.i delete mode 100644 lib/wlrepo/tests/data/branched2/.hg/store/00manifest.i delete mode 100644 lib/wlrepo/tests/data/branched2/.hg/store/data/.hgignore.i delete mode 100644 lib/wlrepo/tests/data/branched2/.hg/store/data/ignored__file.i delete mode 100644 lib/wlrepo/tests/data/branched2/.hg/store/data/pub__ala.xml.i delete mode 100644 lib/wlrepo/tests/data/branched2/.hg/store/data/pub__polish__file.xml.i delete mode 100644 lib/wlrepo/tests/data/branched2/.hg/store/data/pub__valid__file.xml.i delete mode 100644 lib/wlrepo/tests/data/branched2/.hg/store/fncache delete mode 100644 lib/wlrepo/tests/data/branched2/.hg/store/undo delete mode 100644 lib/wlrepo/tests/data/branched2/.hg/undo.branch delete mode 100644 lib/wlrepo/tests/data/branched2/.hg/undo.dirstate delete mode 100644 lib/wlrepo/tests/data/branched2/.hgignore delete mode 100644 lib/wlrepo/tests/data/branched2/ignored_file delete mode 100644 lib/wlrepo/tests/data/branched2/pub_polish_file.xml delete mode 100644 lib/wlrepo/tests/data/branched2/pub_valid_file.xml delete mode 100644 lib/wlrepo/tests/data/clean/$meta delete mode 100644 lib/wlrepo/tests/data/clean/.hg/00changelog.i delete mode 100644 lib/wlrepo/tests/data/clean/.hg/dirstate delete mode 100644 lib/wlrepo/tests/data/clean/.hg/requires delete mode 100644 lib/wlrepo/tests/data/clean/.hg/store/00changelog.i delete mode 100644 lib/wlrepo/tests/data/clean/.hg/store/00manifest.i delete mode 100644 lib/wlrepo/tests/data/clean/.hg/store/data/$meta.i delete mode 100644 lib/wlrepo/tests/data/clean/.hg/store/data/.hgignore.i delete mode 100644 lib/wlrepo/tests/data/clean/.hg/store/fncache delete mode 100644 lib/wlrepo/tests/data/clean/.hg/store/undo delete mode 100644 lib/wlrepo/tests/data/clean/.hg/undo.branch delete mode 100644 lib/wlrepo/tests/data/clean/.hg/undo.dirstate delete mode 100644 lib/wlrepo/tests/data/clean/.hgignore delete mode 100644 lib/wlrepo/tests/data/merged/.hg/00changelog.i delete mode 100644 lib/wlrepo/tests/data/merged/.hg/branch delete mode 100644 lib/wlrepo/tests/data/merged/.hg/branchheads.cache delete mode 100644 lib/wlrepo/tests/data/merged/.hg/dirstate delete mode 100644 lib/wlrepo/tests/data/merged/.hg/requires delete mode 100644 lib/wlrepo/tests/data/merged/.hg/store/00changelog.i delete mode 100644 lib/wlrepo/tests/data/merged/.hg/store/00manifest.i delete mode 100644 lib/wlrepo/tests/data/merged/.hg/store/data/.hgignore.i delete mode 100644 lib/wlrepo/tests/data/merged/.hg/store/data/ignored__file.i delete mode 100644 lib/wlrepo/tests/data/merged/.hg/store/data/pub__ala.xml.i delete mode 100644 lib/wlrepo/tests/data/merged/.hg/store/data/pub__polish__file.xml.i delete mode 100644 lib/wlrepo/tests/data/merged/.hg/store/data/pub__valid__file.xml.i delete mode 100644 lib/wlrepo/tests/data/merged/.hg/store/fncache delete mode 100644 lib/wlrepo/tests/data/merged/.hg/store/undo delete mode 100644 lib/wlrepo/tests/data/merged/.hg/undo.branch delete mode 100644 lib/wlrepo/tests/data/merged/.hg/undo.dirstate delete mode 100644 lib/wlrepo/tests/data/merged/.hgignore delete mode 100644 lib/wlrepo/tests/data/merged/ignored_file delete mode 100644 lib/wlrepo/tests/data/merged/pub_ala.xml delete mode 100644 lib/wlrepo/tests/data/merged/pub_polish_file.xml delete mode 100644 lib/wlrepo/tests/data/merged/pub_valid_file.xml delete mode 100644 lib/wlrepo/tests/data/merged_with_local_commit/.hg/00changelog.i delete mode 100644 lib/wlrepo/tests/data/merged_with_local_commit/.hg/branch delete mode 100644 lib/wlrepo/tests/data/merged_with_local_commit/.hg/branchheads.cache delete mode 100644 lib/wlrepo/tests/data/merged_with_local_commit/.hg/dirstate delete mode 100644 lib/wlrepo/tests/data/merged_with_local_commit/.hg/requires delete mode 100644 lib/wlrepo/tests/data/merged_with_local_commit/.hg/store/00changelog.i delete mode 100644 lib/wlrepo/tests/data/merged_with_local_commit/.hg/store/00manifest.i delete mode 100644 lib/wlrepo/tests/data/merged_with_local_commit/.hg/store/data/.hgignore.i delete mode 100644 lib/wlrepo/tests/data/merged_with_local_commit/.hg/store/data/ignored__file.i delete mode 100644 lib/wlrepo/tests/data/merged_with_local_commit/.hg/store/data/pub__ala.xml.i delete mode 100644 lib/wlrepo/tests/data/merged_with_local_commit/.hg/store/data/pub__polish__file.xml.i delete mode 100644 lib/wlrepo/tests/data/merged_with_local_commit/.hg/store/data/pub__valid__file.xml.i delete mode 100644 lib/wlrepo/tests/data/merged_with_local_commit/.hg/store/fncache delete mode 100644 lib/wlrepo/tests/data/merged_with_local_commit/.hg/store/undo delete mode 100644 lib/wlrepo/tests/data/merged_with_local_commit/.hg/undo.branch delete mode 100644 lib/wlrepo/tests/data/merged_with_local_commit/.hg/undo.dirstate delete mode 100644 lib/wlrepo/tests/data/merged_with_local_commit/.hgignore delete mode 100644 lib/wlrepo/tests/data/merged_with_local_commit/ignored_file delete mode 100644 lib/wlrepo/tests/data/merged_with_local_commit/pub_ala.xml delete mode 100644 lib/wlrepo/tests/data/merged_with_local_commit/pub_polish_file.xml delete mode 100644 lib/wlrepo/tests/data/merged_with_local_commit/pub_valid_file.xml delete mode 100644 lib/wlrepo/tests/data/simple/$meta delete mode 100644 lib/wlrepo/tests/data/simple/.hg/00changelog.i delete mode 100644 lib/wlrepo/tests/data/simple/.hg/branch delete mode 100644 lib/wlrepo/tests/data/simple/.hg/branchheads.cache delete mode 100644 lib/wlrepo/tests/data/simple/.hg/dirstate delete mode 100644 lib/wlrepo/tests/data/simple/.hg/requires delete mode 100644 lib/wlrepo/tests/data/simple/.hg/store/00changelog.i delete mode 100644 lib/wlrepo/tests/data/simple/.hg/store/00manifest.i delete mode 100644 lib/wlrepo/tests/data/simple/.hg/store/data/$meta.i delete mode 100644 lib/wlrepo/tests/data/simple/.hg/store/data/.hgignore.i delete mode 100644 lib/wlrepo/tests/data/simple/.hg/store/data/.hgtags.i delete mode 100644 lib/wlrepo/tests/data/simple/.hg/store/data/sample.parts.i delete mode 100644 lib/wlrepo/tests/data/simple/.hg/store/data/sample.xml.i delete mode 100644 lib/wlrepo/tests/data/simple/.hg/store/data/sample__pl.xml.i delete mode 100644 lib/wlrepo/tests/data/simple/.hg/store/fncache delete mode 100644 lib/wlrepo/tests/data/simple/.hg/store/undo delete mode 100644 lib/wlrepo/tests/data/simple/.hg/strip-backup/26716f931d95-backup delete mode 100644 lib/wlrepo/tests/data/simple/.hg/undo.branch delete mode 100644 lib/wlrepo/tests/data/simple/.hg/undo.dirstate delete mode 100644 lib/wlrepo/tests/data/simple/.hgignore delete mode 100644 lib/wlrepo/tests/data/simple/.hgtags delete mode 100644 lib/wlrepo/tests/data/test5/.hg/00changelog.i delete mode 100644 lib/wlrepo/tests/data/test5/.hg/branch delete mode 100644 lib/wlrepo/tests/data/test5/.hg/branchheads.cache delete mode 100644 lib/wlrepo/tests/data/test5/.hg/dirstate delete mode 100644 lib/wlrepo/tests/data/test5/.hg/requires delete mode 100644 lib/wlrepo/tests/data/test5/.hg/store/00changelog.i delete mode 100644 lib/wlrepo/tests/data/test5/.hg/store/00manifest.i delete mode 100644 lib/wlrepo/tests/data/test5/.hg/store/data/.hgignore.i delete mode 100644 lib/wlrepo/tests/data/test5/.hg/store/data/ignored__file.i delete mode 100644 lib/wlrepo/tests/data/test5/.hg/store/data/pub__ala.xml.i delete mode 100644 lib/wlrepo/tests/data/test5/.hg/store/data/pub__polish__file.xml.i delete mode 100644 lib/wlrepo/tests/data/test5/.hg/store/data/pub__valid__file.xml.i delete mode 100644 lib/wlrepo/tests/data/test5/.hg/store/fncache delete mode 100644 lib/wlrepo/tests/data/test5/.hg/store/undo delete mode 100644 lib/wlrepo/tests/data/test5/.hg/undo.branch delete mode 100644 lib/wlrepo/tests/data/test5/.hg/undo.dirstate delete mode 100644 lib/wlrepo/tests/data/test5/.hgignore delete mode 100644 lib/wlrepo/tests/data/test5/ignored_file delete mode 100644 lib/wlrepo/tests/data/test5/pub_ala.xml delete mode 100644 lib/wlrepo/tests/data/test5/pub_polish_file.xml delete mode 100644 lib/wlrepo/tests/data/test5/pub_valid_file.xml delete mode 100644 lib/wlrepo/tests/data/test5c/.hg/00changelog.i delete mode 100644 lib/wlrepo/tests/data/test5c/.hg/branch delete mode 100644 lib/wlrepo/tests/data/test5c/.hg/branchheads.cache delete mode 100644 lib/wlrepo/tests/data/test5c/.hg/dirstate delete mode 100644 lib/wlrepo/tests/data/test5c/.hg/requires delete mode 100644 lib/wlrepo/tests/data/test5c/.hg/store/00changelog.i delete mode 100644 lib/wlrepo/tests/data/test5c/.hg/store/00manifest.i delete mode 100644 lib/wlrepo/tests/data/test5c/.hg/store/data/.hgignore.i delete mode 100644 lib/wlrepo/tests/data/test5c/.hg/store/data/ignored__file.i delete mode 100644 lib/wlrepo/tests/data/test5c/.hg/store/data/pub__ala.xml.i delete mode 100644 lib/wlrepo/tests/data/test5c/.hg/store/data/pub__polish__file.xml.i delete mode 100644 lib/wlrepo/tests/data/test5c/.hg/store/data/pub__valid__file.xml.i delete mode 100644 lib/wlrepo/tests/data/test5c/.hg/store/fncache delete mode 100644 lib/wlrepo/tests/data/test5c/.hg/store/undo delete mode 100644 lib/wlrepo/tests/data/test5c/.hg/undo.branch delete mode 100644 lib/wlrepo/tests/data/test5c/.hg/undo.dirstate delete mode 100644 lib/wlrepo/tests/data/test5c/.hgignore delete mode 100644 lib/wlrepo/tests/data/test5c/ignored_file delete mode 100644 lib/wlrepo/tests/data/test5c/pub_ala.xml delete mode 100644 lib/wlrepo/tests/data/test5c/pub_polish_file.xml delete mode 100644 lib/wlrepo/tests/data/test5c/pub_valid_file.xml delete mode 100644 lib/wlrepo/tests/data/test6-update/.hg/00changelog.i delete mode 100644 lib/wlrepo/tests/data/test6-update/.hg/branch delete mode 100644 lib/wlrepo/tests/data/test6-update/.hg/branchheads.cache delete mode 100644 lib/wlrepo/tests/data/test6-update/.hg/dirstate delete mode 100644 lib/wlrepo/tests/data/test6-update/.hg/requires delete mode 100644 lib/wlrepo/tests/data/test6-update/.hg/store/00changelog.i delete mode 100644 lib/wlrepo/tests/data/test6-update/.hg/store/00manifest.i delete mode 100644 lib/wlrepo/tests/data/test6-update/.hg/store/data/.hgignore.i delete mode 100644 lib/wlrepo/tests/data/test6-update/.hg/store/data/ignored__file.i delete mode 100644 lib/wlrepo/tests/data/test6-update/.hg/store/data/pub__ala.xml.i delete mode 100644 lib/wlrepo/tests/data/test6-update/.hg/store/data/pub__polish__file.xml.i delete mode 100644 lib/wlrepo/tests/data/test6-update/.hg/store/data/pub__valid__file.xml.i delete mode 100644 lib/wlrepo/tests/data/test6-update/.hg/store/fncache delete mode 100644 lib/wlrepo/tests/data/test6-update/.hg/store/undo delete mode 100644 lib/wlrepo/tests/data/test6-update/.hg/undo.branch delete mode 100644 lib/wlrepo/tests/data/test6-update/.hg/undo.dirstate delete mode 100644 lib/wlrepo/tests/data/test6-update/.hgignore delete mode 100644 lib/wlrepo/tests/data/test6-update/pub_ala.xml delete mode 100644 lib/wlrepo/tests/data/test6-update/pub_valid_file.xml delete mode 100644 lib/wlrepo/tests/test_mercurial.py diff --git a/lib/wlrepo/tests/data/branched/.hgignore b/lib/tests/__init__.py similarity index 100% rename from lib/wlrepo/tests/data/branched/.hgignore rename to lib/tests/__init__.py diff --git a/lib/tests/test_vstorage.py b/lib/tests/test_vstorage.py new file mode 100644 index 00000000..bcaf9162 --- /dev/null +++ b/lib/tests/test_vstorage.py @@ -0,0 +1,94 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- + +import os +import tempfile +from nose.tools import * + +import vstorage + + +def clear_directory(top): + for root, dirs, files in os.walk(top, topdown=False): + for name in files: + os.remove(os.path.join(root, name)) + for name in dirs: + os.rmdir(os.path.join(root, name)) + try: + os.removedirs(top) + except OSError: + pass + + +class TestMercurialStorage(object): + def setUp(self): + self.repo_path = tempfile.mkdtemp() + self.repo = vstorage.VersionedStorage(self.repo_path) + + def tearDown(self): + clear_directory(self.repo_path) + + def test_save_text(self): + text = u"test text" + title = u"test title" + author = u"test author" + comment = u"test comment" + self.repo.save_text(title, text, author, comment, parent=-1) + saved = self.repo.open_page(title).read() + assert saved == text + + def test_save_text_noparent(self): + text = u"test text" + title = u"test title" + author = u"test author" + comment = u"test comment" + self.repo.save_text(title, text, author, comment, parent=None) + saved = self.repo.open_page(title).read() + assert saved == text + + def test_save_merge_no_conflict(self): + text = u"test\ntext" + title = u"test title" + author = u"test author" + comment = u"test comment" + self.repo.save_text(title, text, author, comment, parent=-1) + self.repo.save_text(title, text, author, comment, parent=-1) + saved = self.repo.open_page(title).read() + assert saved == text + + def test_save_merge_line_conflict(self): + text = u"test\ntest\n" + text1 = u"test\ntext\n" + text2 = u"text\ntest\n" + title = u"test title" + author = u"test author" + comment = u"test comment" + self.repo.save_text(title, text, author, comment, parent=-1) + self.repo.save_text(title, text1, author, comment, parent=0) + self.repo.save_text(title, text2, author, comment, parent=0) + saved = self.repo.open_page(title).read() + # Other conflict markers placement can also be correct + assert_equal(saved, u'''\ +text +test +<<<<<<< local +======= +text +>>>>>>> other +''') + + def test_delete(self): + text = u"text test" + title = u"test title" + author = u"test author" + comment = u"test comment" + self.repo.save_text(title, text, author, comment, parent=-1) + assert title in self.repo + self.repo.delete_page(title, author, comment) + assert title not in self.repo + + @raises(vstorage.DocumentNotFound) + def test_document_not_found(self): + self.repo.open_page(u'unknown entity') + + diff --git a/lib/vstorage/__init__.py b/lib/vstorage/__init__.py new file mode 100644 index 00000000..88005da3 --- /dev/null +++ b/lib/vstorage/__init__.py @@ -0,0 +1,399 @@ +# -*- coding: utf-8 -*- +import os +import tempfile +import datetime +import mimetypes +import urllib + +import sys + +# Note: we have to set these before importing Mercurial +os.environ['HGENCODING'] = 'utf-8' +os.environ['HGMERGE'] = "internal:merge" + +import mercurial.hg +import mercurial.ui +import mercurial.revlog +import mercurial.util + + +def urlquote(url, safe='/'): + """Quotes URL + + >>> urlquote(u'Za\u017c\xf3\u0142\u0107 g\u0119\u015bl\u0105 ja\u017a\u0144') + 'Za%C5%BC%C3%B3%C5%82%C4%87_g%C4%99%C5%9Bl%C4%85_ja%C5%BA%C5%84' + """ + return urllib.quote(url.replace(' ', '_').encode('utf-8', 'ignore'), safe) + +def urlunquote(url): + """Unqotes URL + + # >>> urlunquote('Za%C5%BC%C3%B3%C5%82%C4%87_g%C4%99%C5%9Bl%C4%85_ja%C5%BA%C5%84') + # u'Za\u017c\xf3\u0142\u0107 g\u0119\u015bl\u0105 ja\u017a\u0144' + """ + return unicode(urllib.unquote(url), 'utf-8', 'ignore').replace('_', ' ') + +def find_repo_path(path): + """Go up the directory tree looking for a Mercurial repository (a directory containing a .hg subdirectory).""" + while not os.path.isdir(os.path.join(path, ".hg")): + old_path, path = path, os.path.dirname(path) + if path == old_path: + return None + return path + +def locked_repo(func): + """A decorator for locking the repository when calling a method.""" + + def new_func(self, *args, **kwargs): + """Wrap the original function in locks.""" + + wlock = self.repo.wlock() + lock = self.repo.lock() + try: + func(self, *args, **kwargs) + finally: + lock.release() + wlock.release() + + return new_func + + +class DocumentNotFound(Exception): + pass + + +class VersionedStorage(object): + """ + Provides means of storing text pages and keeping track of their + change history, using Mercurial repository as the storage method. + """ + + def __init__(self, path, charset=None): + """ + Takes the path to the directory where the pages are to be kept. + If the directory doen't exist, it will be created. If it's inside + a Mercurial repository, that repository will be used, otherwise + a new repository will be created in it. + """ + + self.charset = charset or 'utf-8' + self.path = path + if not os.path.exists(self.path): + os.makedirs(self.path) + self.repo_path = find_repo_path(self.path) + try: + self.ui = mercurial.ui.ui(report_untrusted=False, + interactive=False, quiet=True) + except TypeError: + # Mercurial 1.3 changed the way we setup the ui object. + self.ui = mercurial.ui.ui() + self.ui.quiet = True + self.ui._report_untrusted = False + self.ui.setconfig('ui', 'interactive', False) + if self.repo_path is None: + self.repo_path = self.path + create = True + else: + create = False + self.repo_prefix = self.path[len(self.repo_path):].strip('/') + self.repo = mercurial.hg.repository(self.ui, self.repo_path, + create=create) + + def reopen(self): + """Close and reopen the repo, to make sure we are up to date.""" + + self.repo = mercurial.hg.repository(self.ui, self.repo_path) + + def _file_path(self, title): + return os.path.join(self.path, urlquote(title, safe='')) + + def _title_to_file(self, title): + return os.path.join(self.repo_prefix, urlquote(title, safe='')) + + def _file_to_title(self, filename): + assert filename.startswith(self.repo_prefix) + name = filename[len(self.repo_prefix):].strip('/') + return urlunquote(name) + + def __contains__(self, title): + return os.path.exists(self._file_path(title)) + + def __iter__(self): + return self.all_pages() + + def merge_changes(self, changectx, repo_file, text, user, parent): + """Commits and merges conflicting changes in the repository.""" + tip_node = changectx.node() + filectx = changectx[repo_file].filectx(parent) + parent_node = filectx.changectx().node() + + self.repo.dirstate.setparents(parent_node) + node = self._commit([repo_file], text, user) + + partial = lambda filename: repo_file == filename + + # If p1 is equal to p2, there is no work to do. Even the dirstate is correct. + p1, p2 = self.repo[None].parents()[0], self.repo[tip_node] + if p1 == p2: + return text + + try: + unresolved = mercurial.merge.update(self.repo, tip_node, True, False, partial) + except mercurial.util.Abort: + raise + unresolved = 1, 1, 1, 1 + + self.repo.dirstate.setparents(tip_node, node) + # Mercurial 1.1 and later need updating the merge state + try: + mercurial.merge.mergestate(self.repo).mark(repo_file, "r") + except (AttributeError, KeyError): + pass + return u'merge of edit conflict' + + @locked_repo + def save_file(self, title, file_name, author=u'', comment=u'', parent=None): + """Save an existing file as specified page.""" + + user = author.encode('utf-8') or u'anon'.encode('utf-8') + text = comment.encode('utf-8') or u'comment'.encode('utf-8') + repo_file = self._title_to_file(title) + file_path = self._file_path(title) + mercurial.util.rename(file_name, file_path) + changectx = self._changectx() + try: + filectx_tip = changectx[repo_file] + current_page_rev = filectx_tip.filerev() + except mercurial.revlog.LookupError: + self.repo.add([repo_file]) + current_page_rev = -1 + if parent is not None and current_page_rev != parent: + msg = self.merge_changes(changectx, repo_file, text, user, parent) + user = '' + text = msg.encode('utf-8') + self._commit([repo_file], text, user) + + + def _commit(self, files, text, user): + try: + return self.repo.commit(files=files, text=text, user=user, + force=True, empty_ok=True) + except TypeError: + # Mercurial 1.3 doesn't accept empty_ok or files parameter + match = mercurial.match.exact(self.repo_path, '', list(files)) + return self.repo.commit(match=match, text=text, user=user, + force=True) + + + def save_data(self, title, data, author=u'', comment=u'', parent=None): + """Save data as specified page.""" + + try: + temp_path = tempfile.mkdtemp(dir=self.path) + file_path = os.path.join(temp_path, 'saved') + f = open(file_path, "wb") + f.write(data) + f.close() + self.save_file(title, file_path, author, comment, parent) + finally: + try: + os.unlink(file_path) + except OSError: + pass + try: + os.rmdir(temp_path) + except OSError: + pass + + def save_text(self, title, text, author=u'', comment=u'', parent=None): + """Save text as specified page, encoded to charset.""" + + data = text.encode(self.charset) + self.save_data(title, data, author, comment, parent) + + def page_text(self, title): + """Read unicode text of a page.""" + + data = self.open_page(title).read() + text = unicode(data, self.charset, 'replace') + return text + + def page_lines(self, page): + for data in page: + yield unicode(data, self.charset, 'replace') + + @locked_repo + def delete_page(self, title, author=u'', comment=u''): + user = author.encode('utf-8') or 'anon' + text = comment.encode('utf-8') or 'deleted' + repo_file = self._title_to_file(title) + file_path = self._file_path(title) + try: + os.unlink(file_path) + except OSError: + pass + self.repo.remove([repo_file]) + self._commit([repo_file], text, user) + + def open_page(self, title): + try: + return open(self._file_path(title), "rb") + except IOError: + raise DocumentNotFound() + + def page_file_meta(self, title): + """Get page's inode number, size and last modification time.""" + + try: + (st_mode, st_ino, st_dev, st_nlink, st_uid, st_gid, st_size, + st_atime, st_mtime, st_ctime) = os.stat(self._file_path(title)) + except OSError: + return 0, 0, 0 + return st_ino, st_size, st_mtime + + def page_meta(self, title): + """Get page's revision, date, last editor and his edit comment.""" + + filectx_tip = self._find_filectx(title) + if filectx_tip is None: + raise DocumentNotFound() + #return -1, None, u'', u'' + rev = filectx_tip.filerev() + filectx = filectx_tip.filectx(rev) + date = datetime.datetime.fromtimestamp(filectx.date()[0]) + author = unicode(filectx.user(), "utf-8", + 'replace').split('<')[0].strip() + comment = unicode(filectx.description(), "utf-8", 'replace') + return rev, date, author, comment + + def repo_revision(self): + return self._changectx().rev() + + def page_mime(self, title): + """ + Guess page's mime type ased on corresponding file name. + Default ot text/x-wiki for files without an extension. + + # >>> page_mime('something.txt') + # 'text/plain' + # >>> page_mime('SomePage') + # 'text/x-wiki' + # >>> page_mime(u'ąęśUnicodePage') + # 'text/x-wiki' + # >>> page_mime('image.png') + # 'image/png' + # >>> page_mime('style.css') + # 'text/css' + # >>> page_mime('archive.tar.gz') + # 'archive/gzip' + """ + + addr = self._file_path(title) + mime, encoding = mimetypes.guess_type(addr, strict=False) + if encoding: + mime = 'archive/%s' % encoding + if mime is None: + mime = 'text/x-wiki' + return mime + + def _changectx(self): + """Get the changectx of the tip.""" + try: + # This is for Mercurial 1.0 + return self.repo.changectx() + except TypeError: + # Mercurial 1.3 (and possibly earlier) needs an argument + return self.repo.changectx('tip') + + def _find_filectx(self, title): + """Find the last revision in which the file existed.""" + + repo_file = self._title_to_file(title) + changectx = self._changectx() + stack = [changectx] + while repo_file not in changectx: + if not stack: + return None + changectx = stack.pop() + for parent in changectx.parents(): + if parent != changectx: + stack.append(parent) + return changectx[repo_file] + + def page_history(self, title): + """Iterate over the page's history.""" + + filectx_tip = self._find_filectx(title) + if filectx_tip is None: + return + maxrev = filectx_tip.filerev() + minrev = 0 + for rev in range(maxrev, minrev-1, -1): + filectx = filectx_tip.filectx(rev) + date = datetime.datetime.fromtimestamp(filectx.date()[0]) + author = unicode(filectx.user(), "utf-8", + 'replace').split('<')[0].strip() + comment = unicode(filectx.description(), "utf-8", 'replace') + yield rev, date, author, comment + + def page_revision(self, title, rev): + """Get unicode contents of specified revision of the page.""" + + filectx_tip = self._find_filectx(title) + if filectx_tip is None: + raise DocumentNotFound() + try: + data = filectx_tip.filectx(rev).data() + except IndexError: + raise DocumentNotFound() + return data + + def revision_text(self, title, rev): + data = self.page_revision(title, rev) + text = unicode(data, self.charset, 'replace') + return text + + def history(self): + """Iterate over the history of entire wiki.""" + + changectx = self._changectx() + maxrev = changectx.rev() + minrev = 0 + for wiki_rev in range(maxrev, minrev-1, -1): + change = self.repo.changectx(wiki_rev) + date = datetime.datetime.fromtimestamp(change.date()[0]) + author = unicode(change.user(), "utf-8", + 'replace').split('<')[0].strip() + comment = unicode(change.description(), "utf-8", 'replace') + for repo_file in change.files(): + if repo_file.startswith(self.repo_prefix): + title = self._file_to_title(repo_file) + try: + rev = change[repo_file].filerev() + except mercurial.revlog.LookupError: + rev = -1 + yield title, rev, date, author, comment + + def all_pages(self): + """Iterate over the titles of all pages in the wiki.""" + + for filename in os.listdir(self.path): + if (os.path.isfile(os.path.join(self.path, filename)) + and not filename.startswith('.')): + yield urlunquote(filename) + + def changed_since(self, rev): + """Return all pages that changed since specified repository revision.""" + + try: + last = self.repo.lookup(int(rev)) + except IndexError: + for page in self.all_pages(): + yield page + return + current = self.repo.lookup('tip') + status = self.repo.status(current, last) + modified, added, removed, deleted, unknown, ignored, clean = status + for filename in modified+added+removed+deleted: + if filename.startswith(self.repo_prefix): + yield self._file_to_title(filename) diff --git a/lib/wlrepo/__init__.py b/lib/wlrepo/__init__.py deleted file mode 100755 index ed0998cf..00000000 --- a/lib/wlrepo/__init__.py +++ /dev/null @@ -1,144 +0,0 @@ -# -*- encoding: utf-8 -*- -__author__="Łukasz Rekucki" -__date__ ="$2009-09-18 10:49:24$" -__doc__ = """Main module for the Repository Abstraction Layer""" - -class Library(object): - - def __init__(self, create=False): - """Open an existing library, or create a new one. By default, fails if - the library doesn't exist.""" - self.create = create - - def documents(self): - """List all documents in the library.""" - pass - - def document_for_revision(self, rev): - """Retrieve a document in the specified revision.""" - pass - - def document(self, docid, user=None, rev='latest'): - """Retrieve a document from a library.""" - pass - - def get_revision(self, revid): - """Retrieve a handle to a specified revision.""" - return None - - def document_create(self, docid): - """Create a new document. The document will have it's own branch.""" - - -class Document(object): - """A class representing a document package boundled with a revision.""" - - def __init__(self, library, revision): - """_library_ should be an instance of a Library.""" - self._library = library - if isinstance(revision, Revision): - self._revision = revision - else: - self._revision = library.get_revision(revision) - - - def take(self, user): - """Make a user copy of the document. This is persistant.""" - pass - - def giveback(self): - """Informs the library, that the user no longer needs this document. - Should be called on the user version of document. If not, it doesn nothing.""" - - def data(self, entry): - """Returns the specified entry as a unicode data.""" - pass - - @property - def library(self): - return self._library - - @property - def revision(self): - return self._revision - - @property - def id(self): - return self._revision.document_name - - @property - def owner(self): - return self._revision.user_name - - def parentof(self, other): - return self._revision.parentof(other._revision) - - def parent(self): - return self._library.document_for_revision(self._revision.parent()) - - def has_parent_from(self, other): - return self._revision.has_parent_from(other._revision) - - def ancestorof(self, other): - return self._revision.ancestorof(other._revision) - - -class Revision(object): - - def __init__(self, lib): - self._library = lib - - def parentof(self, other): - return False - - def ancestorof(self, other): - return False - - @property - def document_name(self): - raise ValueError() - - @property - def user_name(self): - raise ValueError() - -# -# Exception classes -# - -class LibraryException(Exception): - def __init__(self, msg, cause=None): - Exception.__init__(self, msg) - self.cause = cause - -class UpdateException(LibraryException): - pass - -class OutdatedException(LibraryException): - pass - -class RevisionNotFound(LibraryException): - def __init__(self, rev): - LibraryException.__init__(self, "Revision %r not found." % rev) - -class RevisionMismatch(LibraryException): - def __init__(self, fdi, rev): - LibraryException.__init__(self, "No revision %r for document %r." % (rev, fdi)) - -class EntryNotFound(LibraryException): - def __init__(self, rev, entry, guesses=[]): - LibraryException.__init__(self, \ - u"Entry '%s' at revision %r not found. %s" % (entry, rev, \ - (u"Posible values:\n" + u',\n'.join(guesses)) if len(guesses) else u'') ) - -class DocumentAlreadyExists(LibraryException): - pass - -# import backends to local namespace - -def open_library(path, proto, *args, **kwargs): - if proto == 'hg': - import wlrepo.mercurial_backend.library - return wlrepo.mercurial_backend.library.MercurialLibrary(path, *args, **kwargs) - - raise NotImplemented() \ No newline at end of file diff --git a/lib/wlrepo/mercurial_backend/__init__.py b/lib/wlrepo/mercurial_backend/__init__.py deleted file mode 100644 index f797d394..00000000 --- a/lib/wlrepo/mercurial_backend/__init__.py +++ /dev/null @@ -1,14 +0,0 @@ -# -*- encoding: utf-8 -*- - -import logging -log = logging.getLogger('ral.mercurial') - -__author__= "Łukasz Rekucki" -__date__ = "$2009-09-25 09:20:22$" -__doc__ = "Module documentation." - -import wlrepo - - -from mercurial import encoding -encoding.encoding = 'utf-8' \ No newline at end of file diff --git a/lib/wlrepo/mercurial_backend/document.py b/lib/wlrepo/mercurial_backend/document.py deleted file mode 100755 index 77b8ead7..00000000 --- a/lib/wlrepo/mercurial_backend/document.py +++ /dev/null @@ -1,245 +0,0 @@ -# -*- encoding: utf-8 -*- - -import logging -log = logging.getLogger('ral.mercurial') - -__author__ = "Łukasz Rekucki" -__date__ = "$2009-09-25 09:35:06$" -__doc__ = "Module documentation." - -import wlrepo -import mercurial.error -import re - -import logging -log = logging.getLogger('wlrepo.document') - -class MercurialDocument(wlrepo.Document): - - def data(self, entry): - path = self._library._sanitize_string(self.id + u'.' + entry) - try: - return self._library._filectx(path, \ - self._revision.hgrev()).data().decode('utf-8') - except mercurial.error.LookupError, e: - fl = [x.decode('utf-8') for x in self._revision._changectx] - raise wlrepo.EntryNotFound(self._revision, path.decode('utf-8'), fl) - - def quickwrite(self, entry, data, msg, user=None): - user = user or self.owner - - if isinstance(data, unicode): - data = data.encode('utf-8') - - user = self._library._sanitize_string(user) - msg = self._library._sanitize_string(msg) - entry = self._library._sanitize_string(entry) - - if user is None: - raise ValueError("Can't determine user.") - - def write(l, r): - f = l._fileopen(r(entry), "w+") - f.write(data) - f.close() - l._fileadd(r(entry)) - - return self.invoke_and_commit(write, lambda d: (msg, \ - self._library._sanitize_string(self.owner)) ) - - def invoke_and_commit(self, ops, commit_info): - lock = self._library.lock() - try: - self._library._checkout(self._revision.hgrev()) - - def entry_path(entry): - return self._library._sanitize_string(self.id + u'.' + entry) - - ops(self._library, entry_path) - message, user = commit_info(self) - - message = self._library._sanitize_string(message) - user = self._library._sanitize_string(user) - - self._library._commit(message, user) - try: - return self._library.document(docid=self.id, user=user) - except Exception, e: - # rollback the last commit - self._library._rollback() - raise e - finally: - lock.release() - - # def commit(self, message, user): - # """Make a new commit.""" - # self.invoke_and_commit(message, user, lambda *a: True) - - def ismain(self): - return self._revision.user_name is None - - def islatest(self): - return (self == self.latest()) - - def shared(self): - if self.ismain(): - return self - - return self._library.document(docid=self.id) - - def latest(self): - return self._library.document(docid=self.id, user=self.owner) - - def take(self, user): - fullid = self._library.fulldocid(self.id, user) - - def take_action(library, resolve): - # branch from latest - library._set_branchname(fullid) - - if not self._library.has_revision(fullid): - log.info("Checking out document %s" % fullid) - - self.invoke_and_commit(take_action, \ - lambda d: ("$AUTO$ File checkout.", user) ) - - return self._library.document_for_revision(fullid) - - def up_to_date(self): - if self.ismain(): - return True - - shared = self.shared() - - if shared.ancestorof(self): - return True - - if shared.has_parent_from(self): - return True - - return False - - def update(self, user): - """Update parts of the document.""" - lock = self.library.lock() - try: - if self.ismain(): - # main revision of the document - return self - - # check for children in this branch - if self._revision.has_children(limit_branch=True): - raise wlrepo.UpdateException("Revision %s has children." % self.revision) - - shared = self.shared() - # * - # /| - # * | - # | | - # - # we carry the latest version - if shared.ancestorof(self): - return self - - # * - # |\ - # | * - # | | - # - # We just shared - if self.parentof(shared): - return self - - # s s S - # | | | - # *<-S *<-* - # | | | . - # - # This is ok (s - shared, S - self) - - if self._revision.merge_with(shared._revision, user=user,\ - message="$AUTO$ Personal branch update."): - return self.latest() - else: - raise wlrepo.UpdateException("Merge failed.") - finally: - lock.release() - - - def would_share(self): - if self.ismain(): - return False, "Main version is always shared" - - shared = self.shared() - - # we just did this - move on - if self.parentof(shared): - return False, "Document has been recetly shared - no changes" - - # * - # /| - # * * - # |\| - # | * - # | | - # Situation above is ok - what we don't want, is: - # * - # /| - # * | - # |\| - # | * - # | | - # We want to prevent stuff like this. - if self.parent().parentof(shared) and shared.parentof(self): - return False, "Preventing zig-zag" - - return True, "All ok" - - def share(self, message): - lock = self.library.lock() - try: - # check if the document is in "updated" state - if not self.up_to_date(): - raise wlrepo.OutdatedException("You must update your document before share.") - - # now check if there is anything to do - need_work, info = self.would_share() - - if not need_work: - return self.shared() - - # The good situation - # - # * local - # | - # >* - # || - # / | - # main * * - # | | - shared = self.shared() - - try: - success = shared._revision.merge_with(self._revision, user=self.owner, message=message) - if not success: - raise wlrepo.LibraryException("Merge failed.") - - return shared.latest() - except Abort, e: - raise wlrepo.LibraryException( repr(e) ) - finally: - lock.release() - - - def has_conflict_marks(self): - return re.search("^(?:<<<<<<< .*|=======|>>>>>>> .*)$", self.data('xml'), re.MULTILINE) - - def __unicode__(self): - return u"Document(%s:%s)" % (self.id, self.owner) - - def __str__(self): - return self.__unicode__().encode('utf-8') - - def __eq__(self, other): - return (self._revision == other._revision) - diff --git a/lib/wlrepo/mercurial_backend/library.py b/lib/wlrepo/mercurial_backend/library.py deleted file mode 100755 index 5e9b06ec..00000000 --- a/lib/wlrepo/mercurial_backend/library.py +++ /dev/null @@ -1,283 +0,0 @@ -# -*- encoding: utf-8 -*- - -import logging -log = logging.getLogger('ral.mercurial') - -__author__= "Łukasz Rekucki" -__date__ = "$2009-09-25 09:33:02$" -__doc__ = "Module documentation." - -import mercurial -from mercurial import localrepo as hglrepo -from mercurial import ui as hgui -from mercurial import error -import wlrepo - -from wlrepo.mercurial_backend.revision import MercurialRevision -from wlrepo.mercurial_backend.document import MercurialDocument - -class MergeStatus(object): - def __init__(self, mstatus): - self.updated = mstatus[0] - self.merged = mstatus[1] - self.removed = mstatus[2] - self.unresolved = mstatus[3] - - def isclean(self): - return self.unresolved == 0 - -class UpdateStatus(object): - - def __init__(self, mstatus): - self.modified = mstatus[0] - self.added = mstatus[1] - self.removed = mstatus[2] - self.deleted = mstatus[3] - self.untracked = mstatus[4] - self.ignored = mstatus[5] - self.clean = mstatus[6] - - def has_changes(self): - return bool(len(self.modified) + len(self.added) + \ - len(self.removed) + len(self.deleted)) - -class MercurialLibrary(wlrepo.Library): - """Mercurial implementation of the Library API""" - - def __init__(self, path, **kwargs): - super(wlrepo.Library, self).__init__( ** kwargs) - - self._revcache = {} - self._doccache = {} - - self._hgui = hgui.ui() - self._hgui.config('ui', 'quiet', 'true') - self._hgui.config('ui', 'interactive', 'false') - - import os.path - self._ospath = self._sanitize_string(os.path.realpath(path)) - - if os.path.isdir(path): - try: - self._hgrepo = hglrepo.localrepository(self._hgui, path) - except mercurial.error.RepoError: - raise wlrepo.LibraryException("[HGLibrary] Not a valid repository at path '%s'." % path) - elif kwargs.get('create', False): - os.makedirs(path) - try: - self._hgrepo = hglrepo.localrepository(self._hgui, path, create=1) - except mercurial.error.RepoError: - raise wlrepo.LibraryException("[HGLibrary] Can't create a repository on path '%s'." % path) - else: - raise wlrepo.LibraryException("[HGLibrary] Can't open a library on path '%s'." % path) - - - def documents(self): - return [ key[5:].decode('utf-8') for key in \ - self._hgrepo.branchmap() if key.startswith("$doc:") ] - - @property - def ospath(self): - return self._ospath.decode('utf-8') - - def document_for_revision(self, revision): - if revision is None: - raise ValueError("Revision can't be None.") - - if not isinstance(revision, MercurialRevision): - rev = self.get_revision(revision) - else: - rev = revision - - if not self._doccache.has_key(str(rev)): - self._doccache[str(rev)] = MercurialDocument(self, rev) - - # every revision is a document - return self._doccache[str(rev)] - - def document(self, docid, user=None, rev=u'latest'): - rev = self._sanitize_string(rev) - - if rev != u'latest': - doc = self.document_for_revision(rev) - - if doc.id != docid or (doc.owner != user): - raise wlrepo.RevisionMismatch(self.fulldocid(docid, user)+u'@'+unicode(rev)) - - return doc - else: - return self.document_for_revision(self.fulldocid(docid, user)) - - def get_revision(self, revid): - revid = self._sanitize_string(revid) - - log.info("Looking up rev %r (%s)" %(revid, type(revid)) ) - - try: - ctx = self._changectx( revid ) - except mercurial.error.RepoError, e: - raise wlrepo.RevisionNotFound(revid) - - if ctx is None: - raise wlrepo.RevisionNotFound(revid) - - return self._revision(ctx) - - def _revision(self, ctx): - if self._revcache.has_key(ctx): - return self._revcache[ctx] - - return MercurialRevision(self, ctx) - - def fulldocid(self, docid, user=None): - fulldocid = u'' - if user is not None: - fulldocid += u'$user:' + user - fulldocid += u'$doc:' + docid - return fulldocid - - def has_revision(self, revid): - revid = self._sanitize_string(revid) - - try: - self._hgrepo[revid] - return True - except mercurial.error.RepoError: - return False - - def document_create(self, docid): - - # check if it already exists - fullid = self.fulldocid(docid) - - if self.has_revision(fullid): - raise wlrepo.DocumentAlreadyExists(u"Document %s already exists!" % docid); - - # doesn't exist - self._create_branch(self._sanitize_string(fullid)) - return self.document_for_revision(fullid) - - # - # Private methods - # - - # - # Locking - # - - def lock(self, write_mode=False): - return self._hgrepo.wlock() # no support for read/write mode yet - - def _transaction(self, write_mode, action): - lock = self.lock(write_mode) - try: - return action(self) - finally: - lock.release() - - # - # Basic repo manipulation - # - - def _checkout(self, rev, force=True): - return MergeStatus(mercurial.merge.update(self._hgrepo, rev, False, force, None)) - - def _merge(self, rev): - """ Merge the revision into current working directory """ - return MergeStatus(mercurial.merge.update(self._hgrepo, rev, True, False, None)) - - def _common_ancestor(self, revA, revB): - return self._hgrepo[revA].ancestor(self.repo[revB]) - - def _commit(self, message, user=u"library"): - return self._hgrepo.commit(text=message, user=user) - - - def _fileexists(self, fileid): - return (fileid in self._hgrepo[None]) - - def _fileadd(self, fileid): - return self._hgrepo.add([fileid]) - - def _filesadd(self, fileid_list): - return self._hgrepo.add(fileid_list) - - def _filerm(self, fileid): - return self._hgrepo.remove([fileid]) - - def _filesrm(self, fileid_list): - return self._hgrepo.remove(fileid_list) - - def _fileopen(self, path, mode): - return self._hgrepo.wopener(path, mode) - - def _filectx(self, fileid, revid): - return self._hgrepo.filectx(fileid, changeid=revid) - - def _changectx(self, nodeid): - return self._hgrepo.changectx(nodeid) - - def _rollback(self): - return self._hgrepo.rollback() - - # - # BASIC BRANCH routines - # - - def _bname(self, user, docid): - """Returns a branch name for a given document and user.""" - docid = self._sanitize_string(docid) - uname = self._sanitize_string(user) - return "personal_" + uname + "_file_" + docid; - - def _has_branch(self, name): - return self._hgrepo.branchmap().has_key(self._sanitize_string(name)) - - def _branch_tip(self, name): - name = self._sanitize_string(name) - return self._hgrepo.branchtags()[name] - - def _create_branch(self, name, parent=None, before_commit=None, message=None): - name = self._sanitize_string(name) - - if self._has_branch(name): return # just exit - - if parent is None: - parentrev = self._hgrepo['$branchbase'].node() - else: - parentrev = parent.hgrev() - - self._checkout(parentrev) - self._set_branchname(name) - - if before_commit: before_commit(self) - - message = message or "$ADMN$ Initial commit for branch '%s'." % name - self._commit(message, user='$library') - - def _set_branchname(self, name): - name = self._sanitize_string(name) - self._hgrepo.dirstate.setbranch(name) - - def _switch_to_branch(self, branchname): - current = self._hgrepo[None].branch() - - if current == branchname: - return current # quick exit - - self._checkout(self._branch_tip(branchname)) - return branchname - - # - # Utils - # - - @staticmethod - def _sanitize_string(s): - if s is None: - return None - - if isinstance(s, unicode): - s = s.encode('utf-8') - - return s \ No newline at end of file diff --git a/lib/wlrepo/mercurial_backend/revision.py b/lib/wlrepo/mercurial_backend/revision.py deleted file mode 100755 index 5bb3d0f1..00000000 --- a/lib/wlrepo/mercurial_backend/revision.py +++ /dev/null @@ -1,114 +0,0 @@ -# -*- encoding: utf-8 -*- - -__author__= "Łukasz Rekucki" -__date__ = "$2009-10-20 12:31:48$" -__doc__ = "Module documentation." - -import wlrepo -from mercurial.node import nullid - -class MercurialRevision(wlrepo.Revision): - def __init__(self, lib, changectx): - super(MercurialRevision, self).__init__(lib) - self._changectx = changectx - - branchname = self._changectx.branch() - if branchname.startswith("$doc:"): - self._docname = branchname[5:] - self._username = None - elif branchname.startswith("$user:"): - idx = branchname.find("$doc:") - if(idx < 0): - raise ValueError("Revision %s is not a valid document revision." % changectx.hex()); - self._username = branchname[6:idx] - self._docname = branchname[idx+5:] - else: - raise ValueError("Revision %s is not a valid document revision." % changectx.hex()); - - @property - def document_name(self): - return self._docname and self._docname.decode('utf-8') - - @property - def user_name(self): - return self._username and self._username.decode('utf-8') - - def hgrev(self): - return self._changectx.node() - - def hgcontext(self): - return self._changectx - - def hgbranch(self): - return self._changectx.branch() - - @property - def timestamp(self): - return self._changectx.date()[0] - - def __unicode__(self): - return u"%s" % self._changectx.hex() - - def __str__(self): - return self.__unicode__().encode('utf-8') - - def __repr__(self): - return "%s" % self._changectx.hex() - - def ancestorof(self, other): - nodes = list(other._changectx._parents) - while nodes[0].node() != nullid: - v = nodes.pop(0) - if v == self._changectx: - return True - nodes.extend( v._parents ) - return False - - def parentof(self, other): - return self._changectx in other._changectx._parents - - def has_common_ancestor(self, other): - a = self._changectx.ancestor(other._changectx) - return (a.branch() == self._changectx.branch()) - - def has_children(self, limit_branch=False): - for child in self._changectx.children(): - cbranch = child.branch() - if (not limit_branch) or (cbranch == self.hgbranch()): - return True - return False - - def has_parent_from(self, rev): - branch = rev.hgbranch() - for parent in self._changectx.parents(): - if parent.branch() == branch: - return True - return False - - def merge_with(self, other, user, message): - message = self._library._sanitize_string(message) - lock = self._library.lock(True) - try: - self._library._checkout(self._changectx.node()) - status = self._library._merge(other._changectx.node()) - if status.isclean(): - self._library._commit(user=user, message=message) - return True - else: - return False - finally: - lock.release() - - def parent(self): - parents = self._changectx.parents() - - if len(parents) == 1: - return self._library._revision(parents[0]) - - if parents[0].branch() == self.hgbranch(): - return self._library._revision(parents[0]) - else: - return self._library._revision(parents[1]) - - def __eq__(self, other): - return self._changectx.node() == other._changectx.node() diff --git a/lib/wlrepo/tests/__init__.py b/lib/wlrepo/tests/__init__.py deleted file mode 100644 index c9e2f1d7..00000000 --- a/lib/wlrepo/tests/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# -*- encoding: utf-8 -*- - -__author__= "Łukasz Rekucki" -__date__ = "$2009-09-18 14:42:53$" -__doc__ = "Test package for WL-RAL" - - diff --git a/lib/wlrepo/tests/data/branched/.hg/00changelog.i b/lib/wlrepo/tests/data/branched/.hg/00changelog.i deleted file mode 100644 index d3a8311050e54c57c5be7cfe169e60a95768812c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 57 zcmWN_K?=Yi3!|qGE?Hy zGILV(DsppRN*JI@IQ25pGt=|(i&9}S9A2AO*aI~SgESZ9=VTUVVABm&!voO@F&+Tx CT`!gZ diff --git a/lib/wlrepo/tests/data/branched/.hg/requires b/lib/wlrepo/tests/data/branched/.hg/requires deleted file mode 100644 index 5175383b..00000000 --- a/lib/wlrepo/tests/data/branched/.hg/requires +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index f7ca408798d7ba9fc9bf89a4dce54b1bef739d89..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 947 zcmZQzWME`~fNUU@4`nm_hk~=S;zLg^v+$|qZP;?$crmy9%Z5^z8W3GENA{RC-(dwF zh6{I>pJ44eP?&Q=>!}Lgg#MNVsycgXm+pBvQQfmqH1bi?Id;E1{~d`7Vkf0PT(L>h z@#RnH`%7JQ(|5O5hJ9veKizXL>d;Ho4BZ)@cl6z=VvF#;X7%+?=6BPm|1<5GY7`fN ztpz!ffuR|QyTL35i1R_Nm33R5vFjhp%&X$erPq$nyLIj7ic?TEV5(w{>S;&5Lka?{ z7uM};h~B1`Bay(eE$-k}vxduUEn=6$9)Dz=`$V_y-~4sI?{3@}m((G+_}FG8<=$fs zhbnm$<_JAtl=0fIrceLsTBZprmWX;u*BJ$IOk1{e%@>JdQ#x(q6Dxkt`M2@^nVq)x zR|mQ*=Y=IN_wgctipkj{e2}8bS10IG0w(DQ8OC2psnzQ!)ixwsp!IQZf7gib9KaQUo zv1_iLyLyL?z~2su4W2A#;ubJ7_?r|=aX8{O{m-lXsNYM1W6i5y%`|70;81O7KfTrQ z`I$fOZtcv9TwbO#>+Sc2&ub@5dl>&LuK(^ohTksgdLZi=Q^1ax10?qWG04@-AR6Rq zlPjwlN|QIWm+aZc{%y_f8D2~7^aADJ0O;y-8@Ub{2sAuASKF2ID4-*AlA7P6XK$FN zWLK?hG||i~xNy|nJnCR`zJ*2Ix>fr&|7TchaVW!AJ5b~1DZZV{+KSagmriTG%Cx|^ z)Y4A;`lFJBMX6o}dLEYzy-rS0m~p%C;FeO;;y3Vow@FqM7Y42$!6!qUQ#Y@3eGs(-`#p}+{_AFyYDR51`Y05J;`GlTs0;P;L@ z_92H|8(VrK7l~fHq_pzIM4&tzfYQG=C{Zz7uwDLwHK${Ky1hqcyU$Sq#*4M1kxAg~BX)*!;fMSQt diff --git a/lib/wlrepo/tests/data/branched/.hg/store/00manifest.i b/lib/wlrepo/tests/data/branched/.hg/store/00manifest.i deleted file mode 100644 index 997a181d7e9baa46f9dc848e4c5421907e3f8269..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 670 zcmZQzWME`~023f(3}rL?hXN1xn^|f#K@!t0{?*p>uWc(kRlNkJ21J+YWu#}O=j9ir zG9+0Tq@{0V2{o&YfH71=!?HFj)vBAAwm63`{_p5#*?s97-9I{z^erhG`zsf+EJ( zW(1o-)qtsrIj*N2xtI)j7!J(&ZaAszvPtFHNh#4fAu$53@=xrqPHwm4W8h(^sNdVS zJO6lT-|foR$=fb}HgYuVPSO(dY2{fu%cNLc>5I_L?5kI^qUwGo7QgwgJ?l)t*&8#J zr|exU_&q~W?oDRuMq8(8{1-XYCV*}I1twE~WIhlxLopM`!7E!{-9MZck(~Zy!V#wo zhA-=QPrLGn6+WD*P;%#K*02?S1MgRZ+ 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 deleted file mode 100644 index 3488bccb18f799c89d416b5fca591ba90e6ee85c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 73 zcmZQzWME`~08Svq0cA7&hk^+j6GYdfge+)Z@oKk=!`4GTE3FElYQR*f`;pe->_kN_ E0K(N3$^ZZW 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 deleted file mode 100644 index fd3c7f7b76f7cc2c3d01256a69093bd8f5817e58..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 152 zcmZQzWME{#1dRWoUQPrLGn6+WD*P;%!XjU=ax*$pe*R0?{BNI;9pE m@u!`cwx7%G&ztUJ8_l}zoPer9r+6H55*2b26|(b761f1Y*(LG- diff --git a/lib/wlrepo/tests/data/branched/.hg/store/fncache b/lib/wlrepo/tests/data/branched/.hg/store/fncache deleted file mode 100644 index 8730267a..00000000 --- a/lib/wlrepo/tests/data/branched/.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/branched/.hg/store/undo b/lib/wlrepo/tests/data/branched/.hg/store/undo deleted file mode 100644 index fb22969a85191a628adce30a6f24bf31fc6576f0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 35 pcmXpo$W6@4OiL{;(aU5oGce;aFi6fw%u7$r$xjE0n44K}0RY1>3PS(@ diff --git a/lib/wlrepo/tests/data/branched/.hg/undo.branch b/lib/wlrepo/tests/data/branched/.hg/undo.branch deleted file mode 100644 index 620a92c9..00000000 --- a/lib/wlrepo/tests/data/branched/.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/branched/.hg/undo.dirstate b/lib/wlrepo/tests/data/branched/.hg/undo.dirstate deleted file mode 100644 index 2c1df6a1ec8a436e730390e7d6582109d438162b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 101 zcmXrHvZ|ppc~g7Io_*}!*6g0)wd77O0~V0Sz|gn^D9+=xdCn^!EmTmN6knE@lbI5q bmYI{PSCN|oQ^EjM!l{>$o|&GPUz7>}RmL8T diff --git a/lib/wlrepo/tests/data/branched/ignored_file b/lib/wlrepo/tests/data/branched/ignored_file deleted file mode 100644 index e69de29b..00000000 diff --git a/lib/wlrepo/tests/data/branched/pub_polish_file.xml b/lib/wlrepo/tests/data/branched/pub_polish_file.xml deleted file mode 100644 index c7ada58c..00000000 --- a/lib/wlrepo/tests/data/branched/pub_polish_file.xml +++ /dev/null @@ -1 +0,0 @@ -Gąska! diff --git a/lib/wlrepo/tests/data/branched/pub_valid_file.xml b/lib/wlrepo/tests/data/branched/pub_valid_file.xml deleted file mode 100644 index 84321884..00000000 --- a/lib/wlrepo/tests/data/branched/pub_valid_file.xml +++ /dev/null @@ -1 +0,0 @@ -Ala ma kota diff --git a/lib/wlrepo/tests/data/branched2/.hg/00changelog.i b/lib/wlrepo/tests/data/branched2/.hg/00changelog.i deleted file mode 100644 index d3a8311050e54c57c5be7cfe169e60a95768812c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 57 zcmWN_K?=Yi3!1AgfQ7-ClU zz{;wg6p;LS`FPJH6yrh9&U>1F$QacB&p?sJH5A&TJ26^-c&zv_@^ag0%FAuj#%OkC zdLh=LC5hK8%QAI8uM;3i9aQr^b*Le<@Mw1ARLOmFXW0+^37)HEWD_&~@MnP8e|0>t zLxv?=ay~a)d!3-_?=iCHt0LaXG#*um}ie89HeQz*So#Th z^Q~p_^6e`5m_QI5ma+bxuy)HbZPg z#TPwc&Lsy@C{4~?7OV_3I!u%k4XYwd#tT@P5!3c3>4E%Z&6UNiPm~;s%Jm$$GC;#u z4TDNBnIA^ruMXPAQ0_=guy0g-*yx8~eoZv4>th>qnza_t=1@JWwz>OU7`Jj_HXW|A zzW1b=xNK*Nlyu$y(M_uZrWqF6KQr`d+*JmG3lYE}yVxA3F1I|z`2;T%&}!a?qX^MT@MRaLU6&g6*NSR zfFeX~H(bV`9=p$sYi?EhR?);E6pgaL+?qh@L4ihxwKijFFzGTy@^?m5wu!f7W*(7q zBBAuWoq1HOxcdMuustmXk58^DYpq=YD)Aj;ukAi&ulmr9{EKHzba=UG&*6nTsk`^- zzL3O)+>IbuTOE96L+E8=IB!n3KM(?~qK4z1KMkAp>2rHWPHEUo#h9~7X_ORSk;HG_ zsy#yO76&h~+Ni%VK=poiLCQSpW2`MykFpproCVDQt+HwaRNJJyVbsyL)Af8hE8woq z)1fV;vsqw%P0;*%KtlzH9g1g>lvutZsPXHj@HQiCJ_G(qVUkp?rWKxKmY&Ox9enYr@2!Xa1ypo2~Y4Iv{zE1%=%W%HI=taqx>jgfk0)d!d3{g3v6 zxi!(ami_i<@Ht$c4%<wE^9;kNYnYX*5Akn{#>x@Ao2L)Q>k3<50Mg+S{+w)ZLEyVBYw2W_&rC;_ zM&&}2JnoIhv4k_rrpz7IIHN&`0sd?LlffwhP?K1mF z8-fd%UlZ8v-gXo?|4vWo{Ks&XftE@_wCN>-o=wIZ$%Vw8>RFki?7JjtzsO5tvUD22 zv)qBux1*8TU7?#o?)i-?#4PuB3-~dTtGDz9x@m-I{qhJIpp^O2T0amoE7@*+b41C5 z5*MPa-1I1Q!jBa{)0~sn!k5D;H&~QI7zm0I25LG7G(@ikMTkCIorfFxh#2UKW(NeP zsKbQyUanwnO;F<@-WP>5wEsN`4MeX0pTSs`c8^{xaou@BN;uWc(kRlNkJ21J+YWu#}O=j9ir zG9+0Tq@{0V2{o&YfH71=!?HFj)vBAAwm63`{_p5#*?s97-9I{z^erhG`zsf+EJ( zW(1o-)qtsrIj*N2xtI)j7!J(&ZaAszvPtFHNh#4fAu$53@=xrqPHwm4W8h(^sNdVS zJO6lT-|foR$=fb}HgYuVPSO(dY2{fu%cNLc>5I_L?5kI^qUwGo7QgwgJ?l)t*&8#J zr|exU_&q~W?oDRuMq8(8{1-XYCV*}I1twE~WIhlxLopM`!7E!{-9MZck(~Zy!V#wo zhA-=m#Hrd}Y&mW8DUoUpz4D@oiHmk$4Ic4gyG#8Pc>^G{@Lyh&~v-_2n3^O3DRV=!w4@|M1M_49QPrLGn6+WD*P;%#K*02?S1MgRZ+ 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 deleted file mode 100644 index 084d15c297ba842180c813d6bb60975a87c652cd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 153 zcmZQzWME{#1Z@AIUQPrLGn6+WD*P;%!XjU=c|m$qSWZ2hkuSdKs@5 ngzPOZ%-=0g!@TF!9JPs$yr62(Dc<1Hg47~~lGN_kN_ E0K(N3$^ZZW 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 deleted file mode 100644 index fd3c7f7b76f7cc2c3d01256a69093bd8f5817e58..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 152 zcmZQzWME{#1dRWoUQPrLGn6+WD*P;%!XjU=ax*$pe*R0?{BNI;9pE m@u!`cwx7%G&ztUJ8_l}zoPer9r+6H55*2b26|(b761f1Y*(LG- diff --git a/lib/wlrepo/tests/data/branched2/.hg/store/fncache b/lib/wlrepo/tests/data/branched2/.hg/store/fncache deleted file mode 100644 index 0e671a68..00000000 --- a/lib/wlrepo/tests/data/branched2/.hg/store/fncache +++ /dev/null @@ -1,5 +0,0 @@ -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 deleted file mode 100644 index a0a28337c33e254e9c790406d873f7169360a7b0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 58 zcmYdEEJ@TaC{2n_%t_R%$j#BqWH2+~GBC(Z%*#wmEiM7_EzOOA0?8SPdFiP+`RPCr JLt`ToE&wcX5taY| diff --git a/lib/wlrepo/tests/data/branched2/.hg/undo.branch b/lib/wlrepo/tests/data/branched2/.hg/undo.branch deleted file mode 100644 index 2b1d956b..00000000 --- a/lib/wlrepo/tests/data/branched2/.hg/undo.branch +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index bc31b9ad8d45cad5a2fc5a2f3c5ceb8f8304d204..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 194 zcmWfLnI@I+*8j_kr|yUE9ein>Zs_I0fCc0+Ff=X!it~7FZw~>|LItHs@nwlQnJMvU znK`L?6}dSuB@9p{oO&7Qndy1?MXAU#Z9vW3AkB$6iO9M*pt^)Xas~N0nZ+46P3D0Z H3$Ypi-G?{D diff --git a/lib/wlrepo/tests/data/branched2/.hgignore b/lib/wlrepo/tests/data/branched2/.hgignore deleted file mode 100644 index e69de29b..00000000 diff --git a/lib/wlrepo/tests/data/branched2/ignored_file b/lib/wlrepo/tests/data/branched2/ignored_file deleted file mode 100644 index e69de29b..00000000 diff --git a/lib/wlrepo/tests/data/branched2/pub_polish_file.xml b/lib/wlrepo/tests/data/branched2/pub_polish_file.xml deleted file mode 100644 index c7ada58c..00000000 --- a/lib/wlrepo/tests/data/branched2/pub_polish_file.xml +++ /dev/null @@ -1 +0,0 @@ -Gąska! diff --git a/lib/wlrepo/tests/data/branched2/pub_valid_file.xml b/lib/wlrepo/tests/data/branched2/pub_valid_file.xml deleted file mode 100644 index 84321884..00000000 --- a/lib/wlrepo/tests/data/branched2/pub_valid_file.xml +++ /dev/null @@ -1 +0,0 @@ -Ala ma kota diff --git a/lib/wlrepo/tests/data/clean/$meta b/lib/wlrepo/tests/data/clean/$meta deleted file mode 100644 index e69de29b..00000000 diff --git a/lib/wlrepo/tests/data/clean/.hg/00changelog.i b/lib/wlrepo/tests/data/clean/.hg/00changelog.i deleted file mode 100644 index d3a8311050e54c57c5be7cfe169e60a95768812c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 57 zcmWN_K?=Yi3n|w9fCc0+Ff=X!iF@t1QVOIv^)k{k)ARC+QV}wH O`kw%0SXFXUOA-Ne{uhn_ diff --git a/lib/wlrepo/tests/data/clean/.hg/requires b/lib/wlrepo/tests/data/clean/.hg/requires deleted file mode 100644 index 5175383b..00000000 --- a/lib/wlrepo/tests/data/clean/.hg/requires +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index b6c919d52b6cb4ba8328972cb1253fd92bb5945a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 176 zcmZQzWME`~fC3;@3S~3=hk~n5#a>?y-?PXk>vwV8^xM|9{(@34H6XfTj_ff*zQYPU z3f z%l3+1dS!@iNcrBjpX*ODv|oJwB#q~??ZT}E)u$BtkqQ=;^b`$9s!`x1o>cqf4hf&ikA{t?#88 L$IakAL)sAlUlA(1 diff --git a/lib/wlrepo/tests/data/clean/.hg/store/data/$meta.i b/lib/wlrepo/tests/data/clean/.hg/store/data/$meta.i deleted file mode 100644 index 2431023a17b1e7b5c96e5db8e264c251f39beab0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 64 ncmZQzWME{#0{%n64&J91ElOJ*kA4VBT`S_X^H1QX%_ diff --git a/lib/wlrepo/tests/data/clean/.hg/undo.branch b/lib/wlrepo/tests/data/clean/.hg/undo.branch deleted file mode 100644 index 331d858c..00000000 --- a/lib/wlrepo/tests/data/clean/.hg/undo.branch +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 59bcbfc45ccd305f6ea870e551bb9dc09dd285c5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 88 kcmZQzAPyvgl>LVSAd^!sBRw-cFTW@iU4~U9H?<@Y03`kv4FCWD diff --git a/lib/wlrepo/tests/data/clean/.hgignore b/lib/wlrepo/tests/data/clean/.hgignore deleted file mode 100644 index e69de29b..00000000 diff --git a/lib/wlrepo/tests/data/merged/.hg/00changelog.i b/lib/wlrepo/tests/data/merged/.hg/00changelog.i deleted file mode 100644 index d3a8311050e54c57c5be7cfe169e60a95768812c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 57 zcmWN_K?=Yi3JkRY73Ak+7H8lz KnFnGl#A*O+Av*v7 diff --git a/lib/wlrepo/tests/data/merged/.hg/requires b/lib/wlrepo/tests/data/merged/.hg/requires deleted file mode 100644 index 5175383b..00000000 --- a/lib/wlrepo/tests/data/merged/.hg/requires +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 31a5d32544b272265e9c9cb47e18ae5f41a55b3b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1687 zcmX|>2{e>z7{|YvF~~A0#0fWK&62GG(|FF z-%=vWwa(ZwNYi485t)ig+i_-azi+ty=ltL2J>T=5^ZwrFd)^m-0We@g=fDuLIS1A^ z^*kT%)yKrR#LAK%v&|n$@8Of9{$B${B3+GTiRx090fr|_dXZ`Emk6)-&1s>i>B)uK zhOM!T7Ji1VQ-Y#5FL6l1?Sgw_K;h}kkeSj)`nLQPm3IsWqmbs5YbU+~DFe5sd^-8s zp+>atjd$Kgi=TAn9{MQ^`+dM?J?{uSMx#iyEd&VwNuY0uX21qMM62dl68daSEbpZf zB8tnt|CYN_+P}F*6o_=~0b5k3x*T%2x`}+M!I+@zFV^7K@#IhPiyO(iUYwZyhP?OQ zC~mEwS}<8x=NFi|;~}eFb1#Ku(|Ju+oxXD#ri!htytDsh6`WdHtcX>KGs8*dFd3CU zlv!Cft?>aw0e!7*eXz;;T?J09I#_2apOPLtXL+9F!(5YIU)uXz#IYnAuYw~PGVwc zcV2I}+&q33pMCP#J>z4#sfKc^smirZVuOB#2*BOqVwO#}W3KRHgpZ*3@6%|~$2>Gb zSyG#vGVsLq!=P~KZBw{+$yLMr#orG;#AfEq;OG6)C)WUhy{<8|JuFBBK?lb+&=55O ziV(HMSUEZB%%haZmNtoBmCZD4@dO3TZ3(0vs*~z8kt5Fx#ikK>f2D?H>bUXdKO?fv zMVBR5=!ab#?m33`=}3yeVB)IF+v?YWDokgntAU5!n|@Ri^Trh&MMh52OL(Dq)WO3_ zuXvIEMZs7TyiZ|;UZJ$+w@Z*s9i%lj|~4N)QPQ-kO_*_OU`MLj-l3X zt1Ya%-uDMgHaxL7=qvgNBP6q)^8|mcWlT*b5$)K#IB)aGNH%;WCWbgTb)3g*B6j1h z&!!i*)$IEj9<>4I^ZzP(=lMGW9@Rh`rXV`cb5;GuzgRANd8<715ks+oLLJ zyQkH5*;~+ufw=^#OG@cgNRBcKIFl6!#=T1?t|_rvUjegYrOZ$Kp~X7SeHqK=t3BpB zGo-2(n+1{M&S#=8uj!`jH$iI*K@9MX{*MEv&=nTnG!m+|oNvx<|3&v73vW}R@O~mht~)@%|Do5EaG2usVG%QlcW|4%i)!Ykn7lp}3J}UYiEUqS=~Yz6{!cjG z<5GK^nLzh+)H^TAwfUB;+*YOlR<+Zx0>VHLL@-d%X`mr`2`EDJnUW0j=vTyGcR1DC zFJ2PHYH)P`b6bK6Zw(e+201-6L9Q}D;NnzA%`}&Gya}`0%h-l}a}da7ft4pMPori2 zr62MP+OLIBUbZ_)Q_qCmhE!%UF0@x(iIn$*m>6$0_GT|$Hu7`Fjgo461R%2#JxTAb!k@__uWc(kRlNkJ21J+YWu#}O=j9ir zG9+0Tq@{0V2{o&YfH71=!?HFj)vBAAwm63`{_p5#*?s97-9I{z^erhG`zsf+EJ( zW(1o-)qtsrIj*N2xtI)j7!J(&ZaAszvPtFHNh#4fAu$53@=xrqPHwm4W8h(^sNdVS zJO6lT-|foR$=fb}HgYuVPSO(dY2{fu%cNLc>5I_L?5kI^qUwGo7QgwgJ?l)t*&8#J zr|exU_&q~W?oDRuMq8(8{1-XYCV*}I1twE~WIhlxLopM`!7E!{-9MZck(~Zy!V#wo zhA-=m#Hrd}Y&mW8DUoUpz4D@oiHmk$4Ic4gyG#8Pc>^G{@Lyh&~v-_2n3^O3DRV=!w4@|M1M_49QPrLGn6+WD*P;%#K*02?S1MgRZ+ 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 deleted file mode 100644 index 084d15c297ba842180c813d6bb60975a87c652cd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 153 zcmZQzWME{#1Z@AIUQPrLGn6+WD*P;%!XjU=c|m$qSWZ2hkuSdKs@5 ngzPOZ%-=0g!@TF!9JPs$yr62(Dc<1Hg47~~lGN_kN_ E0K(N3$^ZZW 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 deleted file mode 100644 index fd3c7f7b76f7cc2c3d01256a69093bd8f5817e58..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 152 zcmZQzWME{#1dRWoUQPrLGn6+WD*P;%!XjU=ax*$pe*R0?{BNI;9pE m@u!`cwx7%G&ztUJ8_l}zoPer9r+6H55*2b26|(b761f1Y*(LG- diff --git a/lib/wlrepo/tests/data/merged/.hg/store/fncache b/lib/wlrepo/tests/data/merged/.hg/store/fncache deleted file mode 100644 index 0e671a68..00000000 --- a/lib/wlrepo/tests/data/merged/.hg/store/fncache +++ /dev/null @@ -1,5 +0,0 @@ -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 deleted file mode 100644 index 6f22e30225d27fdd93daf26dd96b4e0456557774..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 37 qcmXpo$W6@4OiL{;(aU5oG&C^cGB8NaNX$!5&B;#(37HyNZ~*|-!wQuE diff --git a/lib/wlrepo/tests/data/merged/.hg/undo.branch b/lib/wlrepo/tests/data/merged/.hg/undo.branch deleted file mode 100644 index 331d858c..00000000 --- a/lib/wlrepo/tests/data/merged/.hg/undo.branch +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index f4260532a1d84dab0dd2bdec6252e77f519ccdb5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 194 zcmY#;bA{QW=bTY~&cerPs<+t!C-7~b#Ie-;(g)@JkRY73Ak+7H8lznFnGl#A*PefJKP_ diff --git a/lib/wlrepo/tests/data/merged/.hgignore b/lib/wlrepo/tests/data/merged/.hgignore deleted file mode 100644 index e69de29b..00000000 diff --git a/lib/wlrepo/tests/data/merged/ignored_file b/lib/wlrepo/tests/data/merged/ignored_file deleted file mode 100644 index e69de29b..00000000 diff --git a/lib/wlrepo/tests/data/merged/pub_ala.xml b/lib/wlrepo/tests/data/merged/pub_ala.xml deleted file mode 100644 index 94d21052..00000000 --- a/lib/wlrepo/tests/data/merged/pub_ala.xml +++ /dev/null @@ -1 +0,0 @@ -Super tekst. diff --git a/lib/wlrepo/tests/data/merged/pub_polish_file.xml b/lib/wlrepo/tests/data/merged/pub_polish_file.xml deleted file mode 100644 index c7ada58c..00000000 --- a/lib/wlrepo/tests/data/merged/pub_polish_file.xml +++ /dev/null @@ -1 +0,0 @@ -Gąska! diff --git a/lib/wlrepo/tests/data/merged/pub_valid_file.xml b/lib/wlrepo/tests/data/merged/pub_valid_file.xml deleted file mode 100644 index 84321884..00000000 --- a/lib/wlrepo/tests/data/merged/pub_valid_file.xml +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index d3a8311050e54c57c5be7cfe169e60a95768812c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 57 zcmWN_K?=Yi3 KWFCmI5UT+L{ye1s diff --git a/lib/wlrepo/tests/data/merged_with_local_commit/.hg/requires b/lib/wlrepo/tests/data/merged_with_local_commit/.hg/requires deleted file mode 100644 index 5175383b..00000000 --- a/lib/wlrepo/tests/data/merged_with_local_commit/.hg/requires +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 09fc04bffd4573ea3e197f2901d59c1aca855184..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1891 zcmX|B3pA8z82;zh3^B$RaphC$cNQxyXJ*FT0-A^ zu8xWlwcmLqn$PcAT_a0$j()czzJ;KK=_{>e9H};^Y51e7{hF(OWIX#lY16YqWB*`o zzcY(l$|;o&RaE#LPuX}+P^qiO6gae8P$Y1aM-W=%^5Q=&o|hn5`MGLj%{XfcE|bqI z{-Pns_`{wWK$misDwca{?cWwrv`d2whO?QeLF2aJF~0nz^~h~W$`?S3_#>6 z5%3WVrUy`@YrWPHw7my-Z4nW+P0oG81idu?)x8z+EtX1*(caiAH1YnF&~yVY@x(ML z<5YCPr5(nhXZqUq5Ph2yBS@sU(!$2dWvGPI65_e-fYD$VzLx*{IRiCbX5w=scYD;X zpVVK7BmM6NkuA;lKC>csvIy+gXPX}gphn@tlOBuO^_nqLcB0erR-+Nd%mO+s-diX> zIBnh>guTNi3C&eBReaXnZ_AFKR{V6v8a|KgFd&@+WB{U9iGt5IB7OK~xA$Y0OG!+h zyJ}DSbqglbKz|MJ{JXFD2NApcn~h%Le@1jZUAW!A61 z$f}ep=T=~}0)F>a{T_e#*YC8|y?{pftM z`_WIJw+1@LtlJh3euvA`fgLm*Gfc>WrY8At%Fc>l=dELepD~K=?T&Vm$dCBP5p_4p z+q7_wTN)hae59QugvW6LPTr^p*U!%p4i%wzx6dBBpe|^50gVmh^QR=eGZo$@X>;MF z2PRt5-=PPelK=WSDGWN!00uH6T~!KMs`e6<)VW4D7bj(ag>MGyA?wj_-Lq z+$^yTwjw)&{u+SWoz041{vDpi@H>!9Ed_LRnBgBfmKq+5dV7$0VWK`GtAQ^?lqj1P!7@-ZnHbn~HXy7X3ujn;I*v!||Agvk z4P*KE#p4iyYEKu?TLWyoJuqGYGt&EpQL+t1iPP%0)}7rr80w_QlOqrAg0cj_`Ixy8 zqQc)C8}C4ittgE-r^9SQI^r6lxIb6DoZG+|Z4weiY*tqY>Nn-%c1PMg6|Yjugni$9 zEp3lhdmr`KMe2E36Y(veJ;rm~YBp+pSrxTl;RQA8fPMok1-0UTC@8}LajS%HG`6Yf z*Px`1@^+87MRGCamCdKwO$Ffl8dhF=`27LX-XR$1n!hv{jlhp;)DbQ_qi4(Rn(y1- z_A{iqK?`NaG6`gEBRRQt89&(`ZN=;E%;{%$iAtr5)Elo!IZjvbc~2V+Hu(4GE^a#% zV{2N{?w8y>;dP^CizG=$1>O<;t8CwEAZ7u=LgfIlu+?&x(^40&hq(+un3|D)Bc}Fy zWVC_a8i3V3j`&1^DtiBmJ6!kbV*}9K#_ZB)OdXLrZz9L72=5*sLFHoB;HAM6@~W6!H7`|fWE>o&jrj>E+ALmOrz?P`(& t9MoespWG7C#Q3`OgF7)tqf4lFb+F)js9Y;w?U~bb)na_Mg@=ui^gqKg{TcuO 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 deleted file mode 100644 index 8e1e78704c3f09bd12b483633bf74fea826d536b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1295 zcmZQzWME`~023f(3}rL?hXN1xn^|f#K@!t0{?*p>uWc(kRlNkJ21J+YWu#}O=j9ir zG9+0Tq@{0V2{o&YfH71=!?HFj)vBAAwm63`{_p5#*?s97-9I{z^erhG`zsf+EJ( zW(1o-)qtsrIj*N2xtI)j7!J(&ZaAszvPtFHNh#4fAu$53@=xrqPHwm4W8h(^sNdVS zJO6lT-|foR$=fb}HgYuVPSO(dY2{fu%cNLc>5I_L?5kI^qUwGo7QgwgJ?l)t*&8#J zr|exU_&q~W?oDRuMq8(8{1-XYCV*}I1twE~WIhlxLopM`!7E!{-9MZck(~Zy!V#wo zhA-=m#Hrd}Y&mW8DUoUpz4D@oiHmk$4Ic4gyG#8Pc>^G{@Lyh&~v-_2n3^O3DRV=!w4@|M1M_49rwWQ%x;W5{=Bb03QvD A%K!iX 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 deleted file mode 100644 index 2431023a17b1e7b5c96e5db8e264c251f39beab0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 64 ncmZQzWME{#0{%n64&J91ElOJ*kA4VBT`S_X^HQPrLGn6+WD*P;%#K*02?S1MgRZ+ 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 deleted file mode 100644 index e811401c8694b738065db9b109a20dc20473d8d1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 239 zcmZQzWME{#1Z@AIUQPrLGn6+WD*P;%!XjU=c|m$qSWZ2hkuSdKs@5 zgzPOZ%-=0g!@TF!9JPs$yr62(Dc<1Hg47~~lGN_kN_ E0K(N3$^ZZW 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 deleted file mode 100644 index fd3c7f7b76f7cc2c3d01256a69093bd8f5817e58..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 152 zcmZQzWME{#1dRWoUQPrLGn6+WD*P;%!XjU=ax*$pe*R0?{BNI;9pE m@u!`cwx7%G&ztUJ8_l}zoPer9r+6H55*2b26|(b761f1Y*(LG- 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 deleted file mode 100644 index 0e671a68..00000000 --- a/lib/wlrepo/tests/data/merged_with_local_commit/.hg/store/fncache +++ /dev/null @@ -1,5 +0,0 @@ -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 deleted file mode 100644 index 40c23ad4eb57699c59fa785fdac2d0f4b475bc4f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 60 zcmYdEEJ@TaC{2n_%t_R%$j#BqWH2-}<}xtIP0Y(oOD!$|2^gB00Y#EC67$kibMn(c JLS`1`TmVW^5&QrE 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 deleted file mode 100644 index 2b1d956b..00000000 --- a/lib/wlrepo/tests/data/merged_with_local_commit/.hg/undo.branch +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 496c1aef37ed7cbb0f7c8271948a83fa600abefb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 194 zcmbQlvDEz12j(+JvL-~v)pIZ&+ve-afCc0+Ff=X!it~7F?_dSeLItHs@nwlQnJMvU znK`L?6}dSuB@9p{oO&7Qndy1?MX4|uUZ@N=NONLNBC;+HsGKlJt{^`rvp55%$vhBa HAyxwbWA`+` diff --git a/lib/wlrepo/tests/data/merged_with_local_commit/.hgignore b/lib/wlrepo/tests/data/merged_with_local_commit/.hgignore deleted file mode 100644 index e69de29b..00000000 diff --git a/lib/wlrepo/tests/data/merged_with_local_commit/ignored_file b/lib/wlrepo/tests/data/merged_with_local_commit/ignored_file deleted file mode 100644 index e69de29b..00000000 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 deleted file mode 100644 index 94d21052..00000000 --- a/lib/wlrepo/tests/data/merged_with_local_commit/pub_ala.xml +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index c7ada58c..00000000 --- a/lib/wlrepo/tests/data/merged_with_local_commit/pub_polish_file.xml +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 84321884..00000000 --- a/lib/wlrepo/tests/data/merged_with_local_commit/pub_valid_file.xml +++ /dev/null @@ -1 +0,0 @@ -Ala ma kota diff --git a/lib/wlrepo/tests/data/simple/$meta b/lib/wlrepo/tests/data/simple/$meta deleted file mode 100644 index e69de29b..00000000 diff --git a/lib/wlrepo/tests/data/simple/.hg/00changelog.i b/lib/wlrepo/tests/data/simple/.hg/00changelog.i deleted file mode 100644 index d3a8311050e54c57c5be7cfe169e60a95768812c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 57 zcmWN_K?=Yi3n)ruZ_#X`Er;_rpAaae|J!Z0Sm}uU}#(d68G9OK>Sd&7rsw4sr2=Ib Z82&>6kjV~|DM?H(M%TfrlABtR2mmQ-Ag}-c diff --git a/lib/wlrepo/tests/data/simple/.hg/requires b/lib/wlrepo/tests/data/simple/.hg/requires deleted file mode 100644 index 5175383b..00000000 --- a/lib/wlrepo/tests/data/simple/.hg/requires +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index f2451544100dace4441a882fc545eacf3724a8ce..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 759 zcmZQzWME`~fC3;@3S~3=hk~n5#a>?y-?PXk>vwV8^xM|9{(@34H6XfTj_ff*zQYPU z3f z%l3+1dS!@iNcrBjpX*ODv|oJwB#q~??ZT}E)u$Bnl!2igh^K*B3=ltnoXqfKRla}lX90yLmmh@B*?iy^_k}R18ZcEc$MnoW zu0sYqY!BvsXNvRw_{cGHQ%-KXI{!ZR>svHR*5&Zk)L6GS_RpW+5^^=)Px^pC#D$5? z;cGZ&^332n`0AL;>KK(E*~IASkE0)UYbV^6=;iX5$M=G{~IzZ2E(>*t-(yiy&r zY4-io`)iJE`THoU;4Cr+W*w W>tkqQ=;^b`$9s!`x1o>cqf4hf&ikA{t?#88 z$IakAL)sB+8pv)2hBP2P17{)!0gqead6{KiP4%~Bj`y8xaBw?c|p6JIdPN))z*NGxD3j zR;>V&&OmY|n8m=r1foH%R55;RHo0celQ*jyW^!y;$@-vcu`E;#i~@x%$am(&iMa(i zsqqCldKI}j3>Fr~hAC#IDM_Y=mX_v8hK7cTCZ>soNlB(@CT597X_i1KW78yaF0eVT z!DJ$koD9UwPz-j0;RW&8NttQocV9GT`ADC6bpOSMtzgwqqGHa})4K(M0mTrI^=!d2 zl{NE^PgK3_Iq`|!hX01l>+5eXkKbp~{ANys&&?SI6%6u+=6O6>%V+L+X4|{t@sb>SBa?WTXMFz6hZ>OpIxEcl diff --git a/lib/wlrepo/tests/data/simple/.hg/store/data/$meta.i b/lib/wlrepo/tests/data/simple/.hg/store/data/$meta.i deleted file mode 100644 index 2431023a17b1e7b5c96e5db8e264c251f39beab0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 64 ncmZQzWME{#0{%n64&J91ElOJ*kA4VBT`S_X^HQPrLGn6+WD*P;%#K*02?S1MgRZ+ diff --git a/lib/wlrepo/tests/data/simple/.hg/store/data/sample.xml.i b/lib/wlrepo/tests/data/simple/.hg/store/data/sample.xml.i deleted file mode 100644 index b115f4d6a1758906cc71810e4f01acc727168502..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 77 zcmZQzWME`~0A3))17$P*hXSUK9INyt-MW=IVP04Bx9fz}gnojm0aK-pIf)9ni3-{I HC5c=B-e46M diff --git a/lib/wlrepo/tests/data/simple/.hg/store/data/sample__pl.xml.i b/lib/wlrepo/tests/data/simple/.hg/store/data/sample__pl.xml.i deleted file mode 100644 index 920c5742f9629791a8e8bb72c9d49dd40bc7762d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 79 zcmZQzWME`~0Dd6F2W2z;hk_2nYq47;r*9No5+%L$OP2oB+os#0YQR*f`_VnA=|}e* L-h8wvJCO?jQ*#;t diff --git a/lib/wlrepo/tests/data/simple/.hg/store/fncache b/lib/wlrepo/tests/data/simple/.hg/store/fncache deleted file mode 100644 index c228181f..00000000 --- a/lib/wlrepo/tests/data/simple/.hg/store/fncache +++ /dev/null @@ -1,6 +0,0 @@ -data/$meta.i -data/.hgignore.i -data/sample.parts.i -data/sample.xml.i -data/sample_pl.xml.i -data/.hgtags.i diff --git a/lib/wlrepo/tests/data/simple/.hg/store/undo b/lib/wlrepo/tests/data/simple/.hg/store/undo deleted file mode 100644 index 3ad8b3279b620f5cbc3057b2b6d10eb99f0b26f6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 52 zcmYdEEJ@VY%SbOtOfS~UWH8_|Fvv~J%S=lxE&*~)jLd-o$r*`x>8UyS=|B-vGZQWV Du}=?# diff --git a/lib/wlrepo/tests/data/simple/.hg/strip-backup/26716f931d95-backup b/lib/wlrepo/tests/data/simple/.hg/strip-backup/26716f931d95-backup deleted file mode 100644 index 424de921845804ff60f1d4facdde7f2b0d54ca0e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 867 zcmV-p1DyOwM=>x$T4*^jL0KkKSu2faxBvhdfB(<K$&&y7|Ml@yI_%v) z>W12qZ`n><{5n7aO(91y2~<|M$}|!noTqs9-0KudU~drG&F3Z z$^oGDJtw4O2c&7~lpaaFDeX@xAZTRMO))YCni(1yG|Qq*S-H>#6|h%&|P?W6ap&LK~E!F+v$UntzorO1egr!-PGmONx_zMU@NkuMAb~dBKT;fRNcS|o(iVP`9 zkg_%2#ha63B5#A)m>4u^|6Hv315#uQSPzHzdkMB}#l9~H8gjqE8SJFcfp`GXfpOZ# z3sY3-$l_v4o+^ZzDQzI-n-@d93@TG-VO*xP6@$++CtqwzLC8(sSxuhHGrp>rQ< zn_db;hd~}@j%>i(1;pwM1x3Dd_}_Sx7_oj3r`Ljdax~`VV>SGvJL^)QV5wiLZK{}S z#bQ=Mt3zIYk#7|pYBxCOK(j`vmw?La#CVn0Gb|x9q`kY}+`q+SmT82(Li@nLwb;)1 tc>VWXDRq>?a4G>yCU6Sq1E3UMEdFP9{|K>&Cr*Ehxgwk>NEODj+yEVTdWrx5 diff --git a/lib/wlrepo/tests/data/simple/.hg/undo.branch b/lib/wlrepo/tests/data/simple/.hg/undo.branch deleted file mode 100644 index 331d858c..00000000 --- a/lib/wlrepo/tests/data/simple/.hg/undo.branch +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 310d94169efd6c83346d29be1d8fcd225cf795a2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 112 zcmccmRP6QT@I8xsvVIrWO}}kz>n|w9fCc0+Ff=X!iF@stpa7&e^)k{k)ARC+QWHU< Y|DgcLWCzNWB&HXm>tI#MO)W_T0Cd|SLI3~& diff --git a/lib/wlrepo/tests/data/simple/.hgignore b/lib/wlrepo/tests/data/simple/.hgignore deleted file mode 100644 index e69de29b..00000000 diff --git a/lib/wlrepo/tests/data/simple/.hgtags b/lib/wlrepo/tests/data/simple/.hgtags deleted file mode 100644 index 0b061138..00000000 --- a/lib/wlrepo/tests/data/simple/.hgtags +++ /dev/null @@ -1 +0,0 @@ -d5e516ebd357bca24c6afb737e97db3b3d4f111a $branchbase diff --git a/lib/wlrepo/tests/data/test5/.hg/00changelog.i b/lib/wlrepo/tests/data/test5/.hg/00changelog.i deleted file mode 100644 index d3a8311050e54c57c5be7cfe169e60a95768812c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 57 zcmWN_K?=Yi37JAkB$6iO9M*pt^)Xas~N0nZ+46 LP3D0Z3$Ypi`E@tR diff --git a/lib/wlrepo/tests/data/test5/.hg/requires b/lib/wlrepo/tests/data/test5/.hg/requires deleted file mode 100644 index 5175383b..00000000 --- a/lib/wlrepo/tests/data/test5/.hg/requires +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 29ef7d21bdd1eee2c36f3f2f55e53784be9e683b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1869 zcmX|>2T)T<7{_1o5`vV73MVI^paevU1UVBaQV#G4#UqEDpb}7!VmNF#5dl6ttvcAVe;FH~BRhjqNcHB|kBxOeZzXpj6u8zjSK9z(rbpU=QVsK3Eeo)zxF-|%sG@2GM0bW$U*u;>lM%0G^Cbw*5@byGQ z*CZu`nr3`{@Xw2Ah5c@WR$u4BzW?I4m}!STr*~VvEdmKa7l8kk&!8oIgjUBTFZAI8 zCiBU9IBKx%-xq^F@{%8A>5;P}2SA(JzXF*j= z{#jYCLS4C8v(qMy;EOv76gmpxWAAdo4adyjNImfJgJOf51 zFnZZ2&VsM??iTDfVDo}%M*%WR=>zTvcl2=oS zXv~_9h^;+^JL1P_srw(^G}~jCWTG~oq*?BY>GIEkp}m&JuiLk{q|d#L^poZOaflT2 zHj@NvDiWBi&MJpDU30T9YQlZ<&X{D)e82T3HYIJ0HtC-{ya36Z49$@3Q9*JDE*J&C z2sMmEgxYeTkQsI4F6(ri0Qar9HiMG;k_~bz0@U3VN=@c!%(3p+D|E^4Nnt4lo|4IF z`1-Nvg7cO}VaIz~_mKP=FGP~baixWV%0;Mz+!X3z?6vi|2w%g$bjm=3mv-R^I%h}J zuHEaON=^sd4yKr!{nk&UbZ~SthE6oz6G8&AI(1qx?`#JDQX-B;8nFu)^muQv zWZ$$|V=(UD46@j4oz^;Eg}bd;@zbgwj$0t-ksk(xQ@~7M%(7wRY@@OVFYUaWozEw- zeQ#^@_H8bhx(4zqLi*ngX)374Hg5_`KhB>!So2jqs6mgA$wYsgGl(t1sRYGtO-!p( zKF6tCRi0CEv121jH9R3V=mW`)7m`vbuA&{Q8_-cnAi31eOxnLQRSo}f?i{0Q#_ws^P*=G{Eub9TM3{wXv*kk5Z7?VhRd-gfO% zM5)(g(>0}%nOfQDA-5yZCl?G^+s#RO-3SAEssH1^6uH6*%f=$rRy&xsAz)_jm#K+8 z%_EIc>kuNv3FKD733i{u^H-_JiW^1cpqQea@YqzQEuM5qgwv|mu?WEr&VUA)C zrO|>3h|G3{0$;xjQELfQ54f{$WUhzp`eueaOmp@ezk#nEWSKuZ5DL)?y%~b{)Z`M5 zi|8FyaxdSBY9TW`6!mH!`|M=h_4Ina3{|q$qzJ))>2esP=o!EWJr0QoeTpKF)b|1I zY6<7~`o}Axgw-C-Ah#l<@V21vD%jEPm&_7lm>Q?uXR &GRtFExc8f=ewYEA*g)J zr%{s1Bd(Qq&~|-T^ONKL4BZseRa9|b?)vhadhS?*m^7Hd5rx7h*B-Vx(CVT3H?2(E z^UcrP`e3#9LHAwcu4nfnzXi6%cuWvyqm;|4Xa#dmY3W{sdISYts(%=mMgS`=8@bWA zhK4_b6Whz%+~ejc#ncy8A7+0l0N+=%^x7lu59s!G;ehDJ`RCCn{Fr8~?nNieY}swI zy{lb+h16GT!#134L2P5Pql?Js@s4OBud^e&FGDm~Dx0UJ4w17Rui*1~1qQ1Fx;D=n z`@~qAl(hM?Iww6-?{AVO>a9a|#QZ7W7kMZdzzFCnBqF6Y!Fe^dh<$>4a>}^OO01Ie z8q7|RTM+;i5s^~c_jcQ&l&L-nzo%Fg)SbizxSZi8>6vO!cpD#?(V~amKa5X@6(+rH ztThN}Ot?bb5dSlQXfN8roQVETRXdyQvid`C({3A`{sTL?>4g9Q diff --git a/lib/wlrepo/tests/data/test5/.hg/store/00manifest.i b/lib/wlrepo/tests/data/test5/.hg/store/00manifest.i deleted file mode 100644 index 231b5cdb55028f0ea99930b6d3823345ba47b619..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1295 zcmZQzWME`~023f(3}rL?hXN1xn^|f#K@!t0{?*p>uWc(kRlNkJ21J+YWu#}O=j9ir zG9+0Tq@{0V2{o&YfH71=!?HFj)vBAAwm63`{_p5#*?s97-9I{z^erhG`zsf+EJ( zW(1o-)qtsrIj*N2xtI)j7!J(&ZaAszvPtFHNh#4fAu$53@=xrqPHwm4W8h(^sNdVS zJO6lT-|foR$=fb}HgYuVPSO(dY2{fu%cNLc>5I_L?5kI^qUwGo7QgwgJ?l)t*&8#J zr|exU_&q~W?oDRuMq8(8{1-XYCV*}I1twE~WIhlxLopM`!7E!{-9MZck(~Zy!V#wo zhA-=m#Hrd}Y&mW8DUoUpz4D@oiHmk$4Ic4gyG#8Pc>^G{@Lyh&~v-_2n3^O3DRV=!w4@|M1M_49( diff --git a/lib/wlrepo/tests/data/test5/.hg/store/data/.hgignore.i b/lib/wlrepo/tests/data/test5/.hg/store/data/.hgignore.i deleted file mode 100644 index 2431023a17b1e7b5c96e5db8e264c251f39beab0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 64 ncmZQzWME{#0{%n64&J91ElOJ*kA4VBT`S_X^HQPrLGn6+WD*P;%#K*02?S1MgRZ+ 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 deleted file mode 100644 index 330e2f7bcc6ad6425082144fb6e0a4e0c2d2a330..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 244 zcmZQzWME{#1Z@AIUQPrLGn6+WD*P;%!XjU=c|m$qSWZ2hkuSdKs@5 zgzPOZ%-=0g!@TF!9JPs$yr62(Dc<1Hg47~~lGN_kN_ E0K(N3$^ZZW 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 deleted file mode 100644 index fd3c7f7b76f7cc2c3d01256a69093bd8f5817e58..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 152 zcmZQzWME{#1dRWoUQPrLGn6+WD*P;%!XjU=ax*$pe*R0?{BNI;9pE m@u!`cwx7%G&ztUJ8_l}zoPer9r+6H55*2b26|(b761f1Y*(LG- diff --git a/lib/wlrepo/tests/data/test5/.hg/store/fncache b/lib/wlrepo/tests/data/test5/.hg/store/fncache deleted file mode 100644 index 0e671a68..00000000 --- a/lib/wlrepo/tests/data/test5/.hg/store/fncache +++ /dev/null @@ -1,5 +0,0 @@ -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 deleted file mode 100644 index 40c23ad4eb57699c59fa785fdac2d0f4b475bc4f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 60 zcmYdEEJ@TaC{2n_%t_R%$j#BqWH2-}<}xtIP0Y(oOD!$|2^gB00Y#EC67$kibMn(c JLS`1`TmVW^5&QrE diff --git a/lib/wlrepo/tests/data/test5/.hg/undo.branch b/lib/wlrepo/tests/data/test5/.hg/undo.branch deleted file mode 100644 index 331d858c..00000000 --- a/lib/wlrepo/tests/data/test5/.hg/undo.branch +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 0bd4bce4eb8a52265567f5e8b40f5f5e70c3d2d5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 194 zcmX?bAUw6@#D?QOb$`9q1l_Xw@J?(c0~V0Sz|gn^D9+=xy?rx~7Ah!BiZ4sd$xMk) z%gjmDtH{lPDPe#r;nd4W&rHwDFG_{U@B(F?0yT4kG$-aHBJ1LS>JkRY73Ak+7H8lz KnFnGl#A*O+Av*v7 diff --git a/lib/wlrepo/tests/data/test5/.hgignore b/lib/wlrepo/tests/data/test5/.hgignore deleted file mode 100644 index e69de29b..00000000 diff --git a/lib/wlrepo/tests/data/test5/ignored_file b/lib/wlrepo/tests/data/test5/ignored_file deleted file mode 100644 index e69de29b..00000000 diff --git a/lib/wlrepo/tests/data/test5/pub_ala.xml b/lib/wlrepo/tests/data/test5/pub_ala.xml deleted file mode 100644 index b53384ce..00000000 --- a/lib/wlrepo/tests/data/test5/pub_ala.xml +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index c7ada58c..00000000 --- a/lib/wlrepo/tests/data/test5/pub_polish_file.xml +++ /dev/null @@ -1 +0,0 @@ -Gąska! diff --git a/lib/wlrepo/tests/data/test5/pub_valid_file.xml b/lib/wlrepo/tests/data/test5/pub_valid_file.xml deleted file mode 100644 index 84321884..00000000 --- a/lib/wlrepo/tests/data/test5/pub_valid_file.xml +++ /dev/null @@ -1 +0,0 @@ -Ala ma kota diff --git a/lib/wlrepo/tests/data/test5c/.hg/00changelog.i b/lib/wlrepo/tests/data/test5c/.hg/00changelog.i deleted file mode 100644 index d3a8311050e54c57c5be7cfe169e60a95768812c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 57 zcmWN_K?=Yi3 KWFCmI5UT-fsy+1p diff --git a/lib/wlrepo/tests/data/test5c/.hg/requires b/lib/wlrepo/tests/data/test5c/.hg/requires deleted file mode 100644 index 5175383b..00000000 --- a/lib/wlrepo/tests/data/test5c/.hg/requires +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 6b31c31a8163532b510ed47a7ac29cb4bb6d95fb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2087 zcmX|>2Q*x16vy9~8KX|rWrG;KL?=5FWtAXnlrSsVkT6)Hgh;_rf{C(hVxp`vWW=m6 zdW#lOg6PDEmPkUBC=(@FDUKaw-y7Edod0*f^X@z6``!EQ_W&3G0}gZ*41tGxVE<4r za){^q={TE6eo|ep?jv4lCMo#;cc2(bmFh7-KgaL^Bhy8F$h++~{9mgs%A-?~<7f(M zt&xQ-%v2?-JEBhWF~cakYv-Q0(_GTL=ZYVzm@>B|-WOV^dp9S9UHAed3?|JucQO@x z)G1${+>VG1Q{So)W*oB3Ekhve! zqxSMDS<^K&t{#bkk9ull<;XoIonibKs?aP<5?@_@Uvr{@Bc-@N6fY5_L*UA!7nXk& z?@9mDi0B^5qVCn~4>cLRFC$1*dMVE2kdwU@4FV#Z>3h8U8*(q$92@L41YAj=ISvhj zN>E%IhvSllbprkWUQkqc%juAUZUpm33Z+`~X`^Gc_<(k!suk4n?hp@Z#ru^w4uoKT zfbvMGZu9~%+j{rw9Gl;l56tx9>6kJ(twVKd9op>;MxWnqJ~2e zqShNPB?bTfI3cK|4fVaenSw8PM+S380;z{6MfSZ?dF%(;OSSx zOYZ2Y_+B6BK8tnkhz-QyqAE+jByrPp;VPO0`HttQt;U{v&vqGwY!b&mJBpEIC_c|f<+#ii-rFg) z+|{(2`2G_xe!rLk&(B!nLhrO%Mm_Or%eWL@4A!!FeaU21o!@W!_U+K2nP2ATn?kz? z@e9cXZB?q@{DRk`+e=m0*Odc;1%L?9F`yx2Bxv^M*uAULTB~3eBlBRgA))e<`IW(^ zKZCg=g;LcA4bb4{uy{GH=P#p<^x2V+z+X%}RpV_gzkoS|P+RSSZ`(py|w;5{N|ogf~FQ$W*B1NIGFz^a0^{w&O;-iZVOz_JnpuB?(53p+2=DI zOapIiyg8UZ64>qj4t{X{O{%Dk=+oS@->qyp?^&LGm<>BI+W)~@#G*}X>e6&EUn$}94YiD35DJcU!@S8#&hL^f+`R@^{7$e`E zwG1vdI9|3njT?I182H`2H^O#Ndn1^)s-9S~^NN_|pwJ4Tzz_QG3vL5Ia~&GG(Wv(J z-@M}bs(WpscJbweH~OD9ekcK-AL-z45B-0@Y47V9AK1P#6%Iqsi8o{7%@G?_`5Nbr zS)Bnyj!D7|Q&c_4Cvj$$11c|c!?gQ=5^tvVtF4<)?N;BhRgrO4=zp>9v0@p0i5GXfj6x3?&_|)Xxzx*u50c7Lszk#dv zHtF49?nq#(hfLA27!id1tA{k}2A6SQQ!uA89NCN|ZmV+BY63pM!?pqC>vm>$sFYa5HHP^JBs@ zywtP&qAe>;-T0Y=m47vQSnb&`jG!fjlOgDwCmzdd88Wk?l3|ZG8eY;|9IF#}I@?h{ zJR^(q9=nfUtl5lmwD|Fc^A)KtYKHkVCu64H7nd%I*sl})1k=dc+zHoZlqy^^=s*7k BNp%1K diff --git a/lib/wlrepo/tests/data/test5c/.hg/store/00manifest.i b/lib/wlrepo/tests/data/test5c/.hg/store/00manifest.i deleted file mode 100644 index 82963b0f45bad2c4e888fa9fcdc70693bddbd8db..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1424 zcmZQzWME`~023f(3}rL?hXN1xn^|f#K@!t0{?*p>uWc(kRlNkJ21J+YWu#}O=j9ir zG9+0Tq@{0V2{o&YfH71=!?HFj)vBAAwm63`{_p5#*?s97-9I{z^erhG`zsf+EJ( zW(1o-)qtsrIj*N2xtI)j7!J(&ZaAszvPtFHNh#4fAu$53@=xrqPHwm4W8h(^sNdVS zJO6lT-|foR$=fb}HgYuVPSO(dY2{fu%cNLc>5I_L?5kI^qUwGo7QgwgJ?l)t*&8#J zr|exU_&q~W?oDRuMq8(8{1-XYCV*}I1twE~WIhlxLopM`!7E!{-9MZck(~Zy!V#wo zhA-=m#Hrd}Y&mW8DUoUpz4D@oiHmk$4Ic4gyG#8Pc>^G{@Lyh&~v-_2n3^O3DRV=!w4@|M1M_49rwWQ%x;W5{=9t9_R-f zh3o*3I48&f|Bj}Fvzb@S`=_LRs_3R)k;uNKpu~s_usQ%(?3txlSeT}nnWh=08Ksz{ an57vS8yY2ACR&<<%0~-B%R~bULoNW_#j0ii diff --git a/lib/wlrepo/tests/data/test5c/.hg/store/data/.hgignore.i b/lib/wlrepo/tests/data/test5c/.hg/store/data/.hgignore.i deleted file mode 100644 index 2431023a17b1e7b5c96e5db8e264c251f39beab0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 64 ncmZQzWME{#0{%n64&J91ElOJ*kA4VBT`S_X^HQPrLGn6+WD*P;%#K*02?S1MgRZ+ 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 deleted file mode 100644 index c390642dcac7588c72358fd7c6b3d3adc620b075..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 360 zcmZQzWME{#1Z@AIUQPrLGn6+WD*P;%!XjU=c|m$qSWZ2hkuSdKs@5 zgzPOZ%-=0g!@TF!9JPs$yr62(Dc<1Hg47~~lGNZ06JL@5 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 deleted file mode 100644 index 3488bccb18f799c89d416b5fca591ba90e6ee85c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 73 zcmZQzWME`~08Svq0cA7&hk^+j6GYdfge+)Z@oKk=!`4GTE3FElYQR*f`;pe->_kN_ E0K(N3$^ZZW 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 deleted file mode 100644 index fd3c7f7b76f7cc2c3d01256a69093bd8f5817e58..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 152 zcmZQzWME{#1dRWoUQPrLGn6+WD*P;%!XjU=ax*$pe*R0?{BNI;9pE m@u!`cwx7%G&ztUJ8_l}zoPer9r+6H55*2b26|(b761f1Y*(LG- diff --git a/lib/wlrepo/tests/data/test5c/.hg/store/fncache b/lib/wlrepo/tests/data/test5c/.hg/store/fncache deleted file mode 100644 index 0e671a68..00000000 --- a/lib/wlrepo/tests/data/test5c/.hg/store/fncache +++ /dev/null @@ -1,5 +0,0 @@ -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 deleted file mode 100644 index 70ff532a3700479b4b3d0d30ba1bed68836329a5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 60 zcmYdEEJ@TaC{2n_%t_R%$j#BqWH2(e!|qGE?Hy zGILV(DsppRN*JI@IQ25pGt=|(i&9}SqCgo(pk{86=ER&tWL+FkUBV!_g8ZD!;tZT7 K^FWM+SPcM?yf&Bs diff --git a/lib/wlrepo/tests/data/test5c/.hgignore b/lib/wlrepo/tests/data/test5c/.hgignore deleted file mode 100644 index e69de29b..00000000 diff --git a/lib/wlrepo/tests/data/test5c/ignored_file b/lib/wlrepo/tests/data/test5c/ignored_file deleted file mode 100644 index e69de29b..00000000 diff --git a/lib/wlrepo/tests/data/test5c/pub_ala.xml b/lib/wlrepo/tests/data/test5c/pub_ala.xml deleted file mode 100644 index 94d21052..00000000 --- a/lib/wlrepo/tests/data/test5c/pub_ala.xml +++ /dev/null @@ -1 +0,0 @@ -Super tekst. diff --git a/lib/wlrepo/tests/data/test5c/pub_polish_file.xml b/lib/wlrepo/tests/data/test5c/pub_polish_file.xml deleted file mode 100644 index c7ada58c..00000000 --- a/lib/wlrepo/tests/data/test5c/pub_polish_file.xml +++ /dev/null @@ -1 +0,0 @@ -Gąska! diff --git a/lib/wlrepo/tests/data/test5c/pub_valid_file.xml b/lib/wlrepo/tests/data/test5c/pub_valid_file.xml deleted file mode 100644 index 84321884..00000000 --- a/lib/wlrepo/tests/data/test5c/pub_valid_file.xml +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index d3a8311050e54c57c5be7cfe169e60a95768812c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 57 zcmWN_K?=Yi3K diff --git a/lib/wlrepo/tests/data/test6-update/.hg/requires b/lib/wlrepo/tests/data/test6-update/.hg/requires deleted file mode 100644 index 5175383b..00000000 --- a/lib/wlrepo/tests/data/test6-update/.hg/requires +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 7c76d905a9404350231655205ba4a8821b9fb0ee..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2291 zcmX|?2{e@5AIG0DGiGd)_2ms2WX)c^Gg%U$*H~gwZ&ZdNOQZ$I5~h$AlO@Zf5w92t zgM?&hh_Qxjtz?NzmP*_4j^%%!;qQCS_uhM+-*e9W{C@X$p9exf2xwhrz!bExhSoOp zB8zgkgGscH5~DtD+j(C^iAxRn|2yy;#!%##;GW|}p}vvAcJvMQ`GD8jQ`>RLNpZPq zIt@_;_1qK<+siVp6IXgLj%N=(@ytDu>NEb}k(LE_N&Z8DwXRQHLimyIP(oMYs9Q5v z%~zNH{mHGj5rRkUhK+wN`~BYSwsyx{;F5A4e_I$5f?|Ph@>kG0K1{1~_n#6rhrHU$zv#&W^49}1pLnx5SOK#~8l?o(3$d@6>M;no`8O(x` zA99?u>t+_ahGk>#yEnng?Uo-zrHbYrfHtSzX%;BzeS$51d*fdw{< zfKyPP8$=QldyIkt{+(1;dnf3ejH?0hO@%S6+YNEC2BHw#tZW9ewKeo4qx8c}oB&Fq zBT%#N;m(*zO8U{K*?I>wuIY%cT$3xeMRmL9BB6u3&ZX^ZvB_Ni9OTB!KXif+`S}h3 zDTh^~CUjL)vKXQiPBZ;$ZeLomSD2neRvVw(cgJr%;u2IAE5o~RoE6HeFsQq>(Nrst4p zXCjI&@6z%+*VlT0;MNoyL?lMD9yV64L8ZiIUxyvenr}LBwalv*)ny7YVuu8BcZTfQ zEBk69*dx!IWT5x=fFY?P8Bc$AzUeUsYV3V-+I~f`UOsZxboi{W;dqc1ttc!Y#-(@S z@SI+gH|8Fl*sCWcFXbxus5L8QPVDPBBRC&^GGMw0Oa(@57zyV##(VPK+~v9T?Kc&6c%4&D00^gR^qlz)2UQwEH8TBHU zk}HMEb1ULIwjsp)ujG4uC72iZq*nG;QO?v4DvDkq*woEW@0-;X^Iy7jDXe?+?}>@p zuoiOsWKw=(nf6crkog$)LoNPw6@XzOC=&PzFpP`_<{!t(4XuVsHODK;cZaJJSYND8 zcRk$;Vw(zM=ysXlz;Rf=9NZP4tc&(tmX{|Ty|%l;$7=f|em`2wuFb-f8~g?LJg6?c zyj1~fq10fp=*sILBJ5A%vBH|g*nVbC??^GSAp880a9K{nD`;}?0dtnyGhgANow69n za-MEZ5iXst;|0I7I~8$ZRU<*)fS}w1GYG8re>7OaS6FbvXt>(q$1}Ei%pd$QGj-tk zXcO1O$B<+N;+q21?r0JN{lD*JB(q(BrXY%n@YlGm&?dcI$~TwXRyM;m=l-7Xv+Q*c z9xIxHh%{Ts^W%FT@fJ^MkNby5m-}e8pXP}p6l=%HySTdH1cTSde4&7cE@6#d$VsKi zHl4HNiN_DD$VNPk6CocC)553g(=r>FJVdFaPBDyu4B*4SMW+M9^cZ-C=~J-Z5a4Pu*u3vUJrFNz-Pc~33ffh0#O^c$%xNWAg0R4ou9z1ah0azN!H z7sm*q<uoUi#aSa*LKn>G)JcBBG=}U$#8AficeRB@EM(JAIKCBu|J#59s!G&S2-#Y-oO>UY*gRk(XFzw z<4B~5PHCHaLf5oodW{k{PFV`x5%mv$-$XEG0>hv}z!TU~MEM6Mr^y*%&UG<4UXi*}I6@jiJP?ofXaw`J+CuOr77meH)KY7ATWa2a{OI;Ytfa9D^5bXIMxUrqDM>e{X8$g|?2il@hUwR^5Nui# z=ebWdYU^nwUpDpU>NYzdiMrzx{+-m@)&Fb5$!bS^DupTu}bbHDSB3Y=jbm<+ne4+evR7_;PFtZu%GerXPo!-nwaf{*OULW9UNS0RGQ} zXC%dEd4<1i^>@aPCd~Y&$KkQ>An+14birN;w;Z`x5u4D_8Lf0Dl3CBR{?x!@@uy== zRXw9BM4y3Mq^XLqAjR`K*QMfE Z;G&e{Qv4yT)3+n+z5CZNqqCZx{{u2Dl{EkW diff --git a/lib/wlrepo/tests/data/test6-update/.hg/store/00manifest.i b/lib/wlrepo/tests/data/test6-update/.hg/store/00manifest.i deleted file mode 100644 index 053fed3be4b6f8a499fb9e042649de1bcbc525ea..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1618 zcmZQzWME`~023f(3}rL?hXN1xn^|f#K@!t0{?*p>uWc(kRlNkJ21J+YWu#}O=j9ir zG9+0Tq@{0V2{o&YfH71=!?HFj)vBAAwm63`{_p5#*?s97-9I{z^erhG`zsf+EJ( zW(1o-)qtsrIj*N2xtI)j7!J(&ZaAszvPtFHNh#4fAu$53@=xrqPHwm4W8h(^sNdVS zJO6lT-|foR$=fb}HgYuVPSO(dY2{fu%cNLc>5I_L?5kI^qUwGo7QgwgJ?l)t*&8#J zr|exU_&q~W?oDRuMq8(8{1-XYCV*}I1twE~WIhlxLopM`!7E!{-9MZck(~Zy!V#wo zhA-=m#Hrd}Y&mW8DUoUpz4D@oiHmk$4Ic4gyG#8Pc>^G{@Lyh&~v-_2n3^O3DRV=!w4@|M1M_49rwWQ%x;W5{=9t9_R-f zh3o*3I48&f|Bj}Fvzb@S`=_LRs_3R)k;uNKpu~s_usQ%(?3txlSeT}nnWh=08Ksz{ zn57vS8yY2ACR&<<%0~-B%R~bULx=+|fX!Wfy+Pz-6$xwp0QQJbyk r-=)*fDQ_!0^KUWnRmUp4PtWlV$a+(*qpKB^e@J_+y-j^=$P~d 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 deleted file mode 100644 index 2431023a17b1e7b5c96e5db8e264c251f39beab0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 64 ncmZQzWME{#0{%n64&J91ElOJ*kA4VBT`S_X^HQPrLGn6+WD*P;%#K*02?S1MgRZ+ 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 deleted file mode 100644 index c390642dcac7588c72358fd7c6b3d3adc620b075..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 360 zcmZQzWME{#1Z@AIUQPrLGn6+WD*P;%!XjU=c|m$qSWZ2hkuSdKs@5 zgzPOZ%-=0g!@TF!9JPs$yr62(Dc<1Hg47~~lGNZ06JL@5 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 deleted file mode 100644 index 3488bccb18f799c89d416b5fca591ba90e6ee85c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 73 zcmZQzWME`~08Svq0cA7&hk^+j6GYdfge+)Z@oKk=!`4GTE3FElYQR*f`;pe->_kN_ E0K(N3$^ZZW 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 deleted file mode 100644 index fd3c7f7b76f7cc2c3d01256a69093bd8f5817e58..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 152 zcmZQzWME{#1dRWoUQPrLGn6+WD*P;%!XjU=ax*$pe*R0?{BNI;9pE m@u!`cwx7%G&ztUJ8_l}zoPer9r+6H55*2b26|(b761f1Y*(LG- diff --git a/lib/wlrepo/tests/data/test6-update/.hg/store/fncache b/lib/wlrepo/tests/data/test6-update/.hg/store/fncache deleted file mode 100644 index 0e671a68..00000000 --- a/lib/wlrepo/tests/data/test6-update/.hg/store/fncache +++ /dev/null @@ -1,5 +0,0 @@ -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 deleted file mode 100644 index 653cbbb9d419e50c52fc9affa67418c17c3d0986..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 37 rcmXpo$W6@4OiL{;(aU5oG%+&aGB8NaNX$!5&B;#(3K!|qGE?HyGILV(DsppRN*JI@IQ25pGt=|(i&9}Syigf#kmkgk eM3Al`pkc^B7$jGapOaaf0XG?44G+Xvh}8hnnm@1r diff --git a/lib/wlrepo/tests/data/test6-update/.hgignore b/lib/wlrepo/tests/data/test6-update/.hgignore deleted file mode 100644 index e69de29b..00000000 diff --git a/lib/wlrepo/tests/data/test6-update/pub_ala.xml b/lib/wlrepo/tests/data/test6-update/pub_ala.xml deleted file mode 100644 index 94d21052..00000000 --- a/lib/wlrepo/tests/data/test6-update/pub_ala.xml +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 84321884..00000000 --- a/lib/wlrepo/tests/data/test6-update/pub_valid_file.xml +++ /dev/null @@ -1 +0,0 @@ -Ala ma kota diff --git a/lib/wlrepo/tests/test_mercurial.py b/lib/wlrepo/tests/test_mercurial.py deleted file mode 100644 index 09780671..00000000 --- a/lib/wlrepo/tests/test_mercurial.py +++ /dev/null @@ -1,242 +0,0 @@ -# -*- encoding: utf-8 -*- - -__author__= "Łukasz Rekucki" -__date__ = "$2009-09-18 14:43:27$" -__doc__ = "Tests for RAL mercurial backend." - -from nose.tools import * - -from wlrepo import MercurialLibrary - -import os, os.path, tempfile -import shutil - -REPO_TEMPLATES = os.path.join( os.path.dirname(__file__), 'data') - -def temprepo(name): - - from functools import wraps - - def decorator(func): - def decorated(*args, **kwargs): - clean = False - try: - temp = tempfile.mkdtemp("", "testdir_" ) - path = os.path.join(temp, 'repo') - shutil.copytree(os.path.join(REPO_TEMPLATES, name), path, False) - kwargs['library'] = MercurialLibrary(path) - func(*args, **kwargs) - clean = True - finally: - #if not clean and self.response: - # print "RESULT", func.__name__, ">>>" - # print self.response - # print "<<<" - shutil.rmtree(temp, True) - - decorated = make_decorator(func)(decorated) - return decorated - - return decorator - -@temprepo('clean') -def test_opening(library): - pass - -@temprepo('simple') -def test_read_document(library): - doc = library.document('sample') - assert_equal(doc.data('xml'), 'Ala ma kota\n') - -@temprepo('simple') -def test_read_UTF8_document(library): - doc = library.document('sample_pl') - assert_equal(doc.data('xml'), u'Gżegżółka\n'.encode('utf-8')) - -@temprepo('simple') -def test_change_document(library): - doc = library.document('sample') - STRING = u'Gąski lubią pływać!\n'.encode('utf-8') - - def write_action(library, resolve): - f = library._fileopen(resolve('xml'), 'r+') - assert_equal(f.read(), 'Ala ma kota\n') - f.seek(0) - f.write(STRING) - f.flush() - f.seek(0) - assert_equal(f.read(), STRING) - - def commit_info(document): - return ("Document rewrite", "library") - - ndoc = doc.invoke_and_commit(write_action, commit_info) - assert_equal(ndoc.data('xml'), STRING) - - -@temprepo('simple') -def test_create_document(library): - assert_equal(sorted(library.documents()), sorted(['sample', 'sample_pl'])) - - doc = library.document_create("creation") - doc.quickwrite("xml", "", "Quick write", user="library") - - assert_equal(sorted(library.documents()), sorted(['sample', 'sample_pl', 'creation'])) - -# -#@temprepo('branched') -#def test_switch_branch(library): -# tester_cab = library.cabinet("valid_file", "tester", create=False) -# assert_equal( list(tester_cab.parts()), ['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('branched2') -#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) -# print main -# -# local = library.shelf(7) -# print local -# -# document = library.document("ala", "admin") -# shared = document.shared() -# assert_true( shared is None ) -# document.share("Here is my copy!") -# -# assert_equal( document.shelf(), local) # local didn't change -# -# shared = document.shared() -# assert_true( shared is not None ) -# -# print library.shelf() -# -# 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) ) -# -#@temprepo('clean') -#def test_create_branch(library): -# tester_cab = library.cabinet("anotherone", "tester", create=True) -# assert_equal( list(tester_cab.parts()), ['anotherone']) - -- 2.20.1