A
A
Alex vak2017-04-22 20:14:40
subversion
Alex vak, 2017-04-22 20:14:40

How to combine-combine TortoiseSVN and VisualSVN Server web interface?

Hello. Below are my questions about version control systems.
Question 0: What is the relationship between Subversion (also known as "SVN") and the TortoiseSVN+VisualSVN Server bundle?
Question 1. Please explain in more detail (step by step) or give a link to a resource / video / book on the solution of the following problem: How to correctly install VisualSVN Server and TortoiseSVN on a working PC and create a "Rep1" repository in VisualSVN Server?
Question 2. As I understand it, VisualSVN Server should emulate a real server on a working PC, is it possible, or do I really need to raise the server on my PC? Question 3. Please explain how to set the webviewer:revision and webviewer:pathrevision
properties for the "Rep1" repository root, so that the values ​​of these properties are like webviewer:revision https://***.example.com/..../r%REVISION%
and webviewer:pathrevision https://***.example.com /.../r%REVISION%%PATH% (they point to some remote resource, so this question is related to question 2)?
Question 4. Is setting the values ​​of the required properties from question 3 (and others) done with
TortoiseSVN or with the “svn propset” command? How exactly?
Question 5. How can I make it so that when working with a working copy in TortoiseSVN, I can
view any version of the TortoiseSVN Log Messages in the VisualSVN Server web interface, so that
did the command “View revision in webviewer” appear in Log Messages in TortoiseSVN, and when this command is executed, does the browser open with the current version?
Question 6. As far as I understand, to complete question 5, the following steps are required:
copying the URL "Rep1" from the VisualSVN Server Manager, setting the property values ​​(as in question 4), am I right?
Question 7. How can I make sure that everything is done correctly (settings are selected correctly)?
You can only answer the questions you like, in any case, immensely grateful.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
bahrep, 2017-04-24
@Itmoing100

1. Open your repository using TortoiseSVN Repo Browser and find the trunk of the project we need.
2. Right-click trunk/ and select Show Properties.
3. In the dialog box that opens, click New | other.
4. In Property name enter webviewer:revision.
5. In the Property value, enter /!/#REPOSITORY-NAME/commit/r%REVISION%/r%REVISION%. This path is relative to server root. You can also enter an absolute path.
6. Click OK.
7. Repeat steps 3, 4, 5, 6, but for the webviewer athrevision property, for which we specify the value /!/#REPOSITORY-NAME/view/r%REVISION%%PATH%
Once these properties are set, you can svn checkout the working copy of trunk and the commands View revision in webviewer, View revision for path in webviewer become available in TortoiseSVN. The commands will only be available when calling the TortoiseSVN dialogs on the working copy. For any new branch from trunk, the required properties will automatically be copied when it is created.
By the way, there is also a book TortoiseSVN Beginner's Guide . AFAIK, it also includes a section on installing and initial setup of VisualSVN Server.
* VisualSVN Server -- SVN server for Windows.
* TortoiseSVN is the (best) SVN client for Windows.
TortoiseSVN is used to work with repositories hosted on a VisualSVN Server (well, or another SVN server).
Download the installer and install it: https://tortoisesvn.net/downloads.html
1. Download the server installer https://www.visualsvn.com/server/download/, run it, click to the very end and wait 30 seconds until the installation is complete.
2. Launch VisualSVN Server Manager.
3. In the launched console, right-click Repositories and select Create New Repository . Follow the steps of the opened wizard and the new repository will be created instantly.
If there is no Active Directory domain and you intend to use Subversion authentication&authorization, then you will also need to create a new user account that will be used to access the repositories. See Users on the left. You can read about the authentication types available in VisualSVN Server in the KB39 article: Understanding VisualSVN Server Authenticatio... .
Emulate? No "emulations"! :) VisualSVN Server is a complete Subversion server for Windows. VisualSVN Server works out of the box and is really easy to install and configure.
VisualSVN Server can be installed on both client and server Windows and side-by-side with other server applications. For production use in an organization, of course, you should use Windows Server. At the same time, there are no restrictions on installation on a laptop or other client workstation.
If you want your colleagues and comrades to access your computer to access repositories, no problem. Only, perhaps, the option of installing VisualSVN Server on a separate always-on wheelbarrow or on a virtual machine in Azure / Amazon.

Question 3. Please explain how to set the webviewer:revision and webviewer:pathrevision properties for the repository root "Rep1" so that the values ​​of these properties are like this webviewer:revision https://***.example.com/. .../r%REVISION%
and webviewer:pathrevision https://***.example.com/.../r%REVISION%%PATH% (they point to some remote resource, so this question is related to question 2 )?

Reading the TortoiseSVN Manual | Integration with Web-based Re...
In order for TortoiseSVN to display the correct commands in the context menus, TortoiseSVN must see and recognize the webviewer:pathrevision webviewer:revision properties in the working copy. Those. you need to add these properties and specify a link template in them to the web interface. Then we do `svn checkout` of the working copy.
Question 4. Is setting the values ​​of the required properties from question 3 (and others) done with
TortoiseSVN or with the “svn propset” command? How exactly?

Can be used as a command-line client, i.e. run the `svn propset` command, or TortoiseSVN. TortoiseSVN will probably be easier for a beginner - TortoiseSVN has a special editor for .
Question 5. How to make it so that when working with a working copy in TortoiseSVN, you can
view any version from TortoiseSVN Log Messages in the VisualSVN Server web interface, so that
the “View revision in webviewer” command appears in Log Messages in TortoiseSVN and when you execute this command opens a browser with the current version?

See here: https://tortoisesvn.net/docs/release/TortoiseSVN_e...
It is important to remember that the View revision in webviewer and View revision for path in webviewer commands will be available in the context menus only when working with SVN is done through the local desktop. copy! See the sidebar Limitations Using the Repository Browser linked above.
Question 6. As far as I understand, to complete question 5, the following steps are required:
copying the URL "Rep1" from the VisualSVN Server Manager, setting the property values ​​(as in question 4), am I right?

You also need to make sure that the server is reachable at that URL.
It is necessary to make a checkout of the working copy, to check that the necessary properties are in place. Run TortoiseSVN 'Show log' and call the context menu for the revision in the log. The required commands must be available in the context menu, and their call must open a web browser with the required revision or path in the repository.

P
Puma Thailand, 2017-04-25
@opium

Why the hell are you so complicated, go to git already 2017 on the nose

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question