equal
deleted
inserted
replaced
7 |
7 |
8 from __future__ import absolute_import |
8 from __future__ import absolute_import |
9 |
9 |
10 from . import ( |
10 from . import ( |
11 phases, |
11 phases, |
|
12 util |
12 ) |
13 ) |
13 |
14 |
14 class marker(object): |
15 class marker(object): |
15 """Wrap obsolete marker raw data""" |
16 """Wrap obsolete marker raw data""" |
16 |
17 |
27 if type(other) != type(self): |
28 if type(other) != type(self): |
28 return False |
29 return False |
29 return self._data == other._data |
30 return self._data == other._data |
30 |
31 |
31 def precnode(self): |
32 def precnode(self): |
32 """Precursor changeset node identifier""" |
33 msg = ("'marker.precnode' is deprecated, " |
|
34 "use 'marker.precnode'") |
|
35 util.nouideprecwarn(msg, '4.4') |
|
36 return self.prednode() |
|
37 |
|
38 def prednode(self): |
|
39 """Predecessor changeset node identifier""" |
33 return self._data[0] |
40 return self._data[0] |
34 |
41 |
35 def succnodes(self): |
42 def succnodes(self): |
36 """List of successor changesets node identifiers""" |
43 """List of successor changesets node identifiers""" |
37 return self._data[1] |
44 return self._data[1] |
38 |
45 |
39 def parentnodes(self): |
46 def parentnodes(self): |
40 """Parents of the precursors (None if not recorded)""" |
47 """Parents of the predecessors (None if not recorded)""" |
41 return self._data[5] |
48 return self._data[5] |
42 |
49 |
43 def metadata(self): |
50 def metadata(self): |
44 """Decoded metadata dictionary""" |
51 """Decoded metadata dictionary""" |
45 return dict(self._data[3]) |
52 return dict(self._data[3]) |