comparison hgext/obsolete.py @ 308:23ef1c71d164

obsolete: detect late comer during push
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Mon, 25 Jun 2012 15:18:47 +0200
parents 9ac56d36d6ff
children 2d0dc5c18489
comparison
equal deleted inserted replaced
307:9ac56d36d6ff 308:23ef1c71d164
465 if ctx.unstable(): 465 if ctx.unstable():
466 raise util.Abort(_("Trying to push unstable changeset: %s!") % ctx, 466 raise util.Abort(_("Trying to push unstable changeset: %s!") % ctx,
467 hint=hint) 467 hint=hint)
468 if ctx.obsolete(): 468 if ctx.obsolete():
469 raise util.Abort(_("Trying to push obsolete changeset: %s!") % ctx, 469 raise util.Abort(_("Trying to push obsolete changeset: %s!") % ctx,
470 hint=hint)
471 if ctx.latecomer():
472 raise util.Abort(_("Trying to push latecomer changeset: %s!") % ctx,
470 hint=hint) 473 hint=hint)
471 ### patch remote branch map 474 ### patch remote branch map
472 # do not read it this burn eyes 475 # do not read it this burn eyes
473 try: 476 try:
474 if 'oldbranchmap' not in vars(remote): 477 if 'oldbranchmap' not in vars(remote):