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

Cannot copy -rBASE while in WC

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • all
    • 1.5.0
    • unknown

    Description

      Subversion 0.34.0 on Win2K SP3.
      
      I was trying to copy a file which I wanted to modify.  The file was modified in
      the WC.  Please note that I did not want to revert, I really wanted a new copy
      of the file, under a different name.
      
      If instead of BASE I use HEAD, everything works fine.
      
      Reproduction recipe:
      
      svnadmin create repos
      svn checkout file:///repos wc
      cd wc
      echo a >file.txt
      svn add file.txt
      svn commit --message "Adding file"
      echo b >file.txt
      svn copy -rBASE file.txt file1.txt
      
      
      Result of recipe:
      
      E:\>svn --version
      svn, version 0.34.0 (r7859)
         compiled Dec  4 2003, 08:08:28
      ...
      
      E:\>svnadmin create repos
      
      E:\>svn checkout file:///repos wc
      Checked out revision 0.
      
      E:\>cd wc
      
      E:\wc>echo a  1>file.txt
      
      E:\wc>svn add file.txt
      A         file.txt
      
      E:\wc>svn commit --message "Adding file"
      Adding         file.txt
      Transmitting file data .
      Committed revision 1.
      
      E:\wc>echo b  1>file.txt
      
      E:\wc>svn copy -rBASE file.txt file1.txt
      svn: A path under version control is needed for this operation
      

      http://www.contactor.se/~dast/svnusers/archive-2003-12/0406.shtml

      Original issue reported by fbos

      Attachments

        1. 1_copy.patch
          5 kB
          Subversion Importer

        Activity

          People

            Unassigned Unassigned
            subversion-importer Subversion Importer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: