comparison mercurial/scmutil.py @ 16814:9da5a2864f3f stable

scmutil: seen.union should be seen.update (issue3476)
author Bryan O'Sullivan <bryano@fb.com>
date Thu, 31 May 2012 20:55:30 -0700
parents 2a0efa1112ac
children 8abee656e14c
comparison
equal deleted inserted replaced
16813:6d42c797ca6e 16814:9da5a2864f3f
566 # defer syncing seen until next iteration 566 # defer syncing seen until next iteration
567 continue 567 continue
568 newrevs = set(xrange(start, end + step, step)) 568 newrevs = set(xrange(start, end + step, step))
569 if seen: 569 if seen:
570 newrevs.difference_update(seen) 570 newrevs.difference_update(seen)
571 seen.union(newrevs) 571 seen.update(newrevs)
572 else: 572 else:
573 seen = newrevs 573 seen = newrevs
574 l.extend(sorted(newrevs, reverse=start > end)) 574 l.extend(sorted(newrevs, reverse=start > end))
575 continue 575 continue
576 elif spec and spec in repo: # single unquoted rev 576 elif spec and spec in repo: # single unquoted rev