change: pass verbose to print_atom()
Dependencies
- [2]
5D2IYPL7change: introduce changestore, print deleted lines - [3]
TGT4VSMEchange: decode FILE_ADD - [4]
WH7UFRAZchange: close change files after load - [5]
EHVLRMEFchange: add vertexeq, fix deleted lines duplication - [6]
YDQLW2ZOchange: rework printing of patches - print Edit and Newvertex types - [7]
Q7TKZCJPAdd initial support for reading the offsets from a (fixed) change - [8]
JVU3TTT5all: switch away from typedefing anonymous structs - [9]
55IIUFZGchange: remove debugging line - [10]
WFA5BBRFFix warnings - [11]
LPGHALLKchange: adjust printing of file adds - [12]
XRGUHSC4change: fix some formatting issues - [13]
XTVLIC24change: refactor to print_change() - [14]
7WA2F6RSchange: decode resurrectzombies, addroot, delroot - [15]
33ZXTRXRchange: decode and print file deletions
Change contents
- edit in change.c at line 638
}voidprintedgemap(struct edgemap *m){printf("edgemap {\n edges: [\n");for (size_t i = 0; i < m->edges.len; i++) {struct edge *e = &m->edges.entries[i];printf(" edge { previous = %u, flag = ", e->previous);print_edgeflags(e->flag);printf(", from = position { change = ");hashprint(&e->from.change);printf(", pos = %lu }", e->from.pos);printf(", to = vertex { change = ");hashprint(&e->to.change);printf(", start = %lu, end = %lu }, introducedby = ",e->to.start, e->to.end);hashprint(&e->introducedby);printf(" }\n");}printf(" ]\n}\n"); - replacement in change.c at line 667
print_atom(struct changestore *changes, struct atom *a, uint8_t *contents)print_atom(struct changestore *changes, struct atom *a, uint8_t *contents,int verbose) - replacement in change.c at line 686
/* print_positionlist(&v->downcontext); *//* printf("\n"); */print_positionlist(&v->downcontext);printf("\n"); - edit in change.c at line 694
/* edgemap debugging */ - replacement in change.c at line 695
/* printf("edgemap {\n edges: [\n"); *//* for (i = 0; i < m->edges.len; i++) { *//* struct edge *e = &m->edges.entries[i]; *//* printf(" edge { previous = %u, flag = ", *//* e->previous); *//* print_edgeflags(e->flag); *//* printf(", from = position { change = "); *//* hashprint(&e->from.change); *//* printf(", pos = %lu }", e->from.pos); */if (verbose)printedgemap(m); - edit in change.c at line 698
/* printf(", to = vertex { change = "); *//* hashprint(&e->to.change); *//* printf(", start = %lu, end = %lu }, introducedby = ", *//* e->to.start, e->to.end); *//* hashprint(&e->introducedby); *//* printf(" }\n"); *//* } *//* printf(" ]\n}\n"); */ - replacement in change.c at line 726
struct changestore *changes, struct hashed *hashed, uint8_t *contentsstruct changestore *changes, struct hashed *hashed, uint8_t *contents,int verbose - replacement in change.c at line 771
print_atom(changes, c, contents);print_atom(changes, c, contents, verbose); - replacement in change.c at line 784
print_atom(changes, c, contents);print_atom(changes, c, contents, verbose); - replacement in change.c at line 786
print_atom(changes, replacement, contents);print_atom(changes, replacement, contents, verbose); - replacement in change.c at line 811
print_atom(changes, &f->contents, contents);print_atom(changes, &f->contents, contents, verbose); - replacement in change.c at line 885
print_atom(changes, &r->name, contents);print_atom(changes, &r->name, contents, verbose); - replacement in change.c at line 887
print_atom(changes, &r->inode, contents);print_atom(changes, &r->inode, contents, verbose); - edit in change.c at line 1032
if (verbose)dump_buf("contents", c->contents, off->contents_len); - replacement in change.c at line 1100
print_change(&changestore, &ch->change.hashed, ch->change.contents);print_change(&changestore, &ch->change.hashed, ch->change.contents, verbose);