##// 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 1913 To be used by debug function."""
1914 1914 if index is not None:
1915 1915 fm.write('index', '%i ', index)
1916 fm.write('precnode', '%s ', hex(marker.precnode()))
1916 fm.write('precnode', '%s ', hex(marker.prednode()))
1917 1917 succs = marker.succnodes()
1918 1918 fm.condwrite(succs, 'succnodes', '%s ',
1919 1919 fm.formatlist(map(hex, succs), name='node'))
@@ -9,6 +9,7 b' from __future__ import absolute_import'
9 9
10 10 from . import (
11 11 phases,
12 util
12 13 )
13 14
14 15 class marker(object):
@@ -29,7 +30,13 b' class marker(object):'
29 30 return self._data == other._data
30 31
31 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 40 return self._data[0]
34 41
35 42 def succnodes(self):
@@ -37,7 +44,7 b' class marker(object):'
37 44 return self._data[1]
38 45
39 46 def parentnodes(self):
40 """Parents of the precursors (None if not recorded)"""
47 """Parents of the predecessors (None if not recorded)"""
41 48 return self._data[5]
42 49
43 50 def metadata(self):
General Comments 0
You need to be logged in to leave comments. Login now