comparison mercurial/copies.py @ 9030:3f56055ff1d7

compat: can't compare two values of unequal datatypes
author Alejandro Santos <alejolp@alejolp.com>
date Sun, 05 Jul 2009 11:01:01 +0200
parents f9a80054dd3c
children bbc78cb1bf15
comparison
equal deleted inserted replaced
9029:0001e49f1c11 9030:3f56055ff1d7
40 if s in seen: 40 if s in seen:
41 continue 41 continue
42 seen.add(s) 42 seen.add(s)
43 if fc.path() != orig and fc.path() not in old: 43 if fc.path() != orig and fc.path() not in old:
44 old[fc.path()] = (depth, fc.path()) # remember depth 44 old[fc.path()] = (depth, fc.path()) # remember depth
45 if fc.rev() < limit and fc.rev() is not None: 45 if fc.rev() is not None and fc.rev() < limit:
46 continue 46 continue
47 visit += [(p, depth - 1) for p in fc.parents()] 47 visit += [(p, depth - 1) for p in fc.parents()]
48 48
49 # return old names sorted by depth 49 # return old names sorted by depth
50 return [o[1] for o in sorted(old.values())] 50 return [o[1] for o in sorted(old.values())]