Menu

#28 'svn checkout --force' option and E code not explained

en-1.6
Fixed
nobody
None
Medium
Defect
2011-07-12
2009-01-19
Anonymous
No

Originally created by: mar...@v.loewis.de
Originally owned by: cmpilato

Since Subversion 1.5, co has a --force option that deals with pre-existing
files. Subversion's processing is somewhat counter-intuitive at first
glance, hence it is desirable to elaborate in the book.

IIUC, without --force, co will give up if WC files conflict with
preexisting files. With --force, it does *not* overwrite the existing files
(which would be the intuitive thing to expect). Instead, it reports the 'E'
status, and leaves the original file as-is. As a consequence, the original
file appears as a modification to the WC. I believe (but don't know for
sure) that the motivation for this behavior is that it is then the choice
of the user to revert all changes right away (thus overwriting the original
files), or to edit/commit the original files (thus having them take
precedence over the repository files) - the co command itself makes no choice.

Discussion

  • Anonymous

    Anonymous - 2009-01-28

    Originally posted by: cmpilato

    (No comment was entered for this change.)

    Labels: -Type-Enhancement Type-Defect Milestone-en-1.6

     
  • Anonymous

    Anonymous - 2011-06-28

    Originally posted by: cmpilato

    (No comment was entered for this change.)

    Owner: cmpilato

     
  • Anonymous

    Anonymous - 2011-06-30

    Originally posted by: cmpilato

    (No comment was entered for this change.)

    Summary: 'svn checkout --force' option and E code not explained

     
  • Anonymous

    Anonymous - 2011-07-12

    Originally posted by: cmpilato

    FIXED:
       Sending        book/ch09-reference.xml
       Transmitting file data .
       Committed [r3906].

    Status: Fixed

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.