/[Apache-SVN]
ViewVC logotype

Revision 1826864


Jump to revision: Previous Next
Author: julianfoad
Date: Thu Mar 15 20:43:30 2018 UTC (6 years ago)
Changed paths: 5
Log Message:
Viewspec: Add an experimental viewspec output command.

Part of issue SVN-4753 "SVN viewspec feature".

This reports the current layout of the working copy, in terms of switched
URLs, mixed revisions, and mixed depths.

The current CLI command is:

  svn info --viewspec [PATH]

The current output is in the form of a series of 'svn' commands which can
be used as command-line input to recreate the layout, although the behaviour
when doing so is not optimal.

Patch by: rhuijben
(tweaked by me)

* subversion/include/svn_client.h
  (svn_client_layout_func_t,
   svn_client_layout_list): New.

* subversion/libsvn_client/layout.c
  New file.

* subversion/svn/cl.h
  (svn_cl__opt_state_t): Add a 'viewspec' option.

* subversion/svn/info-cmd.c
  (layout_list_baton_t,
   layout_func,
   cl_layout_list): New.
  (svn_cl__info): Call it.

* subversion/svn/svn.c
  (svn_cl__longopt_t,
   svn_cl__options): Add a 'viewspec' option.
  (svn_cl__cmd_table): Let the 'info' command take the option.
  (sub_main): Parse the option.


Changed paths

Path Details
Directorysubversion/trunk/subversion/include/svn_client.h modified , text changed
Directorysubversion/trunk/subversion/libsvn_client/layout.c added
Directorysubversion/trunk/subversion/svn/cl.h modified , text changed
Directorysubversion/trunk/subversion/svn/info-cmd.c modified , text changed
Directorysubversion/trunk/subversion/svn/svn.c modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26