comparison mercurial/verify.py @ 8993:46441934c585

verify: demote warning about nullid in copy to note
author Matt Mackall <mpm@selenic.com>
date Wed, 01 Jul 2009 00:41:14 -0500
parents afb3e504b558
children 98a5652bfed9
comparison
equal deleted inserted replaced
8992:ff7d899a7a71 8993:46441934c585
227 fl2 = repo.file(rp[0]) 227 fl2 = repo.file(rp[0])
228 if not len(fl2): 228 if not len(fl2):
229 err(lr, _("empty or missing copy source revlog %s:%s") 229 err(lr, _("empty or missing copy source revlog %s:%s")
230 % (rp[0], short(rp[1])), f) 230 % (rp[0], short(rp[1])), f)
231 elif rp[1] == nullid: 231 elif rp[1] == nullid:
232 warn(_("warning: %s@%s: copy source revision is nullid %s:%s") 232 ui.note(_("warning: %s@%s: copy source"
233 " revision is nullid %s:%s\n")
233 % (f, lr, rp[0], short(rp[1]))) 234 % (f, lr, rp[0], short(rp[1])))
234 else: 235 else:
235 fl2.rev(rp[1]) 236 fl2.rev(rp[1])
236 except Exception, inst: 237 except Exception, inst:
237 exc(lr, _("checking rename of %s") % short(n), inst, f) 238 exc(lr, _("checking rename of %s") % short(n), inst, f)