Mercurial > public > mercurial-scm > hg-stable
diff mercurial/copies.py @ 6750:fb42030d79d6
add __len__ and __iter__ methods to repo and revlog
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 26 Jun 2008 14:35:50 -0500 |
parents | 9eb274d773d9 |
children | f67d1468ac50 |
line wrap: on
line diff
--- a/mercurial/copies.py Thu Jun 26 14:35:50 2008 -0500 +++ b/mercurial/copies.py Thu Jun 26 14:35:50 2008 -0500 @@ -67,7 +67,7 @@ # - quit when interesting revs is zero cl = repo.changelog - working = cl.count() # pseudo rev for the working directory + working = len(cl) # pseudo rev for the working directory if a is None: a = working if b is None: