comparison mercurial/commands.py @ 1765:b9fac31f34c9

hg log --limit shouldn't count unprinted revisions (found by TK Soh)
author Thomas Arendsen Hein <thomas@intevation.de>
date Tue, 21 Feb 2006 15:54:50 +0100
parents 4671078dbfe7
children b9671b41e360
comparison
equal deleted inserted replaced
1764:4671078dbfe7 1765:b9fac31f34c9
1658 prev = (parents and parents[0]) or nullid 1658 prev = (parents and parents[0]) or nullid
1659 dodiff(du, du, repo, prev, changenode, match=matchfn) 1659 dodiff(du, du, repo, prev, changenode, match=matchfn)
1660 du.write("\n\n") 1660 du.write("\n\n")
1661 elif st == 'iter': 1661 elif st == 'iter':
1662 if count == limit: break 1662 if count == limit: break
1663 count += 1 1663 if du.hunk[rev]:
1664 for args in du.hunk[rev]: 1664 count += 1
1665 ui.write(*args) 1665 for args in du.hunk[rev]:
1666 ui.write(*args)
1666 1667
1667 def manifest(ui, repo, rev=None): 1668 def manifest(ui, repo, rev=None):
1668 """output the latest or given revision of the project manifest 1669 """output the latest or given revision of the project manifest
1669 1670
1670 Print a list of version controlled files for the given revision. 1671 Print a list of version controlled files for the given revision.