mirror of
https://github.com/git/git.git
synced 2024-11-28 04:23:30 +08:00
vcs-svn: remove repo_delete wrapper function
Since v1.7.10-rc0~118^2~4^2~4^2~3 (vcs-svn: pass paths through to fast-import, 2010-12-13) this is an alias for fast_export_delete. Remove the unnecessary layer of indirection. No functional change intended. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
21c7c2d92d
commit
9b0db33506
@ -41,8 +41,3 @@ void svn_repo_copy(uint32_t revision, const char *src, const char *dst)
|
||||
}
|
||||
fast_export_modify(dst, mode, data.buf);
|
||||
}
|
||||
|
||||
void svn_repo_delete(const char *path)
|
||||
{
|
||||
fast_export_delete(path);
|
||||
}
|
||||
|
@ -3,6 +3,5 @@
|
||||
|
||||
void svn_repo_copy(uint32_t revision, const char *src, const char *dst);
|
||||
const char *svn_repo_read_path(const char *path, uint32_t *mode_out);
|
||||
void svn_repo_delete(const char *path);
|
||||
|
||||
#endif
|
||||
|
@ -225,11 +225,11 @@ static void handle_node(void)
|
||||
if (have_text || have_props || node_ctx.srcRev)
|
||||
die("invalid dump: deletion node has "
|
||||
"copyfrom info, text, or properties");
|
||||
svn_repo_delete(node_ctx.dst.buf);
|
||||
fast_export_delete(node_ctx.dst.buf);
|
||||
return;
|
||||
}
|
||||
if (node_ctx.action == NODEACT_REPLACE) {
|
||||
svn_repo_delete(node_ctx.dst.buf);
|
||||
fast_export_delete(node_ctx.dst.buf);
|
||||
node_ctx.action = NODEACT_ADD;
|
||||
}
|
||||
if (node_ctx.srcRev) {
|
||||
|
Loading…
Reference in New Issue
Block a user