equal
deleted
inserted
replaced
104 slowpath = anypats |
104 slowpath = anypats |
105 fncache = {} |
105 fncache = {} |
106 |
106 |
107 if not slowpath and not files: |
107 if not slowpath and not files: |
108 # No files, no patterns. Display all revs. |
108 # No files, no patterns. Display all revs. |
109 wanted = dict(zip(revs, revs)) |
109 wanted = dict.fromkeys(revs) |
110 copies = [] |
110 copies = [] |
111 if not slowpath: |
111 if not slowpath: |
112 # Only files, no patterns. Check the history of each file. |
112 # Only files, no patterns. Check the history of each file. |
113 def filerevgen(filelog, node): |
113 def filerevgen(filelog, node): |
114 cl_count = repo.changelog.count() |
114 cl_count = repo.changelog.count() |
208 for rev in opts.get('prune', ()): |
208 for rev in opts.get('prune', ()): |
209 rev = repo.changelog.rev(repo.lookup(rev)) |
209 rev = repo.changelog.rev(repo.lookup(rev)) |
210 ff = followfilter() |
210 ff = followfilter() |
211 stop = min(revs[0], revs[-1]) |
211 stop = min(revs[0], revs[-1]) |
212 for x in xrange(rev, stop-1, -1): |
212 for x in xrange(rev, stop-1, -1): |
213 if ff.match(x) and wanted.has_key(x): |
213 if ff.match(x) and x in wanted: |
214 del wanted[x] |
214 del wanted[x] |
215 |
215 |
216 def iterate(): |
216 def iterate(): |
217 if follow and not files: |
217 if follow and not files: |
218 ff = followfilter(onlyfirst=opts.get('follow_first')) |
218 ff = followfilter(onlyfirst=opts.get('follow_first')) |