comparison mercurial/verify.py @ 6889:c0bd7d8b69ef

verify: only warn on copy nullid
author Matt Mackall <mpm@selenic.com>
date Wed, 13 Aug 2008 20:18:40 -0500
parents f67d1468ac50
children dab95717058d
comparison
equal deleted inserted replaced
6888:7c36a4fb05a3 6889:c0bd7d8b69ef
190 fl2 = repo.file(rp[0]) 190 fl2 = repo.file(rp[0])
191 if not len(fl2): 191 if not len(fl2):
192 err(lr, _("empty or missing copy source revlog %s:%s") 192 err(lr, _("empty or missing copy source revlog %s:%s")
193 % (rp[0], short(rp[1])), f) 193 % (rp[0], short(rp[1])), f)
194 elif rp[1] == nullid: 194 elif rp[1] == nullid:
195 err(lr, _("copy source revision is nullid %s:%s") 195 warn(lr, _("copy source revision is nullid %s:%s")
196 % (rp[0], short(rp[1])), f) 196 % (rp[0], short(rp[1])), f)
197 else: 197 else:
198 rev = fl2.rev(rp[1]) 198 rev = fl2.rev(rp[1])
199 except Exception, inst: 199 except Exception, inst:
200 exc(lr, _("checking rename of %s") % short(n), inst, f) 200 exc(lr, _("checking rename of %s") % short(n), inst, f)