revlog: ancestors(*revs) becomes ancestors(revs) (API)
Accepting a variable number of arguments as the old API did is deeply ugly, particularly as it means the API can't be extended with new arguments. Partly as a result, we have at least three different implementations of the same ancestors algorithm (!?). Most callers were forced to call ancestors(*somelist), adding to both inefficiency and ugliness.
Showing
- contrib/perf.py 1 addition, 1 deletioncontrib/perf.py
- hgext/rebase.py 2 additions, 2 deletionshgext/rebase.py
- mercurial/commands.py 2 additions, 2 deletionsmercurial/commands.py
- mercurial/context.py 2 additions, 2 deletionsmercurial/context.py
- mercurial/discovery.py 1 addition, 1 deletionmercurial/discovery.py
- mercurial/localrepo.py 1 addition, 1 deletionmercurial/localrepo.py
- mercurial/revlog.py 2 additions, 2 deletionsmercurial/revlog.py
- tests/test-revlog-ancestry.py 3 additions, 3 deletionstests/test-revlog-ancestry.py
Loading
Please register or sign in to comment