hgext3rd/evolve/state.py
changeset 4847 0fecff9ac36d
parent 4846 38ce7fe4d3f2
child 4848 535ab2609e45
equal deleted inserted replaced
4846:38ce7fe4d3f2 4847:0fecff9ac36d
    35 
    35 
    36     The class object can write all the data to a file in .hg/ directory and also
    36     The class object can write all the data to a file in .hg/ directory and also
    37     can populate the object data reading that file
    37     can populate the object data reading that file
    38     """
    38     """
    39 
    39 
    40     def __init__(self, repo, path=b'evolvestate', opts={}):
    40     def __init__(self, repo, path=b'evolvestate', opts=None):
    41         self._repo = repo
    41         self._repo = repo
    42         self.path = path
    42         self.path = path
       
    43         if opts is None:
       
    44             opts = {}
    43         self.opts = opts
    45         self.opts = opts
    44 
    46 
    45     def __nonzero__(self):
    47     def __nonzero__(self):
    46         return self.exists()
    48         return self.exists()
    47 
    49