##// END OF EJS Templates
state: removing remaining instances of opts class variable...
Pulkit Goyal -
r38162:6f67bfe4 default
parent child Browse files
Show More
@@ -40,10 +40,9 b' class cmdstate(object):'
40 40 disk.
41 41 """
42 42
43 def __init__(self, repo, fname, opts=None):
43 def __init__(self, repo, fname):
44 44 """ repo is the repo object
45 45 fname is the file name in which data should be stored in .hg directory
46 opts is a dictionary of data of the statefile
47 46 """
48 47 self._repo = repo
49 48 self.fname = fname
@@ -63,7 +62,7 b' class cmdstate(object):'
63 62
64 63 with self._repo.vfs(self.fname, 'wb', atomictemp=True) as fp:
65 64 fp.write('%d\n' % version)
66 cbor.dump(self.opts, fp, canonical=True)
65 cbor.dump(data, fp, canonical=True)
67 66
68 67 def _read(self):
69 68 """reads the state file and returns a dictionary which contain
General Comments 0
You need to be logged in to leave comments. Login now