LabVIEW Project Providers

cancel
Showing results for 
Search instead for 
Did you mean: 

Mercurial extension to SCC Project Provider

I have released a Mercurial extenstion to the LabVIEW supplied SCC Project Provider interface. It's been a bumpy road that took a long time (the first code over two years old), NI has been very generous with the sparse documentation available.

Currently I am adding features to the Mercurial extension, but I would like to expand into other SCC's (git for instance).

Feel free to download and try the code from bitbucket and install with VIPM in LabVIEW 2011 (and up).

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 1 of 10
(6,921 Views)

Ton,

Thanks for sharing this with the group.  This looks like it could be a very useful tool for those using Mercurial.  Are you planning on releasing this on the LabVIEW Tools Network?  If so please let me know when you are ready and I'd be more than happy to start the process with you. 

David

0 Kudos
Message 2 of 10
(6,833 Views)

I tried installing the Mercurial Provider and it seems to hang up on installation because of the missing dependency "MercurialAPI >= 0.3.1".  Where does one find this package?

Thanks,

David

[Edit] Found it on the LAVA Code Repository.  Any chance that this can be included with the package so installation is smoother?

Message was edited by: David_L

0 Kudos
Message 3 of 10
(6,833 Views)

I'm not too keen on wrapping up the Mercurial API inside the Project provider, it would mean that the same code could reside twice on the users side, and if I update the Mercurial API I have to re-release the Project provider.

But perhaps I'm going that route.

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 4 of 10
(6,833 Views)

That's understandable.  Perhaps if/when you end up submitting this to the LabVIEW Tools Network we can add the Mercurial API as well.  Thanks again for showing us this tool!

0 Kudos
Message 5 of 10
(6,833 Views)

Hello Ton,

There is another depedency that is not mentionned, it's OpenG Time Library. It's not referenced in the VIP

LabVIEW ChampionArchitect
0 Kudos
Message 6 of 10
(6,833 Views)

Hello Ton,

I have some issue with the provider, the icon overlay don't change when I check out files. And I can't check in file because the status of the files are clean. Do I need to setup something special in my Mercurial to get it working properly?

Another minor issue with Windows 7 the Options dialog box look like this:

HgLabVIEWIssue.png

I have installed the x64 Mercurial with Tortoise. My Os is Win7 French, LabVIEW 2011 English.

LabVIEW ChampionArchitect
0 Kudos
Message 7 of 10
(6,833 Views)

Hi Dany,

You've setup the project provider up correctly. But since Mercurial doesn't do 'check out' (and I cannot blank that option in LabVIEW), you won't see the status update automatically.

After you've saved an edit, you could issue an 'SCC Update status', then LabVIEW will allow you to check in (commit).

One option on my side woulde be to check the status upon a 'Check Out' and update the LabVIEW project.

I have a video (not published yet) that shows the actions you currently have to take: (https://bitbucket.org/tcplomp/mercurial-labview-project-integration/wiki/changeset/9ee822bcf4c0#chg-...)

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 8 of 10
(6,833 Views)

I'm impressed with how well this extension works on LV 2017. But I notice that every so often, doing a <CTRL> + <SHIFT> + <S> Save All will bring up the Commit window, and after I commit whatever I was working on, LabVIEW seems to exit completely unprompted. Any ideas why this occurs? It only happens occasionally, but really disrupts workflow.

 

Also, did you ever do anything with git integration?

0 Kudos
Message 9 of 10
(6,727 Views)

@iannicholson wrote:

I'm impressed with how well this extension works on LV 2017. But I notice that every so often, doing a <CTRL> + <SHIFT> + <S> Save All will bring up the Commit window, and after I commit whatever I was working on, LabVIEW seems to exit completely unprompted. Any ideas why this occurs? It only happens occasionally, but really disrupts workflow.

 

Also, did you ever do anything with git integration?


I've noticed that one thing that brings up the commit window is the <CTRL> + <C> command after opening Quick Drop. I may have read that this is intended behavior. However I have been using MGI's Class Method Browser whose shortcut is also <CTRL> + <C>. Of course this causes a collision. But, when I try to change the keystroke for the Class Method Browser, it also changes the keystroke for the Commit command (i.e. pressing <CTRL> + <M> brings up both the Class Method Browser and the Commit window).

 

Any idea why that would be? Is there a simple way to disable the keystroke for this?

0 Kudos
Message 10 of 10
(6,689 Views)