Skip to content
Snippets Groups Projects

cvsclient: handle additional responses sent by server

While checking out files the server sends messages to the CVS client which provide information about the state of file paths.

Our custom CVS client implementation needs to recognize a few additional responses the server may send while checking out a different version of a file which was already checked earlier. Otherwise our client will error out. We can simply ignore the messages (and its 2 paths arguments separated by \n) because we do not manage an actual CVS working copy.

Found while testing ingestion of the GNU dino repository at cvs.savannah.gnu.org/sources/dino


Migrated from D6559 (view on Phabricator)

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Build is green

    Patch application report for D6559 (id=23833)

    Rebasing onto 7f761b85...

    Current branch diff-target is up to date.
    Changes applied before test
    commit 7eaef259b073ec0ee0e6d70ae0f7a36cc614b143
    Author: Stefan Sperling <stsp@stsp.name>
    Date:   Wed Oct 27 12:07:32 2021 +0200
    
        cvsclient: handle additional responses sent by server
        
        While checking out files the server sends messages to the CVS
        client which provide information about the state of file paths.
        
        Our custom CVS client implementation needs to recognize a few
        additional responses the server may send while checking out a
        different version of a file which was already checked earlier.
        Otherwise our client will error out. We can simply ignore the
        messages (and its 2 paths arguments separated by \n) because
        we do not manage an actual CVS working copy.
        
        Found while testing ingestion of the GNU dino repository at
        cvs.savannah.gnu.org/sources/dino

    See https://jenkins.softwareheritage.org/job/DLDCVS/job/tests-on-diff/34/ for more details.

  • Looks good. Just a couple suggestions below to simplify the code

  • lgtm

    I do prefer with val's suggested improvments.

  • Merge request was accepted

  • Antoine R. Dumont approved this merge request

    approved this merge request

    • cvsclient: handle additional responses sent by server
    • apply style tweaks suggested by vlorentz and reformatted by black
  • Merge request was merged

  • Build is green

    Patch application report for D6559 (id=23849)

    Rebasing onto d3b3344b...

    Current branch diff-target is up to date.
    Changes applied before test
    commit 6ff0b4473c2bdf2feaee0d4df9b03a6787cd23e1
    Author: Stefan Sperling <stsp@stsp.name>
    Date:   Wed Oct 27 15:50:03 2021 +0200
    
        apply style tweaks suggested by vlorentz and reformatted by black
    
    commit 3a2f06b3d5fb45ceab1a8a4721a0b7102e633d24
    Author: Stefan Sperling <stsp@stsp.name>
    Date:   Wed Oct 27 12:07:32 2021 +0200
    
        cvsclient: handle additional responses sent by server
        
        While checking out files the server sends messages to the CVS
        client which provide information about the state of file paths.
        
        Our custom CVS client implementation needs to recognize a few
        additional responses the server may send while checking out a
        different version of a file which was already checked earlier.
        Otherwise our client will error out. We can simply ignore the
        messages (and its 2 paths arguments separated by \n) because
        we do not manage an actual CVS working copy.
        
        Found while testing ingestion of the GNU dino repository at
        cvs.savannah.gnu.org/sources/dino

    See https://jenkins.softwareheritage.org/job/DLDCVS/job/tests-on-diff/38/ for more details.

Please register or sign in to reply
Loading