Big restructuring in tip

Matt Mackall mpm at selenic.com
Sat Aug 27 18:55:32 CDT 2005


I've spent the past few hours breaking the hg.py file apart into its
constituent classes. This is a pretty big change, but is almost
entirely code movement:

$ hg diff -r 1088 -r tip | diffstat -p1
mercurial/changelog.py      |   41
mercurial/commands.py       |   69 -
mercurial/dirstate.py       |  312 +++++
mercurial/filelog.py        |   98 +
mercurial/hg.py             | 2290 --------------------------------------------
mercurial/hgweb.py          |    7
mercurial/httprepo.py       |  142 ++
mercurial/localrepo.py      | 1400 ++++++++++++++++++++++++++
mercurial/manifest.py       |  167 +++
mercurial/node.py           |   21
mercurial/remoterepo.py     |   20
mercurial/repo.py           |    8
mercurial/revlog.py         |   36
mercurial/sshrepo.py        |  129 ++
mercurial/statichttprepo.py |   35
mercurial/util.py           |   29
16 files changed, 2468 insertions(+), 2336 deletions(-)

The end result is that namespaces are much cleaner and things are
easier to find.

I've also factored the old-http code out of localrepository, so that's
now cleaner as well.

Everything seems to be working fine on my end, but I expect there are
one or two things left that the test suite missed. Let me know if you
run into any trouble.

-- 
Mathematics is the supreme nostalgia of our time.


More information about the Mercurial mailing list