mercurial/phases.py
changeset 28174 f16b84b1e40e
parent 27874 4ff0e2347ae6
child 29303 3a2357c31d2a
equal deleted inserted replaced
28173:1ff28873830e 28174:f16b84b1e40e
   433     for nhex, phase in roots.iteritems():
   433     for nhex, phase in roots.iteritems():
   434         if nhex == 'publishing': # ignore data related to publish option
   434         if nhex == 'publishing': # ignore data related to publish option
   435             continue
   435             continue
   436         node = bin(nhex)
   436         node = bin(nhex)
   437         phase = int(phase)
   437         phase = int(phase)
   438         if phase == 0:
   438         if phase == public:
   439             if node != nullid:
   439             if node != nullid:
   440                 repo.ui.warn(_('ignoring inconsistent public root'
   440                 repo.ui.warn(_('ignoring inconsistent public root'
   441                                ' from remote: %s\n') % nhex)
   441                                ' from remote: %s\n') % nhex)
   442         elif phase == 1:
   442         elif phase == draft:
   443             if node in nodemap:
   443             if node in nodemap:
   444                 draftroots.append(node)
   444                 draftroots.append(node)
   445         else:
   445         else:
   446             repo.ui.warn(_('ignoring unexpected root from remote: %i %s\n')
   446             repo.ui.warn(_('ignoring unexpected root from remote: %i %s\n')
   447                          % (phase, nhex))
   447                          % (phase, nhex))