[SOLVED] Support for the SVN columns -- with ideas for implementation
Posted: 21 Feb 2019 09:06
As a TortoiseSVN user, I would like to have the SVN related information displayed as extra columns, such as SVN status, revision number, etc., so that I can sort or filter the files accordingly.
It seems that the SVN properties cannot be derived directly from the system. Rather, they should be read from somewhere else.
I did some search and found a possible solution: use the "SVN status -v [PATH]" command in CMD, which will return the SVN information about the files and folders in [PATH].
A typical return: It can be seen that there are five columns returned, in which the first, the third, the fourth, and the fifth one are exactly what we need.
The first column tells whether a file is modified (M), to be added (A), to be deleted (D), none-versioned (?), or normal (empty). The third column tells the last changed revision of the file/folder. The fourth column tells information of the author, and the fifth one is the corresponding file/folder. Details can be found in page 22 of the SVNbook, in the section "See an overview of your changes".
I assume that a script is enough to accomplish this, which runs the "SVN status -v [PATH]" command in the background for the current directory and parses the returned, and then displays the grabbed information in columns.
The command is available on machines where the TortoiseSVN (https://tortoisesvn.net/) client is installed.
The SVNbook can be downloaded here: http://svnbook.red-bean.com/ or https://sjtueducn-my.sharepoint.com/:b: ... Q?e=FpfiSc
Similar requests here:
viewtopic.php?f=5&t=2600&p=23267&hilit= ... umn#p23267
viewtopic.php?f=5&t=443&p=3870&hilit=SVN+column#p3870
Please consider an implementation
It seems that the SVN properties cannot be derived directly from the system. Rather, they should be read from somewhere else.
I did some search and found a possible solution: use the "SVN status -v [PATH]" command in CMD, which will return the SVN information about the files and folders in [PATH].
A typical return: It can be seen that there are five columns returned, in which the first, the third, the fourth, and the fifth one are exactly what we need.
The first column tells whether a file is modified (M), to be added (A), to be deleted (D), none-versioned (?), or normal (empty). The third column tells the last changed revision of the file/folder. The fourth column tells information of the author, and the fifth one is the corresponding file/folder. Details can be found in page 22 of the SVNbook, in the section "See an overview of your changes".
I assume that a script is enough to accomplish this, which runs the "SVN status -v [PATH]" command in the background for the current directory and parses the returned, and then displays the grabbed information in columns.
The command is available on machines where the TortoiseSVN (https://tortoisesvn.net/) client is installed.
The SVNbook can be downloaded here: http://svnbook.red-bean.com/ or https://sjtueducn-my.sharepoint.com/:b: ... Q?e=FpfiSc
Similar requests here:
viewtopic.php?f=5&t=2600&p=23267&hilit= ... umn#p23267
viewtopic.php?f=5&t=443&p=3870&hilit=SVN+column#p3870
Please consider an implementation