##// END OF EJS Templates
obsmarker: rename precnode into prednode...
Boris Feld -
r33697:2cb442bc default
parent child Browse files
Show More
@@ -1913,7 +1913,7 b' def showmarker(fm, marker, index=None):'
1913 To be used by debug function."""
1913 To be used by debug function."""
1914 if index is not None:
1914 if index is not None:
1915 fm.write('index', '%i ', index)
1915 fm.write('index', '%i ', index)
1916 fm.write('precnode', '%s ', hex(marker.precnode()))
1916 fm.write('precnode', '%s ', hex(marker.prednode()))
1917 succs = marker.succnodes()
1917 succs = marker.succnodes()
1918 fm.condwrite(succs, 'succnodes', '%s ',
1918 fm.condwrite(succs, 'succnodes', '%s ',
1919 fm.formatlist(map(hex, succs), name='node'))
1919 fm.formatlist(map(hex, succs), name='node'))
@@ -9,6 +9,7 b' 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):
@@ -29,7 +30,13 b' class marker(object):'
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):
@@ -37,7 +44,7 b' class marker(object):'
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):
General Comments 0
You need to be logged in to leave comments. Login now