Skip to content
Snippets Groups Projects
  1. Oct 17, 2022
  2. Oct 14, 2022
    • Antoine Lambert's avatar
      loader, cvsclient: Read files line by line to reduce memory consumption · cfe7507a
      Antoine Lambert authored
      Instead of using the readlines method on file objects that retrieve all
      lines of a file and store them in memory, prefer to read files line
      by line by using the lazy generator of lines from file objects.
      
      This significantly reduce loader memory consumption when processing
      a large rlog output stored in a file.
      cfe7507a
  3. Oct 13, 2022
    • Antoine Lambert's avatar
      loader: Raise NotFound for missing CVS module when using pserver or ssh · 965c3de4
      Antoine Lambert authored
      That case was handled when using rsync protocol but not when using pserver
      or ssh protocol.
      
      Closes T4631
      965c3de4
    • Antoine Lambert's avatar
      cvsclient: Handle error in fetch_rlog when path does not exist · 356dfa27
      Antoine Lambert authored
      When attempting to fetch the rlog for a path that does not exist in
      the repository, the CVS server will respond with the following lines:
      
      E cvs rlog: could not read RCS file for <path>
      ok
      
      That error case was not handled in fetch_rlog so ensure it returns None
      when encountering it.
      
      The issue was spotted when the loader attempts to fetch more rlog data from
      Attic directories. The paths of these Attic directories are computed from
      those of the files in the repositories but it exist cases where those
      directories do not exist.
      356dfa27
  4. Sep 19, 2022
  5. Sep 15, 2022
  6. Jul 11, 2022
  7. Jul 08, 2022
  8. Jul 07, 2022
  9. Jul 06, 2022
    • Antoine Lambert's avatar
      Fix loading of CVS repositories with non valid UTF-8 paths · d89f8d13
      Antoine Lambert authored
      Some CVS repositories have paths which are non valid UTF-8 (typically
      ISO-8859-1 ones) but the loader implementation assumed all paths can
      be safely encoded to UTF-8 and was raising UnicodeEncodeError when
      attempting to encode non UTF-8 paths.
      
      That commit modifies the way CVS paths are handled by the loader by
      using their raw bytes representation instead of their UTF-8 decoded
      string representation.
      
      Also rcsparse.rcsfile constructor has been modified to take bytes path
      as argument instead of an unicode one in order to be able to successfully
      open non UTF-8 paths.
      
      Such CVS repositories can now be successfully loaded, either using rsync
      or pserver protocol.
      
      Related to T3980
      d89f8d13
  10. Jun 17, 2022
  11. May 20, 2022
  12. May 11, 2022
  13. May 10, 2022
  14. May 09, 2022
Loading