Zeus Forum Index Zeus
Use this forum to ask for help, submit a bug report or make a suggestion.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Agent SVN with Visual Studio 6

 
Post new topic   Reply to topic    Zeus Forum Index -> General
View previous topic :: View next topic  
Author Message
hadassi
Guest





PostPosted: Sun Apr 19, 2009 7:45 am    Post subject: Agent SVN with Visual Studio 6 Reply with quote

The home page states:
"Tested with Microsoft Visual C++ 6.0"
http://www.zeusedit.com/agent/index.html

But I could not get visual studio 6 to work with Agent SVN.
Any help would be appreciated.

Thanks
Back to top
jussij
Site Admin


Joined: 13 Aug 2004
Posts: 1445

PostPosted: Mon Apr 20, 2009 12:11 am    Post subject: Reply with quote

Quote:
But I could not get visual studio 6 to work with Agent SVN. Any help would be appreciated.

The issue is the Agent SVN installer does not set the ProviderRegKey key and this is why you are not seeing it from inside of the Microsoft Visual C++ IDE Sad

The installer will be fixed Wink

In any case here are some instructions on how to make it all work:

Initial configuration

Step1: Start regedit and find this key: HKEY_LOCAL_MACHINE\SOFTWARE\SourceCodeControlProvider
Step2: Modify the ProviderRegKey string value to be this: SOFTWARE\Xidicone\Agent SVN
Step3: Start Microsoft Visual C++ IDE
Step4: To check the registry key is set correctly use the MSVC++ Project, Source Control menu and at the bottom there should be an Agent SVN menu item.
Step5: Select the Agent SVN menu to bring up the Agent SVN Configuration dialog and set the details to suit (see help for details)


How to Add a Project to the Source Control

Step1: Open a project workspace and lets assume it's called c:\Projects\MyProject
Step2: Select the project from the File View of the workspace panel
Step3: Use the Project, Source Control, Add to Source control menu to bring up the import wizard for this project
Step3: Complete the wizard to import the project to the source control (refer to help for details)
Step4: Close the Microsoft Visual C++ IDE
Step5: Locate and rename the c:\Projects\MyProject project folder to be c:\Projects\MyProject.original
Step6: Locate the c:\Projects\MyProject.new-working-copy folder and rename it to be c:\Projects\MyProject
Step7: Restart Microsoft Visual C++ IDE and open the c:\Projects\MyProject project

The project is now in source control and the Project, Source Control menu will allow you to access and manage the files in the source control.

Cheers Jussi
Back to top
View user's profile Send private message Send e-mail
hadassi
Guest





PostPosted: Mon Apr 20, 2009 6:55 am    Post subject: How do I make Agent SVN recognize projects already in the SC Reply with quote

OK - Thanks. I can now see the AgentSVN menu.

My problem now is the following:

We are moving from Visual-Source-Safe to SVN. I already created a repository and imported all of the files. Now, I guess I should edit the project (dsp and dsw) files to eliminate the links to VSS. After I do that, how should I proceed in order to make AgentSVN connect to the correct repository? ( I already tried doing so, but could not get agent SVN to work)

Thanks again
Back to top
jussij
Site Admin


Joined: 13 Aug 2004
Posts: 1445

PostPosted: Mon Apr 20, 2009 7:53 am    Post subject: Reply with quote

Quote:
Now, I guess I should edit the project (dsp and dsw) files to eliminate the links to VSS.

Unfortunately Microsoft Visual C++ 6.0 doesn't have an easy way to rebind the source control target, so I think the only option is to edit the dsp file.
Quote:
After I do that, how should I proceed in order to make AgentSVN connect to the correct repository?

The first thing you have to do is tell Agent SVN where the repository is located. You do this using Step 5 of the Initial configuration shown above (see the Agent SVN help for details).

Next in the dsp file for the project there should be these lines:
Code:
# Begin Project
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName "MyProject"
# PROP Scc_LocalPath "."

The Scc_ProjName should just be the name of your project as named in the repository (note this name is case sensitive). To help I would suggest using the repo browser from TortoiseSVN to get the names of the projects in the repository.

The Scc_LocalPath is the local path and it should be the same as the folder as dsp file (hence the period).

Also if you bring up regedit and find this debug option:
Code:
HKEY_CURRENT_USER\Software\Xidicone\Agent SVN\HelpDebug

If you set this to 1 it Agent SVN will create a log file in the Agent SVN installation folder.

The output in the log file should look something like this:
Code:
===================================================================
       Agent SVN, Version 1.00
       Xidicone P/L  Copyright (c)  2004-2009
       All rights reserved
       http:\www.zeusedit.com
===================================================================
-------------------------------------------------------------------
   Project Details
-------------------------------------------------------------------
          Command: svn.exe
             User: jussij
          Project: MyProject
          AuxPath: file:///D:/Projects/svnroot
  Local Directory: d:\projects\myproject
  Default AuxPath: file:///D:/Projects/svnroot
      Return Code: 0
-------------------------------------------------------------------

In the details above the AuxPath is the location of my repository as set in the Agent SVN configuration dialog and Project is the name of the project in the repository.

This should hopefully help get the connection details setup correctly.

But if you can't, just post some of the connection details from the log file and a listing of the repository project you are trying to connect to and I will try to get you up and running Wink

Cheers Jussi
Back to top
View user's profile Send private message Send e-mail
jussij
Site Admin


Joined: 13 Aug 2004
Posts: 1445

PostPosted: Tue Apr 21, 2009 11:35 pm    Post subject: Reply with quote

Here is some more information about binding a project in Visual C++.

How to Manually Bind to the Project

Unfortunately there is no easy way to change the bindings from within the IDE like there is in Visual Studio so the only other option is to manually bind the project files.

Assuming the Visual C++ project is called MyProject this is how to bind the project to the Subversion repository:

1: Make a backup copy of the MyProject.dsw and MyProject.dsp files.

2: Make sure the Agent SVN has been configured with the correct location of the Subversion repository for example:
Code:
file:///D:/Projects/svnroot

3: Make sure the MyProject project exists in the Subversion repository for example at this URL:
Code:
file:///D:/Projects/svnroot/MyProject/trunk

4: Open the MyProject.dsw file and make sure the the following lines exist:
Code:
Project: "MyProject"=.\MyProject.dsp - Package Owner=<4>

Package=<5>
{{{
    begin source code control
    MyProject
    .
    end source code control
}}}


5: Open the MyProject.dsp and make sure the following lines exist:
To bind the project:
Code:
# Begin Project
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName "MyProject"
# PROP Scc_LocalPath "."

6: Open the MyProject.dsw in Visual C++ and the following output should be displayed in the Source Control output window:
Code:
-------------------------------------------------------------------
   Project Details
-------------------------------------------------------------------
          Command: svn.exe
             User: jussij
          Project: MyProject
          AuxPath: file:///D:/Projects/svnroot
  Local Directory: d:\projects\myproject
  Default AuxPath: file:///D:/Projects/svnroot
      Return Code: 0


NOTE: To unbind the MyProject completely the lines in the MyProject.dsw file become:
Code:
Project: "MyProject"=.\MyProject.dsp - Package Owner=<4>

Package=<5>
{{{
    begin source code control
    end source code control
}}}

and in the MyProject.dsp file the lines become:
Code:
# Begin Project
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
Back to top
View user's profile Send private message Send e-mail
jussij
Site Admin


Joined: 13 Aug 2004
Posts: 1445

PostPosted: Tue Jun 30, 2009 7:25 am    Post subject: Reply with quote

Quote:
Initial configuration

Step1: Start regedit and find this key: HKEY_LOCAL_MACHINE\SOFTWARE\SourceCodeControlProvider
Step2: Modify the ProviderRegKey string value to be this: SOFTWARE\Xidicone\Agent SVN.....

The latest release of Agent SVN now creates these registry keys during the installation process: http://zeusedit.com/agent/index.html

More information has also been added to the help file to cover the project import process.

Cheers Jussi
Back to top
View user's profile Send private message Send e-mail
hadassi



Joined: 13 Jul 2009
Posts: 4

PostPosted: Mon Jul 13, 2009 9:51 am    Post subject: Reply with quote

I just got back to setting-up the integration.
I have a project tree that looks something like:
Root
A
B
C (the project file is here)
D

I changed the .dsp and .dsw files as ordered (although I was not sure about the actual project directory. Should it be "Root" or "Root\C"?)

I still get error messages:
Quote:
https://yyyy:8443/svn/ImPr/$/aaa/bbb/C,%20WTAAAAAA: (Not a valid URL)

----------------------------------------------------------------------Agent SVN, Version 1.00

----------------------------------------------------------------------
https://yyyy:8443/svn/ImPr/$/aaa/bbb/C,%20WTAAAAAA: (Not a valid URL)----------------------------------------------------------------------Agent SVN, Version 1.00

----------------------------------------------------------------------



I did not see any log file in the installation directory

Thanks again


Last edited by hadassi on Mon Jul 13, 2009 12:02 pm; edited 1 time in total
Back to top
View user's profile Send private message
hadassi



Joined: 13 Jul 2009
Posts: 4

PostPosted: Mon Jul 13, 2009 11:10 am    Post subject: Reply with quote

OK. After deleting *.opt and *.ncb, I managed to get a little further.
My current problem is that I get a message
Quote:
Could not connect to source code control project "aaaa".


Could it be due a problem with my evaluation license?
How do I fix that?


Last edited by hadassi on Mon Jul 13, 2009 12:01 pm; edited 1 time in total
Back to top
View user's profile Send private message
hadassi



Joined: 13 Jul 2009
Posts: 4

PostPosted: Mon Jul 13, 2009 11:24 am    Post subject: Reply with quote

How o I change AgentSVN's configuration (after setting it up the first time)?
Selecting:
Project->Source Control->Agent SVN,
just brings up the tortoiseSVN repo-browser


Last edited by hadassi on Mon Jul 13, 2009 12:03 pm; edited 1 time in total
Back to top
View user's profile Send private message
hadassi



Joined: 13 Jul 2009
Posts: 4

PostPosted: Mon Jul 13, 2009 12:00 pm    Post subject: Reply with quote

OK. I changed the
HKEY_LOCAL_MACHINE\SOFTWARE\Xidicone\Agent SVN\ActivateExec
key to "", and got the configuration dialog back.

Now things seems to be working. Two new questions:
1. Is there a way to replace the diff and history dialog boxes to use another tool (such as TortoiseSVN)?
2. Why do I get a whole buch of
Quote:
Command: svn.exe propget AgentSVN <filname>

lines on startup. This is really slow!
Back to top
View user's profile Send private message
jussij
Site Admin


Joined: 13 Aug 2004
Posts: 1445

PostPosted: Tue Jul 14, 2009 1:16 am    Post subject: Reply with quote

Quote:
Agent SVN, Version 1.00

In the can see you are running an olded version of the plugin. I would suggest getting the latest Agent SVN 1.20 version found here:

http://www.zeusedit.com/agent/bin/asvn-v120.zip

This latest version has had a lot more information added to the help file to help with configuration and setup.
Quote:
OK. I changed the
HKEY_LOCAL_MACHINE\SOFTWARE\Xidicone\Agent SVN\ActivateExec
key to "", and got the configuration dialog back.

That is a very good point. I will fix this by writing a simple application that brings up the configuration that can be run via the Start Button Wink
Quote:
Now things seems to be working. Two new questions:
1. Is there a way to replace the diff and history dialog boxes to use another tool (such as TortoiseSVN)?

I will see it this is possible Wink
Quote:
2. Why do I get a whole buch of
Quote:
Command: svn.exe propget AgentSVN <filname>
lines on startup. This is really slow!

Is the debug option is turned on, it needs to be turn it off via the registry.

With the debug option on the startup can be very slow Wink

Cheers Jussi
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Zeus Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group