comparison mercurial/changegroup.py @ 37339:5859800edfc5

changegroup: remove "revlog" from error message The previous message leaked an implementation detail. Differential Revision: https://phab.mercurial-scm.org/D3041
author Gregory Szorc <gregory.szorc@gmail.com>
date Tue, 03 Apr 2018 10:15:21 -0700
parents a54113fcc8c9
children aac4be30e250
comparison
equal deleted inserted replaced
37338:cbc4425e81b5 37339:5859800edfc5
756 # for progress output 756 # for progress output
757 msgfiles = _('files') 757 msgfiles = _('files')
758 for i, fname in enumerate(sorted(changedfiles)): 758 for i, fname in enumerate(sorted(changedfiles)):
759 filerevlog = repo.file(fname) 759 filerevlog = repo.file(fname)
760 if not filerevlog: 760 if not filerevlog:
761 raise error.Abort(_("empty or missing revlog for %s") % fname) 761 raise error.Abort(_("empty or missing file data for %s") %
762 fname)
762 763
763 linkrevnodes = linknodes(filerevlog, fname) 764 linkrevnodes = linknodes(filerevlog, fname)
764 # Lookup for filenodes, we collected the linkrev nodes above in the 765 # Lookup for filenodes, we collected the linkrev nodes above in the
765 # fastpath case and with lookupmf in the slowpath case. 766 # fastpath case and with lookupmf in the slowpath case.
766 def lookupfilelog(x): 767 def lookupfilelog(x):