equal
deleted
inserted
replaced
454 # check renames |
454 # check renames |
455 try: |
455 try: |
456 if rp: |
456 if rp: |
457 if lr is not None and ui.verbose: |
457 if lr is not None and ui.verbose: |
458 ctx = lrugetctx(lr) |
458 ctx = lrugetctx(lr) |
459 found = False |
459 if not any(rp[0] in pctx for pctx in ctx.parents()): |
460 for pctx in ctx.parents(): |
|
461 if rp[0] in pctx: |
|
462 found = True |
|
463 break |
|
464 if not found: |
|
465 self.warn(_("warning: copy source of '%s' not" |
460 self.warn(_("warning: copy source of '%s' not" |
466 " in parents of %s") % (f, ctx)) |
461 " in parents of %s") % (f, ctx)) |
467 fl2 = repo.file(rp[0]) |
462 fl2 = repo.file(rp[0]) |
468 if not len(fl2): |
463 if not len(fl2): |
469 self.err(lr, _("empty or missing copy source " |
464 self.err(lr, _("empty or missing copy source " |