author | Nicolas Dumazet <nicdumz.commits@gmail.com> |
Sun, 15 Aug 2010 23:38:00 +0900 | |
changeset 11901 | a80577bfea29 |
parent 11900 | cd7182358d9f |
child 11902 | 3c9a5ed9b1e2 |
mercurial/cmdutil.py | file | annotate | diff | comparison | revisions | |
tests/test-log.t | file | annotate | diff | comparison | revisions | |
tests/test-mq-caches.t | file | annotate | diff | comparison | revisions | |
tests/test-mq-eol.t | file | annotate | diff | comparison | revisions | |
tests/test-mq-guards.t | file | annotate | diff | comparison | revisions | |
tests/test-mq-safety.t | file | annotate | diff | comparison | revisions | |
tests/test-mq.t | file | annotate | diff | comparison | revisions |
--- a/mercurial/cmdutil.py Sun Aug 15 23:34:46 2010 +0900 +++ b/mercurial/cmdutil.py Sun Aug 15 23:38:00 2010 +0900 @@ -1086,8 +1086,7 @@ revs.append((linkrev, parentlinkrevs, follow and filelog.renamed(n))) - for rev in reversed(revs): - yield rev + return reversed(revs) def iterfiles(): for filename in match.files(): yield filename, None @@ -1124,8 +1123,7 @@ if flparentlinkrevs: ancestors.update(flparentlinkrevs) - fncache.setdefault(rev, []) - fncache[rev].append(file_) + fncache.setdefault(rev, []).append(file_) wanted.add(rev) if copied: copies.append(copied)