Mercurial > hg-stable
changeset 20752:6744f4621434
revset: add a default argument for baseset.__init__
We are now able to create empty baseset using `baseset()` as we are able to
create empty list with `list()`.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Fri, 14 Mar 2014 11:41:26 -0700 |
parents | 91a3d50f0e3a |
children | 13c38b1aeebe |
files | mercurial/revset.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revset.py Thu Mar 13 11:36:45 2014 -0700 +++ b/mercurial/revset.py Fri Mar 14 11:41:26 2014 -0700 @@ -2174,7 +2174,7 @@ Every method in this class should be implemented by any smartset class. """ - def __init__(self, data): + def __init__(self, data=()): super(baseset, self).__init__(data) self._set = None