Mercurial > hg
comparison mercurial/cmdutil.py @ 20757:3813a1dd9eb9
cmdutil: changed revset for spanset
Instead of using baseset(repo.changelog) changed it for spanset(repo) which is
much faster.
author | Lucas Moscovicz <lmoscovicz@fb.com> |
---|---|
date | Fri, 14 Mar 2014 08:44:52 -0700 |
parents | e7833e63bb42 |
children | 98d6c7954057 |
comparison
equal
deleted
inserted
replaced
20756:e7833e63bb42 | 20757:3813a1dd9eb9 |
---|---|
1644 possiblyunsorted = True | 1644 possiblyunsorted = True |
1645 else: | 1645 else: |
1646 if follow and len(repo) > 0: | 1646 if follow and len(repo) > 0: |
1647 revs = repo.revs('reverse(:.)') | 1647 revs = repo.revs('reverse(:.)') |
1648 else: | 1648 else: |
1649 revs = revset.baseset(repo.changelog) | 1649 revs = revset.spanset(repo) |
1650 revs.reverse() | 1650 revs.reverse() |
1651 if not revs: | 1651 if not revs: |
1652 return [], None, None | 1652 return [], None, None |
1653 revs = revset.baseset(revs) | 1653 revs = revset.baseset(revs) |
1654 expr, filematcher = _makegraphlogrevset(repo, pats, opts, revs) | 1654 expr, filematcher = _makegraphlogrevset(repo, pats, opts, revs) |