Login | Register
My pages Projects Community openCollabNet

Discussions > commits > svn commit: r11 - in trunk: . fsvs/src

fsvs
Discussion topic

Back to topic list

svn commit: r11 - in trunk: . fsvs/src

Author pmarek
Full name P.Marek
Date 2005-10-04 22:59:28 PDT
Message Author: pmarek
Date: Tue Oct 4 22:59:28 2005
New Revision: 11

Modified:
   trunk/ (props changed)
   trunk/fsvs/src/commit.c
Log:

Bugfix: entire directories would seem to be replaced; were stored with
wrong (struct stat64)-data.



Modified: trunk/fsvs/src/commit.c
Url: http://fsvs.tigris.o​rg/source/browse/fsv​s/trunk/fsvs/src/com​mit.c?view=diff&​rev=11&p1=trunk/​fsvs/src/commit.c​&r1=10&p2=trunk​/fsvs/src/commit.c​&r2=11
====================​====================​====================​==================
--- trunk/fsvs/src/commit.c (original)
+++ trunk/fsvs/src/commit.c Tue Oct 4 22:59:28 2005
@@ -361,10 +361,12 @@
             STOPIF_SVNERR( editor->close_file, (baton, NULL, subpool) );
         }
 
- /* update data structures */
- /* could use _1_ space for full name - don't create it
- * so often */
-
+ /* Update data structures.
+ * This must be done here, as updating a directory will change
+ * it's mtime, link count, ...
+ * In case a directory had many changed files it's possible that
+ * the cache is no longer valid. */
+ STOPIF( ops__build_path(&filename, sts), NULL);
         STOPIF_CODE_ERR( lstat64(filename, &(sts->st)) == -1,
                 errno, "lstat(%s)", filename);
     }

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

svn commit: r11 - in trunk: . fsvs/src pmarek P.Marek 2005-10-04 22:59:28 PDT
Messages per page: