Mercurial > hg
comparison mercurial/dagparser.py @ 32730:b8ff7d0ff361
localrepo: move filtername to __init__
This is obviously an instance attribute, not a type attribute. The
modern Python style is to use __init__ for defining these.
This exposes statichttprepo as inheriting from localrepository
without calling its __init__. As a result, its __init__ defines
a lot of variables that methods on localrepository's methods need.
But factoring the common bits into a separate class is for another
day.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Thu, 08 Jun 2017 23:23:37 -0700 |
parents | 56b2bcea2529 |
children | c91013452b33 |
comparison
equal
deleted
inserted
replaced
32729:c8177792fef6 | 32730:b8ff7d0ff361 |
---|