equal
deleted
inserted
replaced
552 ctx = lrugetctx(lr) |
552 ctx = lrugetctx(lr) |
553 if not any(rp[0] in pctx for pctx in ctx.parents()): |
553 if not any(rp[0] in pctx for pctx in ctx.parents()): |
554 self._warn(WARN_UNKNOWN_COPY_SOURCE % (f, ctx)) |
554 self._warn(WARN_UNKNOWN_COPY_SOURCE % (f, ctx)) |
555 fl2 = repo.file(rp[0]) |
555 fl2 = repo.file(rp[0]) |
556 if not len(fl2): |
556 if not len(fl2): |
557 self._err( |
557 m = _(b"empty or missing copy source revlog %s:%s") |
558 lr, |
558 self._err(lr, m % (rp[0], short(rp[1])), f) |
559 _( |
|
560 b"empty or missing copy source revlog " |
|
561 b"%s:%s" |
|
562 ) |
|
563 % (rp[0], short(rp[1])), |
|
564 f, |
|
565 ) |
|
566 elif rp[1] == self.repo.nullid: |
559 elif rp[1] == self.repo.nullid: |
567 ui.note( |
560 ui.note( |
568 _( |
561 _( |
569 b"warning: %s@%s: copy source" |
562 b"warning: %s@%s: copy source" |
570 b" revision is nullid %s:%s\n" |
563 b" revision is nullid %s:%s\n" |