Skip to contentSkip to conversation

svn-fe fixes

PATCH New Ramkumar Ramachandra 1 participant 4 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

cover svn-fe fixes

Hi,

My first patch removes a few function calls that Jonathan forgot to remove while turning off persistence- those functions aren't generated by the obj_pool.h merged into pu (Commit fd94590214). My second patch fixes the IncludePath in the Makefile so that svn-fe.h is able to find the specified header. My third patch is just a trivial patch to add /svn-fe to the .gitignore.

I'm sorry I didn't catch this earlier- I only just noticed that the version merged into pu wasn't exactly the version I was basing my work on, so I grafted out the commits and rebased to find these problems. In the meantime, I'd request everyone to try out svn-fe in pu- I'm soon going to send in more patches that are based on what's already merged.

Thanks.

-- Ram

Ramkumar Ramachandra (3):
vcs-svn: Remove stray calls to removed functions contrib/svn-fe: Fix IncludePath contrib/svn-fe: Add the svn-fe target to .gitignore

 contrib/svn-fe/.gitignore |    1 +
 contrib/svn-fe/Makefile   |    2 +-
 contrib/svn-fe/svn-fe.c   |    2 +-
 vcs-svn/repo_tree.c       |    3 ---
 vcs-svn/string_pool.c     |    1 -
 5 files changed, 3 insertions(+), 6 deletions(-)
#1 lore raw

PATCH 1/3 vcs-svn: Remove stray calls to removed functions

repo_tree.c makes calls to non-existant commit_init, dir_init and dirent_init functions, and string_pool.c makes a call to non-existant string_init function. These functions were previously generated in obj_pool.h before persistence in svn-fe was turned off.

---
 vcs-svn/repo_tree.c   |    3 ---
 vcs-svn/string_pool.c |    1 -
 2 files changed, 0 insertions(+), 4 deletions(-)
vcs-svn/repo_tree.c +0 -3
index c27d077..1ce184d 100644
@@ -308,9 +308,6 @@ static void mark_init(void)
 
 void repo_init() {
 	pool_init();
-	commit_init();
-	dir_init();
-	dirent_init();
 	mark_init();
 	if (commit_pool.size == 0) {
 		/* Create empty tree for commit 0. */
vcs-svn/string_pool.c +0 -1
index bd5a380..616b17e 100644
@@ -93,7 +93,6 @@ void pool_init(void)
 {
 	uint32_t node;
 	uint32_t string = 0;
-	string_init();
 	while (string < string_pool.size) {
 		node = node_alloc(1);
 		node_pointer(node)->offset = string;
Signature · 1 line
1.7.1
#2 lore raw

PATCH 2/3 contrib/svn-fe: Fix IncludePath

In reply to Ramkumar Ramachandra

Include the path "../../vcs-svn" while compiling it in the Makefile and change svn-fe.c to include svndump.h.

---
 contrib/svn-fe/Makefile |    2 +-
 contrib/svn-fe/svn-fe.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
contrib/svn-fe/Makefile +1 -1
index 4cc8d15..360d8da 100644
@@ -38,7 +38,7 @@ svn-fe$X: svn-fe.o $(VCSSVN_LIB) $(GIT_LIB)
 		$(ALL_LDFLAGS) $(LIBS)
 
 svn-fe.o: svn-fe.c ../../vcs-svn/svndump.h
-	$(QUIET_CC)$(CC) -o $*.o -c $(ALL_CFLAGS) $<
+	$(QUIET_CC)$(CC) -I../../vcs-svn -o $*.o -c $(ALL_CFLAGS) $<
 
 svn-fe.html: svn-fe.txt
 	$(QUIET_SUBDIR0)../../Documentation $(QUIET_SUBDIR1) \
contrib/svn-fe/svn-fe.c +1 -1
index 43c4320..e9b9ba4 100644
@@ -4,7 +4,7 @@
  */
 
 #include <stdlib.h>
-#include "vcs-svn/svndump.h"
+#include "svndump.h"
 
 int main(int argc, char **argv)
 {
Signature · 1 line
1.7.1