filter-repo: fix skipping of blob files

Make sure commits don't reference skipped blob files.

Signed-off-by: Elijah Newren <newren@gmail.com>
This commit is contained in:
Elijah Newren 2009-03-11 17:51:31 -06:00
parent aba66f6d42
commit cb29d84f48

View File

@ -236,9 +236,10 @@ class FastExportFilter(object):
(mode, idnum, path) = \
re.match('M (\d+) :(\d+) (.*)\n$', self.nextline).groups()
idnum = ids.translate( int(idnum)+self.id_offset )
if path.startswith('"'):
path = unquote(path)
filechange = FileChanges('M', path, idnum, mode)
if idnum is not None:
if path.startswith('"'):
path = unquote(path)
filechange = FileChanges('M', path, idnum, mode)
self._advance_nextline()
elif self.nextline.startswith('D '):
path = self.nextline[2:-1]