LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabView and Perforce renaming a vi in your project

Hi All

 

Im using Perforce as our SCC and I've integrated it into LabVIEW, all OK but I have a concern that hopefully someone can shed some light on.

 

If you use Perforce you will be awars that if you check out a directory then from File Explorer delete or rename  a file then Perforce is not forgiving and will not continue untill you give it back the file that you checked out. Fair enough and to do such opperations you should work within the Perforce Client.

 

However I would have expected that when you tell labVIEW that perforce id your SCC and within the Project manager you rename a file for the obvious reason that you want vi and control linkages to remap, that LabVIEW would execute the correct series of commands to perforce to tell it that the file has been renamed. Because when you go to check in your project folder Perforce wants that original file.

 

Has anyone experienced this and knows a workarround?

 

Cheers

 

Kurt

0 Kudos
Message 1 of 12
(3,889 Views)

@Kurt_Cochlear wrote:

Hi All

 

Im using Perforce as our SCC and I've integrated it into LabVIEW, all OK but I have a concern that hopefully someone can shed some light on.

 

If you use Perforce you will be awars that if you check out a directory then from File Explorer delete or rename  a file then Perforce is not forgiving and will not continue untill you give it back the file that you checked out. Fair enough and to do such opperations you should work within the Perforce Client.

 

However I would have expected that when you tell labVIEW that perforce id your SCC and within the Project manager you rename a file for the obvious reason that you want vi and control linkages to remap, that LabVIEW would execute the correct series of commands to perforce to tell it that the file has been renamed. Because when you go to check in your project folder Perforce wants that original file.

 

Has anyone experienced this and knows a workarround?

 

Cheers

 

Kurt


I use SVN and you can re-link the files.  With the Tortoise front end it's as easy as selecting both files and saying that it was renamed.  That way you keep the history intact.  Maybe you can do something to that effect?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 2 of 12
(3,879 Views)

Hi Bill

 

I'll take a look and see if there is a similar capability.

 

I'm a great fan of SVN and have used it for years to SCC my LabVIEW projects, Perforce is new to me I'm getting familiar but I find the susff that was easy and intuative in SVN is not in Perforce

0 Kudos
Message 3 of 12
(3,865 Views)

I wished I could have been of more help.  😞

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 4 of 12
(3,849 Views)

Unfortunately I've never seen any way to handle renaming/moving a file cleanly with Perforce and LabVIEW. I've always done it in two steps: rename the file within LabVIEW, exit LabVIEW saving all changes, rename the file back to the original, then execute the move/rename within Perforce. Cumbersome, but it does keep the file links correct within LabVIEW and maintains the history properly in Perforce.

0 Kudos
Message 5 of 12
(3,818 Views)

The two step method in my mind is always the safe way.  But if you are on SVN then you should know the ViewPoint SVN toolkit, and the older JKI one (which isn't free) performs renames in both places at once.

Message 6 of 12
(3,806 Views)

Thanks Everyone

 

Ok its just confirmed my suspicions that this is the way Perforce and LabVIEW work. I think I'll just need to be carefull when I'm going to get LabVIEW to rename something for me, and work out an effective strategy.

 

Cheers

 

Kurt

 

0 Kudos
Message 7 of 12
(3,770 Views)

You can't do a rename in Perforce and continue from there?  That's what I do with VSS.  (There's probably a better way to do it in VSS, but I'm lazy and it works well enough for me.)

 

😞

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 8 of 12
(3,759 Views)

Hi Billko

 

The problem is when you work within a LV project you want to rename a vi, class or library within the LV project so that linkages are remapped. If you just renamed it in the Perforce client and then tried to open your project it will be looking for missing resources.

0 Kudos
Message 9 of 12
(3,752 Views)

Sorry, what I meant was after you rename it in your project, rename the Perforce file to the same thing and then commit.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 10 of 12
(3,735 Views)