Skip to content

Commit

Permalink
vcs-svn: use higher mark numbers for blobs
Browse files Browse the repository at this point in the history
Prepare to use mark :5 for the commit corresponding to r5 (and so on).

1 billion seems sufficiently high for blob marks to avoid conflicting
with rev marks, while still leaving room for 3 billion blobs.  Such
high mark numbers cause trouble with ancient fast-import versions, but
this topic cannot support git fast-import versions before 1.7.4 (which
introduces the cat-blob command) anyway.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
  • Loading branch information
Jonathan Nieder committed Mar 7, 2011
1 parent 41529bb commit d38f844
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vcs-svn/repo_tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ void repo_commit(uint32_t revision, uint32_t author, char *log, uint32_t uuid,
static void mark_init(void)
{
uint32_t i;
mark = 0;
mark = 1024 * 1024 * 1024;
for (i = 0; i < dent_pool.size; i++)
if (!repo_dirent_is_dir(dent_pointer(i)) &&
dent_pointer(i)->content_offset > mark)
Expand Down

0 comments on commit d38f844

Please sign in to comment.