comparison hgext3rd/topic/discovery.py @ 2675:304232cc14b6

topic: some document for an obscure function
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 28 Jun 2017 17:38:04 +0200
parents 9585fac76d2d
children 10dedac0d82e
comparison
equal deleted inserted replaced
2674:9585fac76d2d 2675:304232cc14b6
97 continue 97 continue
98 data[b[0]] = len(b[1]) 98 data[b[0]] = len(b[1])
99 return data 99 return data
100 100
101 def handlecheckheads(orig, op, inpart): 101 def handlecheckheads(orig, op, inpart):
102 """This is used to check for new heads when publishing changeset"""
102 orig(op, inpart) 103 orig(op, inpart)
103 if op.repo.publishing(): 104 if op.repo.publishing():
104 return 105 return
105 tr = op.gettransaction() 106 tr = op.gettransaction()
106 if tr.hookargs['source'] not in ('push', 'serve'): # not a push 107 if tr.hookargs['source'] not in ('push', 'serve'): # not a push