restore - Where do deleted files go in SVN? -
i removed files using svn --force delete path/folder copy
. however, space between folder
, copy
made think had delete multiple things, removed original folder.
i hadn't versioned original folder yet, changes gone. luckily, didn't change lot in specific folder, future use if end doing same stupid thing: how revert or restore files have not been committed before? find these files? did not moved trash can.
they deleted, pure , simple. unfortunately, documentation delete
command says this:
files (and directories have not been committed) removed working copy unless
--keep-local
option given.
for proof, have waaaay down in svn source, svn_io_remove_file2 calls apr_file_remove, which:
- if you're on windows invokes deletefile. method deletes file; if programmers wanted send recycle bin, they'd instead have use shfileoperation , pass
fof_allowundo
flag. - if you're on *nix (includes mac os), invokes unlink, following:
... file deleted , space using made available reuse
note: i'd deeper link points in code, web-accessible svn , apr repositories don't allow line-level linking :(
Comments
Post a Comment