Skip to content

Commit 3f3e676

Browse files
jrngitster
authored andcommitted
vcs-svn: Make source easier to read on small screens
Remove some newlines from handle_node() that are not needed for clarity. Signed-off-by: Jonathan Nieder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent c7dbf35 commit 3f3e676

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

vcs-svn/svndump.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -156,31 +156,25 @@ static void handle_node(void)
156156

157157
if (node_ctx.text_delta || node_ctx.prop_delta)
158158
die("text and property deltas not supported");
159-
160159
if (node_ctx.textLength != LENGTH_UNKNOWN)
161160
mark = next_blob_mark();
162-
163161
if (node_ctx.action == NODEACT_DELETE) {
164162
if (mark || have_props || node_ctx.srcRev)
165163
die("invalid dump: deletion node has "
166164
"copyfrom info, text, or properties");
167165
return repo_delete(node_ctx.dst);
168166
}
169-
170167
if (node_ctx.action == NODEACT_REPLACE) {
171168
repo_delete(node_ctx.dst);
172169
node_ctx.action = NODEACT_ADD;
173170
}
174-
175171
if (node_ctx.srcRev) {
176172
repo_copy(node_ctx.srcRev, node_ctx.src, node_ctx.dst);
177173
if (node_ctx.action == NODEACT_ADD)
178174
node_ctx.action = NODEACT_CHANGE;
179175
}
180-
181176
if (mark && type == REPO_MODE_DIR)
182177
die("invalid dump: directories cannot have text attached");
183-
184178
if (node_ctx.action == NODEACT_CHANGE) {
185179
uint32_t mode = repo_modify_path(node_ctx.dst, 0, mark);
186180
if (!mode)
@@ -197,7 +191,6 @@ static void handle_node(void)
197191
} else {
198192
die("invalid dump: Node-path block lacks Node-action");
199193
}
200-
201194
if (have_props) {
202195
const uint32_t old_mode = node_ctx.type;
203196
node_ctx.type = type;
@@ -206,7 +199,6 @@ static void handle_node(void)
206199
if (node_ctx.type != old_mode)
207200
repo_modify_path(node_ctx.dst, node_ctx.type, mark);
208201
}
209-
210202
if (mark)
211203
fast_export_blob(node_ctx.type, mark, node_ctx.textLength);
212204
}

0 commit comments

Comments
 (0)