summaryrefslogtreecommitdiff
path: root/remote.c
diff options
context:
space:
mode:
authorLibravatar Jonathan Nieder <jrnieder@gmail.com>2010-11-19 18:47:41 -0600
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-11-24 14:51:42 -0800
commitd6e81a03153810f122f1b8ec3635fd84c5429f69 (patch)
treef034fbc353a61a75a4d43ca90c8def383d604e79 /remote.c
parentvcs-svn: Eliminate node_ctx.mark global (diff)
downloadtgif-d6e81a03153810f122f1b8ec3635fd84c5429f69.tar.xz
vcs-svn: Unclutter handle_node by introducing have_props var
It is possible for a path node in an SVN-format dump file to leave out the properties section. svn-fe handles this by carrying over the properties (in particular, file type) from the old version of that node. To support this, handle_node tests several times whether a Prop-content-length field is present. Ancient Subversion actually leaves out the Prop-content-length field even for nodes with properties, so that's not quite the right check. Besides, this detail of mechanism is distracting when the question at hand is instead what content the new node should have. So introduce a local have_props variable. The semantics are the same as before; the adaptations to support ancient streams that leave out the prop-content-length can wait until someone needs them. Signed-off-by: Jonathan Nieder <jrnieer@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'remote.c')
0 files changed, 0 insertions, 0 deletions