Ticket Change Details
Not logged in
Overview

Artifact ID: 4ca44ca759f2cad101e69f9a6a427d61acdeccfa
Ticket: db4ce49690ba13eedda7221cf3bebbef29787158
Files with attributes not overwritten
User & Date: anonymous 2010-01-28 23:33:38
Changes

  1. comment changed to:
    If a file added to a repository has any attributes (hidden, read-only, system), it will commit without error, but if the file exists when a check-out occurs it cannot be overwritten.
    
    Fossil displays:
    <pre>
    fossil: unable to open file "C:/Users/Doug/fossil/hidden_file.txt" for writing
    </pre>
    The file cannot be removed from the repository until a full check-out has occurred, so the file has to be manually removed from the file system first.
    
    This happens whether fossil is run as an administrator or not.
    
    Script:
    <pre>
    echo "test data" > hidden_file.txt
    attrib +h hidden_file.txt
    fossil new hidden-file-test.fossil
    fossil open hidden-file-test.fossil
    fossil add hidden_file.txt
    fossil setting clearsign 0
    fossil commit -m "Add hidden file"
    fossil close
    fossil open hidden-file-test.fossil
    fossil rm hidden_file.txt
    fossil commit -m "rm test"
    fossil close
    </pre>
    
  2. foundin changed to: "20100124175507"
  3. private_contact changed to: "37559fb36f80834f47d7028cbceb13084c143a41"
  4. severity changed to: "Important"
  5. status changed to: "Open"
  6. title changed to: "Files with attributes not overwritten"
  7. type changed to: "Code_Defect"