fix repeated clear of PREV
@@ -1485,7 +1485,7 @@ class ServerRevisionsIndexes(unittest.TestCase):
self.assertEqual(pref2.ref.revision, pref3.ref.revision)
self.assertEqual(pref3.ref.revision, server_pref3.revision)
- pref = pref1.copy_clear_prev().copy_with_revs(pref1.ref.revision, None)
+ pref = pref1.copy_clear_prev()
revs = [r.revision
for r in self.server.server_store.get_package_revisions(pref)]
self.assertEqual(revs, [pref3.revision, pref2.revision, pref1.revision])
@@ -1552,7 +1552,7 @@ class ServerRevisionsIndexes(unittest.TestCase):
pref4 = self.c_v2.create(self.ref, conanfile=conanfile)
self.c_v2.upload_all(self.ref)
- pref = pref1.copy_clear_prev().copy_with_revs(pref1.ref.revision, None)
+ pref = pref1.copy_clear_prev()
revs = [r.revision
for r in self.server.server_store.get_package_revisions(pref)]
self.assertEqual(revs, [pref4.revision])
