changeset 796:443e563f0943

Deduplicate markers. Depends on __hash__ and __eq__ on obsolete.marker
author Augie Fackler <raf@durin42.com>
date Sat, 16 Nov 2013 20:44:37 -0500
parents c6888ec28e9e
children 2f9ea881591a
files hgfastobs.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgfastobs.py	Sat Nov 16 20:43:44 2013 -0500
+++ b/hgfastobs.py	Sat Nov 16 20:44:37 2013 -0500
@@ -105,6 +105,7 @@
         transmit.extend(obsolete.precursormarkers(urepo[node]))
     for node in boxedges:
         transmit.extend(obsolete.successormarkers(urepo[node]))
+    transmit = list(set(transmit))
     xmit, total = len(transmit), len(repo.obsstore._all)
     repo.ui.status(
         'boxpush: about to transmit %d obsolete markers (%d markers total)\n'