Uploaded image for project: 'Subversion'
  1. Subversion
  2. SVN-1360

cvs2svn on Windows (compatibility fixes)

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: all
    • Fix Version/s: cvs2svn-1.0
    • Component/s: tools
    • Labels:
      None
    • Environment:

      Windows 98

      Description

      Russell Yanofsy's patch is here:
      
         http://subversion.tigris.org/servlets/ReadMsg?list=dev&msgNo=39020
      
      His log message says it all:
      
      * tools/cvs2svn/cvs2svn.py
      
        (relative_name): Changed this helper function to expect
        os.sep in the file path passed to it instead of forward
        slashes.  Also added an assertion to detect incorrect usage.
      
        (add_or_change_path): got rid of the buffer size parameter
        to the os.popen() call which causes a strange error on
        windows: "ValueError: popen() arg 3 must be -1"
      
        (pass3): Changed to sort the file listing in memory instead
        with the "sort" command on Windows. Original behavior is
        preserved on other platforms.
      
      * tools/cvs2svn/run-tests.py
      
        (repos_to_url): Added missing slash detection.  Needed because
        absolute paths on windows begin with a drive letter instead of
        a slash.
      
        (svn_strptime): new function to take the place of time.strptime,
        which doesn't exist on windows
      
        (Log.__init__): replaced time.strptime() call with
        svn_strptime() call.
      

        Attachments

        1. 1_cvs2svn5.diff
          4 kB
          Max Oliver Bowsher

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              kfogel Karl Fogel

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment