changeset 1061:fed8d078840b

Fix set type usage for Python 2.3
author mpm@selenic.com
date Fri, 26 Aug 2005 02:03:35 -0700
parents e453d2053b2e
children 6d5a62a549fa
files mercurial/commands.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Fri Aug 26 01:56:49 2005 -0700
+++ b/mercurial/commands.py	Fri Aug 26 02:03:35 2005 -0700
@@ -9,7 +9,7 @@
 demandload(globals(), "os re sys signal shutil")
 demandload(globals(), "fancyopts ui hg util lock")
 demandload(globals(), "fnmatch hgweb mdiff random signal time traceback")
-demandload(globals(), "errno socket version struct atexit")
+demandload(globals(), "errno socket version struct atexit sets")
 
 class UnknownCommand(Exception):
     """Exception raised if command is not in the command table."""
@@ -841,7 +841,7 @@
 
     prev = {}
     def display(fn, rev, states, prevstates):
-        diff = list(set(states).symmetric_difference(set(prevstates)))
+        diff = list(sets.Set(states).symmetric_difference(sets.Set(prevstates)))
         diff.sort(lambda x, y: cmp(x.linenum, y.linenum))
         for l in diff:
             if incrementing: