comparison hgext3rd/topic/__init__.py @ 4942:acc7e27fa5c6

topic: drop compat.getmarkers() and use obsutil.getmarkers() directly The function in question was moved from obsolete to obsutil in a14e2e7f7d1f (hg 4.3). See also 6aff4bb3970d for hgext3rd/evolve.
author Anton Shestakov <av6@dwimlabs.net>
date Fri, 15 Nov 2019 11:37:34 +0700
parents a7c01a2a3974
children de0151ba3e46
comparison
equal deleted inserted replaced
4941:c6fb901b7bc8 4942:acc7e27fa5c6
133 lock as lockmod, 133 lock as lockmod,
134 merge, 134 merge,
135 namespaces, 135 namespaces,
136 node, 136 node,
137 obsolete, 137 obsolete,
138 obsutil,
138 patch, 139 patch,
139 phases, 140 phases,
140 pycompat, 141 pycompat,
141 registrar, 142 registrar,
142 scmutil, 143 scmutil,
1115 # latesthead = revs 1116 # latesthead = revs
1116 maxtime = rt 1117 maxtime = rt
1117 user = repo[revs].user() 1118 user = repo[revs].user()
1118 # looking on the markers also to get more information and accurate 1119 # looking on the markers also to get more information and accurate
1119 # last touch time. 1120 # last touch time.
1120 obsmarkers = compat.getmarkers(repo, [repo[revs].node()]) 1121 obsmarkers = obsutil.getmarkers(repo, [repo[revs].node()])
1121 for marker in obsmarkers: 1122 for marker in obsmarkers:
1122 rt = marker.date() 1123 rt = marker.date()
1123 if rt[0] > maxtime[0]: 1124 if rt[0] > maxtime[0]:
1124 user = marker.metadata().get(b'user', user) 1125 user = marker.metadata().get(b'user', user)
1125 maxtime = rt 1126 maxtime = rt