comparison mercurial/phases.py @ 15953:52dc2b33d0be stable

phase: fix warning text from invalid remote phase add missing end of line and substitution.
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Fri, 20 Jan 2012 19:18:09 +0100
parents 536856769512
children b345f851d056
comparison
equal deleted inserted replaced
15952:ec8a9e06cf05 15953:52dc2b33d0be
274 continue 274 continue
275 node = bin(nhex) 275 node = bin(nhex)
276 phase = int(phase) 276 phase = int(phase)
277 if phase == 0: 277 if phase == 0:
278 if node != nullid: 278 if node != nullid:
279 msg = _('ignoring inconsistent public root from remote: %s') 279 repo.ui.warn(_('ignoring inconsistent public root'
280 repo.ui.warn(msg, nhex) 280 ' from remote: %s\n') % nhex)
281 elif phase == 1: 281 elif phase == 1:
282 if node in nodemap: 282 if node in nodemap:
283 draftroots.append(node) 283 draftroots.append(node)
284 else: 284 else:
285 msg = _('ignoring unexpected root from remote: %i %s') 285 repo.ui.warn(_('ignoring unexpected root from remote: %i %s\n')
286 repo.ui.warn(msg, phase, nhex) 286 % (phase, nhex))
287 # compute heads 287 # compute heads
288 revset = repo.set('heads((%ln + parents(%ln)) - (%ln::%ln))', 288 revset = repo.set('heads((%ln + parents(%ln)) - (%ln::%ln))',
289 subset, draftroots, draftroots, subset) 289 subset, draftroots, draftroots, subset)
290 publicheads = [c.node() for c in revset] 290 publicheads = [c.node() for c in revset]
291 return publicheads, draftroots 291 return publicheads, draftroots