Author Topic: How to configure Version Control - Advanced Topic  (Read 5416 times)

alonzoem

  • Community Member
  • Posts: 6
  • Hero Points: 0
How to configure Version Control - Advanced Topic
« on: March 09, 2011, 08:32:02 PM »
Hi,

I realy hope for some help here...
I have asked for a solution a some time ago without any results - see http://community.slickedit.com/index.php?topic=1044.0

I want to keep the *.vpj files in the Version Control system to be useful for several user, and several project branches.
SE will map the Version Control branch using 'VCSLocalPath' which is defined in *.vpj file.
Projects that are shared between several users, or have side-branches will have different local path on disk for each case.
However this 'VCSLocalPath' is absolute, i.e. not relative to the project location on disk.

Example:
1. User 'A' initalize the Version Control for HIS local path, e.g. c:\projects\PROJ_NUM_1, the 'VCSLocalPath' will look like:
VCSLocalPath="SCC:Surround SCM SCCI:C:\projects\PROJ_NUM_1".
2. I check-in the *.vpj to Version Control.
3. User 'B' takes the same project, maps it to a different local path, e.g. c:\development\PROJ_NUM_1.
4. User 'B' will open the project - it will not find the correct Version Control as it islooking at the wrong local path - c:\projects\PROJ_NUM_1 as defined by 'VCSLocalPath'.
5. User 'B' must reconfigure his Version Control.
If User 'B' will updates project files into Version Control, then User 'A' will have a problem...


How can I solve this conflict?


Thanks,
Alon

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2899
  • Hero Points: 153
Re: How to configure Version Control - Advanced Topic
« Reply #1 on: March 10, 2011, 03:49:29 PM »
Alon:

What version of SlickEdit are you using?

Thanks,

Dan

alonzoem

  • Community Member
  • Posts: 6
  • Hero Points: 0
Re: How to configure Version Control - Advanced Topic
« Reply #2 on: March 10, 2011, 03:54:31 PM »
SlickEdit Version 15.0.0.5
Build Date: April 26, 2010

davehohl

  • Senior Community Member
  • Posts: 271
  • Hero Points: 27
Re: How to configure Version Control - Advanced Topic
« Reply #3 on: August 23, 2016, 10:12:25 PM »
I am having the same problem. A co-worker just installed SE, and we need to share a.vpj file that is kept under version control. His version control working directory structure is different from mine, and when he tries to open the .vpj file, the definition of VCSLocalPath is an absolute path reflecting my setup, and causes him to get a warning complaining "unable to determine any repository association for the local path..."

Seems like there was never any resolution to the original post. Is there a way to work around this? I tried editing the .vpj file to set VCSLocalPath to ".", but that did not work.

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2899
  • Hero Points: 153
Re: How to configure Version Control - Advanced Topic
« Reply #4 on: August 24, 2016, 01:12:09 PM »
What version of SlickEdit are you using?

Graeme

  • Senior Community Member
  • Posts: 2796
  • Hero Points: 347
Re: How to configure Version Control - Advanced Topic
« Reply #5 on: August 24, 2016, 01:12:43 PM »
What about "./" or a drive mapping or an environment variable.

davehohl

  • Senior Community Member
  • Posts: 271
  • Hero Points: 27
Re: How to configure Version Control - Advanced Topic
« Reply #6 on: August 24, 2016, 04:16:58 PM »
SlickEdit Pro 2015 (v20.0.3.0 64-bit)

Serial number: XXXXX
Licensed number of users: Single user
License file: C:\ProgramData\slickedit\20\slickedit.lic

Build Date: August 04, 2016
Emulation: CUA

OS: Windows 10 x64
OS Version: 10.00.0 
Memory: 24% Load, 5977MB/24454MB Physical, 6481MB/28038MB Page File, 498MB/134217727MB Virtual
Shell Information: C:\WINDOWS\system32\cmd.exe /q
Screen Size: 1920 x 1080, 1536 x 960, 1920 x 1200

Project Type: Cpp
Language: .lnt (Plain Text)
Encoding: Automatic

Installation Directory: C:\Program Files\SlickEdit Pro 20.0.3\ (non-removable drive,NTFS,284523MB free)
Configuration Directory: C:\Users\David\OneDrive - physiowave.com\Documents\My SlickEdit Config\20.0.3\ (non-removable drive,NTFS,284523MB free)
Migrated from: C:\Users\David\OneDrive - physiowave.com\Documents\My SlickEdit Config\20.0.2\

Hotfixes:
C:\Users\David\OneDrive - physiowave.com\Documents\My SlickEdit Config\20.0.3\hotfixes\hotfix_se2003_4_cumulative.zip (Revision: 4)
C:\Users\David\OneDrive - physiowave.com\Documents\My SlickEdit Config\20.0.3\hotfixes\hotfix_se2003_5_cumulative.zip (Revision: 5)



davehohl

  • Senior Community Member
  • Posts: 271
  • Hero Points: 27
Re: How to configure Version Control - Advanced Topic
« Reply #7 on: August 24, 2016, 08:56:57 PM »
What about "./" or a drive mapping or an environment variable.
The original line in the .vpj file was

    VCSLocalPath="SCC:Surround SCM SCCI:C:\Firmware\Rabbit\AP"

As you suggested, I changed it to

    VCSLocalPath="SCC:Surround SCM SCCI:.\"

This time I got an error saying that the working directory for the repository does not match the local path (see attached screen shot). The weird thing is that the directory is lists is the proper local path -- identical to what was in the original .vpg file. Seems like SE is confused.

I guess I could try a mapped drive or environment variable, but that seems rather kludgy. Seems like SE should support paths relative to the location of the .vpj file.
« Last Edit: August 24, 2016, 08:59:58 PM by davehohl »

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2899
  • Hero Points: 153
Re: How to configure Version Control - Advanced Topic
« Reply #8 on: August 25, 2016, 02:03:35 AM »
This needs to go in the .vpwhist file.  Let me take a look at this.  Hopefully I can get it in a hotfix.

davehohl

  • Senior Community Member
  • Posts: 271
  • Hero Points: 27
Re: How to configure Version Control - Advanced Topic
« Reply #9 on: August 25, 2016, 05:33:41 PM »
That would be great, Dan!