Thread (21 messages) flat view 21 messages, 1 author, 2016-06-15
STALE3722d

[PATCH 04/20] cvsserver update: comment about how we shouldn't remove a user-modified file

From: Matthew Ogilvie <hidden>
Date: 2016-06-15 22:55:00
Subsystem: the rest · Maintainer: Linus Torvalds

Instead of a comment, we should really add test cases and actually fix it.

Signed-off-by: Matthew Ogilvie <redacted>
---
 git-cvsserver.perl | 4 ++++
 1 file changed, 4 insertions(+)
diff --git a/git-cvsserver.perl b/git-cvsserver.perl
index 595865c..cc39b6b 100755
--- a/git-cvsserver.perl
+++ b/git-cvsserver.perl
@@ -1144,6 +1144,10 @@ sub req_update
 
         if ( $meta->{filehash} eq "deleted" )
         {
+            # TODO: If it has been modified in the sandbox, error out
+            #   with the appropriate message, rather than deleting a modified
+            #   file.
+
             my ( $filepart, $dirpart ) = filenamesplit($filename,1);
 
             $log->info("Removing '$filename' from working copy (no longer in the repo)");
-- 
1.7.10.2.484.gcd07cc5
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help