diff --git a/swh/loader/cvs/cvsclient.py b/swh/loader/cvs/cvsclient.py --- a/swh/loader/cvs/cvsclient.py +++ b/swh/loader/cvs/cvsclient.py @@ -372,15 +372,17 @@ raise CVSProtocolError("Bad CVS protocol response: %s" % response) have_bytecount = True continue - elif response == b"M \n": - continue - elif response == b"MT +updated\n": - continue - elif response == b"MT -updated\n": + elif response in (b"M \n", b"MT +updated\n", b"MT -updated\n"): continue elif response[0:9] == b"MT fname ": continue - elif response[0:8] == b"Created ": + elif response.split(b" ")[0] in ( + b"Created", + b"Checked-in", + b"Update-existing", + b"Updated", + b"Removed", + ): skip_line = True continue elif response[0:1] == b"/" and _re_kb_opt.search(response):