Show More
@@ -40,10 +40,9 b' class cmdstate(object):' | |||||
40 | disk. |
|
40 | disk. | |
41 | """ |
|
41 | """ | |
42 |
|
42 | |||
43 |
def __init__(self, repo, fname |
|
43 | def __init__(self, repo, fname): | |
44 | """ repo is the repo object |
|
44 | """ repo is the repo object | |
45 | fname is the file name in which data should be stored in .hg directory |
|
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 | self._repo = repo |
|
47 | self._repo = repo | |
49 | self.fname = fname |
|
48 | self.fname = fname | |
@@ -63,7 +62,7 b' class cmdstate(object):' | |||||
63 |
|
62 | |||
64 | with self._repo.vfs(self.fname, 'wb', atomictemp=True) as fp: |
|
63 | with self._repo.vfs(self.fname, 'wb', atomictemp=True) as fp: | |
65 | fp.write('%d\n' % version) |
|
64 | fp.write('%d\n' % version) | |
66 |
cbor.dump( |
|
65 | cbor.dump(data, fp, canonical=True) | |
67 |
|
66 | |||
68 | def _read(self): |
|
67 | def _read(self): | |
69 | """reads the state file and returns a dictionary which contain |
|
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