[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

'svn info --viewspec' has an if (TRUE)

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Mon, 17 Sep 2018 17:30:16 +0000

From subversion/svn/info-cmd.c:

   246 cl_layout_list(apr_array_header_t *targets,
   ⋮
   272 if (TRUE)
   273 {
   274 /* svn-viewspec.py format */
   275 llb.vs_py_format = 2;
   276
   277 SVN_ERR(svn_client_layout_list(list_abspath,
   278 output_svn_viewspec_py, &llb,
   279 ctx, scratch_pool));
   280 }
   281 else
   282 {
   283 /* svn command-line format */
   284 SVN_ERR(svn_client_layout_list(list_abspath,
   285 output_svn_command_line, &llb,
   286 ctx, scratch_pool));
   287 }

Why is there an «if (TRUE)» there? Should that condition be exposed a
command-line option, or removed?
Received on 2018-09-17 19:30:27 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.