Gemini Community Support Site

This Gemini community support site can be used to find solutions to product issues. You can log in using Open Id, Google Profile and even Facebook. Feel free to ask a question or browse FAQs and documentation. Product tour videos are also available along with how-to videos demonstrating key Gemini capabilities.




SVN file locations and repository information

api

Hi,

We've got our SVN server combined in an apache setup, so we can access it using https. Now when we enable the SVN hooks, we find that instead of the https repository information, the (for the SVN server) local disk repository information is presented. Does anyone know how that can be changed? Also the file locations are not filled at all.

Realworld
· 1
Realworld
Replies (18)
helpful
0
not helpful

Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

any tips on how? cause I'm no developer...


Realworld
· 1
Realworld
helpful
0
not helpful

Sorry, didn't read your initial post fully. What do you mean by the "locations are not populated"?


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

I'd love to attach a picture, but since I'm not allowed, hereby via link:


The field "File Path" is empty, and the field "Repository" should be something like https://svn.ourdomain.com/testrepo


Realworld
· 1
Realworld
helpful
0
not helpful

I have removed the link for security reasons and passed it on to our developers to see if they can help.
Will let you know ASAP.


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

Can you please try and put quotes around the argument in the post-commint.cmd file ("%1")?


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

done that, but nothing changes


Realworld
· 1
Realworld
helpful
0
not helpful

What do you see in the comment that is added when you commit?


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

I see the comment that is entered in the SVN client, together with the Gemini issue number.
fe.:
---
update with character 1
GEM:371
---


Realworld
· 1
Realworld
helpful
0
not helpful

You should see:

Author: ...
SVN Revision: ....
Affected files: ....
Check-in comment: ...

is that not the case? Did you modify the template or source code of the SVN plug-in?


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

it does, but you asked for the comment... that's what it says under check-in comment


Realworld
· 1
Realworld
helpful
0
not helpful

Ok, sorry.
So is the revision and files populated in that section?


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

yes, they are filled with the proper information: Author username SVN Revision 5 Affected files testdoc.txt (Updated) Check-in comment update with character 1 GEM:371


Realworld
· 1
Realworld
helpful
0
not helpful

correction on my first post, the 'file path' field is correctly filled. At first I didn't have a folder in my testrepository. So now the issue left is the field 'Repository' which shows the (for the server) local disk location of the repository D:\SVN\testrepo which should be https://hostname/testrepo


Realworld
· 1
Realworld
helpful
0
not helpful

I see, unfortunately, the plug-in doesn't do that. However, the source code is available so you could customize it to do so.


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

SVN give's you not the url to the svn server.

The hook will be called with 2 paramters:
  %1 REPOS-PATH   (the path to this repository)
  %2 REV          (the number of the revision just committed)

normaly you calls the gemini hook with:
SET REPOSITORYFOLDER=%1
REM Execute the connector
%REPOSITORYFOLDER%\hooks\CounterSoft.Gemini.SourceControl.SVN.exe "post-commit" %1 %2

The svn addin needs this information to get the change information (it calls svnlook with the provided path).
the only way is that you change the source of the gemini Sourcontrol to provide a 3rd argument so you can tell him which site in the issue will be displayd.
tommy


tommy
· 1
tommy
helpful
0
not helpful

I fixed it by changing the postcommit.cs as follows:

the following line:

sourceControlFileLink.SourceControlRepository = repositoryPath;

has been changed into:

int repositoryPathIndex = repositoryPath.LastIndexOf(@"\");
int repositoryPathLength = repositoryPath.Length - repositoryPathIndex - 1;
string repository = "https://svnhost.domain.com/" + repositoryPath.Substring(repositoryPathIndex + 1, repositoryPathLength);
sourceControlFileLink.SourceControlRepository = repository;


I can imagine that it might be a nice feature to insert into the official release that you can set the https://svnhost.domain.com/ in the CounterSoft.Gemini.SourceControl.SVN.exe.config file. I think that most companies don't use local repository names for their employees to use...


Realworld
· 1
Realworld
helpful
0
not helpful

Thanks for the update and feedback.
We will migrate it across.


Saar Cohen
· 5000
Saar Cohen