comparison mercurial/statichttprepo.py @ 15922:23921c17299a

phases: mechanism to allow extension to alter initial computation of phase This commit add a whennodata list where extension can register a callback to be called if no phase related data are found in the repository. The goal is to ensure the existing extension that move phase data in 2.1 can compute consistent phase boundary for existing repo.
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Wed, 18 Jan 2012 17:23:54 +0100
parents 1c917bc66ccc
children 236bb604dc39
comparison
equal deleted inserted replaced
15921:92e455f2866c 15922:23921c17299a
84 u = util.url(path.rstrip('/') + "/.hg") 84 u = util.url(path.rstrip('/') + "/.hg")
85 self.path, authinfo = u.authinfo() 85 self.path, authinfo = u.authinfo()
86 86
87 opener = build_opener(ui, authinfo) 87 opener = build_opener(ui, authinfo)
88 self.opener = opener(self.path) 88 self.opener = opener(self.path)
89 self._phasedefaults = []
89 90
90 try: 91 try:
91 requirements = scmutil.readrequires(self.opener, self.supported) 92 requirements = scmutil.readrequires(self.opener, self.supported)
92 except IOError, inst: 93 except IOError, inst:
93 if inst.errno != errno.ENOENT: 94 if inst.errno != errno.ENOENT: