[PATCH] fix rewrite-log with recent API changes

Matt Mackall mpm at selenic.com
Mon Sep 8 20:29:06 CDT 2008


On Tue, 2008-09-09 at 01:02 +0200, Benoit Boissinot wrote:
> Since the datafile argument was removed from revlog(), rewrite-log is
> broken (it was further broken by the API change from localrepo:
> revlog.count() -> len(revlog)).
> 
> The patch below fixes it.

Using revlog.files() would be better?

> Matt, you did the changes in revlog.__init__(), do you think we can put
> the datafile as an optional argument back ?

Would rather not.

-- 
Mathematics is the supreme nostalgia of our time.



More information about the Mercurial-devel mailing list