git/vcs-svn
Jonathan Nieder 1c7bb31616 vcs-svn: Delay read of per-path properties
The mode for each file in an svn-format dump is kept in the properties
section.  The properties section is read as soon as possible to allow
the correct mode to be filled in when registering the file with the
repo_tree lib.

To support nodes with a missing properties section, svn-fe determines
the mode in three stages:

 - The kind (directory or file) of the node is read from the dump and
   used to make an initial estimate (040000 or 100644).
 - Properties are read in and allowed to override this for symlinks
   and executables.
 - If there is no properties section, the mode from the previous
   content of the path is left alone, overriding the above
   considerations.

This is a bit of a mess, and worse, it would get even more complicated
once we start to support property deltas.  If we could only register
the file with a provisional value for mode and then change it later
when properties say so, the procedure would be much simpler.

... oh, right, we can.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2010-11-24 14:51:43 -08:00
..
fast_export.c vcs-svn: Fix some printf format compiler warnings 2010-09-12 10:24:55 -07:00
fast_export.h Infrastructure to write revisions in fast-export format 2010-08-14 19:35:37 -07:00
LICENSE SVN dump parser 2010-08-14 19:35:38 -07:00
line_buffer.c Add stream helper library 2010-08-14 19:35:37 -07:00
line_buffer.h Add stream helper library 2010-08-14 19:35:37 -07:00
line_buffer.txt Add stream helper library 2010-08-14 19:35:37 -07:00
obj_pool.h Add memory pool library 2010-08-14 19:35:37 -07:00
repo_tree.c vcs-svn: Combine repo_replace and repo_modify functions 2010-11-24 14:51:43 -08:00
repo_tree.h vcs-svn: Combine repo_replace and repo_modify functions 2010-11-24 14:51:43 -08:00
string_pool.c Add string-specific memory pool 2010-08-14 19:35:37 -07:00
string_pool.h Add string-specific memory pool 2010-08-14 19:35:37 -07:00
string_pool.txt Add string-specific memory pool 2010-08-14 19:35:37 -07:00
svndump.c vcs-svn: Delay read of per-path properties 2010-11-24 14:51:43 -08:00
svndump.h vcs-svn: Check for errors from open() 2010-11-24 14:51:42 -08:00
trp.h treap: style fix 2010-08-14 19:35:38 -07:00
trp.txt Add treap implementation 2010-08-14 19:35:37 -07:00