mzs: adjust relative paths to match ipreg repo
[ipreg/sccs2rcs2cvs2git.git] / cvs-fast-export-1.26.patch
1 --- Makefile~ 2014-11-06 03:19:14.000000000 +0000
2 +++ Makefile 2014-11-21 15:55:57.000000000 +0000
3 @@ -50,8 +50,8 @@
4
5 # First line works for GNU C.
6 # Replace with the next if your compiler doesn't support C99 restrict qualifier
7 -CPPFLAGS+=-Drestrict=__restrict__
8 -#CPPFLAGS+=-Drestrict=""
9 +#CPPFLAGS+=-Drestrict=__restrict__
10 +CPPFLAGS+=-Drestrict=""
11
12 # To enable profiling, uncomment the following line
13 # Note: the profiler gets confused if you don't also turn off -O flags.
14 --- gram.c~ 2014-11-05 22:25:57.000000000 +0000
15 +++ gram.c 2014-11-21 16:57:46.000000000 +0000
16 @@ -1592,10 +1592,7 @@
17 if (!strcmp((yyvsp[-1].s), "Initial revision\n")) {
18 /* description is available because the
19 * desc production has already been reduced */
20 - if (strlen(cvsfile->description) == 0)
21 - (yyval.patch)->log = atom("*** empty log message ***\n");
22 - else
23 - (yyval.patch)->log = atom(cvsfile->description);
24 + (yyval.patch)->log = atom(cvsfile->description);
25 } else
26 (yyval.patch)->log = atom((yyvsp[-1].s));
27 (yyval.patch)->text = (yyvsp[0].text);
28 --- revcvs.c~ 2014-11-05 22:25:31.000000000 +0000
29 +++ revcvs.c 2014-11-24 14:06:26.000000000 +0000
30 @@ -33,7 +33,7 @@
31 {
32 size_t rlen = strlen(rectified);
33
34 - if (rlen >= 10 && strcmp(rectified + rlen - 10, ".cvsignore") == 0) {
35 + if (0 && rlen >= 10 && strcmp(rectified + rlen - 10, ".cvsignore") == 0) {
36 char path[PATH_MAX];
37 strncpy(path, rectified, PATH_MAX-1);
38 path[rlen - 9] = 'g';
39 --- export.c~ 2014-11-05 11:38:35.000000000 +0000
40 +++ export.c 2014-11-24 14:08:20.000000000 +0000
41 @@ -149,7 +149,7 @@
42
43 export_stats.snapsize += len;
44
45 - if (strcmp(node->commit->master->name, ".cvsignore") == 0) {
46 + if (0 && strcmp(node->commit->master->name, ".cvsignore") == 0) {
47 extralen = sizeof(CVS_IGNORES) - 1;
48 }
49
50 @@ -540,7 +540,7 @@
51 if (report)
52 printf("mark :%d\n", mark);
53 if (report) {
54 - static bool need_ignores = true;
55 + static bool need_ignores = false;
56 const char *ts;
57 ct = display_date(commit, mark, opts->force_dates);
58 ts = utc_offset_timestamp(&ct, timezone);
59 --- generate.c~ 2014-11-05 22:45:22.000000000 +0000
60 +++ generate.c 2014-11-26 13:40:14.000000000 +0000
61 @@ -958,6 +958,7 @@
62 {
63 editbuffer_t *eb = &gen->editbuffer;
64 node_t *node = generate_setup(gen, opts->id_token_expand);
65 + int count = 0;
66
67 if (node == NULL)
68 return;
69 @@ -966,6 +967,8 @@
70 eb->current->node_text = load_text(eb, &node->patch->text);
71 process_delta(eb, node, ENTER);
72 for (;;) {
73 + if (++count % 100 == 0)
74 + write(2, ".", 1);
75 /*
76 * Revisions are written backwards in time starting from the tip,
77 * so if we're incremental-dumping we can just stop on the