by miltongoh at 2012-09-27 01:42:26
Hi,by RichardSiddaway at 2012-09-27 04:00:26
I wonder if anyone starts doing version controlling for your powershell scripts? If yes, how and using what tools? If you don’t mind sharing.
Cheers.
I’ve used two methods -by surveyor at 2012-09-27 04:24:51
source safe
- a simple folder structure to hold past versions
In either case the important point is control who has access to the scripts to modify them
Hi,by miltongoh at 2012-09-27 05:32:01
I’m not using sourcecontrol at this time but have found a few interesting articles in the past.
http://powertoe.wordpress.com/2010/12/12/why-every-it-pro-should-use-mercurial-for-source-control-with-their-powershell-scripts/
and
http://www.hanselman.com/blog/PromptsAndDirectoriesEvenBetterGitAndMercurialWithPowerShell.aspx
[quote="RichardSiddaway"]I’ve used two methods -by miltongoh at 2012-09-27 05:33:22
source safe
- a simple folder structure to hold past versions
In either case the important point is control who has access to the scripts to modify them[/quote]
How about in the scenarios where there is a team of administrators that are writing powershell scripts to aid in their day-to-day operations. How would you recommend a team that may locate in different place to work on same script? Assuming cloud may be the right place to store their versions for tracking.
[quote="surveyor"]Hi,by cookie.monster at 2013-01-30 17:45:56
I’m not using sourcecontrol at this time but have found a few interesting articles in the past.
http://powertoe.wordpress.com/2010/12/12/why-every-it-pro-should-use-mercurial-for-source-control-with-their-powershell-scripts/
and
http://www.hanselman.com/blog/PromptsAndDirectoriesEvenBetterGitAndMercurialWithPowerShell.aspx[/quote]
Thanks, I have read one of the article already by Tome. Really very detail and useful. First time coming across Hanselman one though. Will go read up first~
I set up mercurial for our internal PowerShell scripts and modules. Previously used a staging directory, but now more folks may start working with the same files. Not a developer and haven’t used (actual) source control in years, but the concepts seem easy to understand and the setup was pretty simple.
In addition to the posts above, I found Jason Hofferle’s post and a site he linked to, hginit.com, very helpful.
I assume I can set up a repository on a share and control access through NTFS. PowerShell (well, cmd.exe) understandably barked at me when I tried to run initialize / add / commit a UNC path. After mapping the path to a network drive I was able to do this without issue.
Anyone else using Mercurial? Do you use any integration through PowerShell with tools like posh-hg?