[ARVADOS] updated: 66f42779127b7e48ef4437b7d4ec471e43f9636b
git at public.curoverse.com
git at public.curoverse.com
Thu Feb 5 11:24:44 EST 2015
Summary of changes:
sdk/python/tests/test_collections.py | 12 ++++++++++++
1 file changed, 12 insertions(+)
via 66f42779127b7e48ef4437b7d4ec471e43f9636b (commit)
from bac1bf1fa5154b0db653d5ba0353458e1fc24dd2 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 66f42779127b7e48ef4437b7d4ec471e43f9636b
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date: Thu Feb 5 11:26:53 2015 -0500
4823: Another merge conflict test.
diff --git a/sdk/python/tests/test_collections.py b/sdk/python/tests/test_collections.py
index bff2965..7880f1e 100644
--- a/sdk/python/tests/test_collections.py
+++ b/sdk/python/tests/test_collections.py
@@ -1003,6 +1003,18 @@ class NewCollectionTestCase(unittest.TestCase, CollectionTestMixin):
self.assertTrue(re.match(r"\. 95ebc3c7b3b9f1d2c40fec14415d3cb8\+5 5348b82a029fd9e971a811ce1f71360b\+43 0:5:count1.txt 5:10:count1.txt~conflict-\d\d\d\d-\d\d-\d\d-\d\d:\d\d:\d\d~$",
c1.manifest_text()))
+ def test_conflict4(self):
+ c1 = Collection('. 781e5e245d69b566979b86e28d23f2c7+10 0:10:count1.txt', sync=SYNC_EXPLICIT)
+ c2 = Collection('. 5348b82a029fd9e971a811ce1f71360b+43 0:10:count1.txt')
+ d = c1.diff(c2)
+ self.assertEqual(d, [('mod', './count1.txt', c1["count1.txt"], c2["count1.txt"])])
+ c1.remove("count1.txt")
+
+ # c1 deleted, so c2 mod will go to a conflict file
+ c1.apply(d)
+ self.assertTrue(re.match(r"\. 5348b82a029fd9e971a811ce1f71360b\+43 0:10:count1.txt~conflict-\d\d\d\d-\d\d-\d\d-\d\d:\d\d:\d\d~$",
+ c1.manifest_text()))
+
if __name__ == '__main__':
unittest.main()
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list