I use both Git and Mercurial for projects, as well as Powershell as a console for both. Both source control systems have awesome plugins in posh-git and posh-hg that provide nice statuses, tab expansions and so on. However, they don’t just automatically play nice with one another. I installed Github for Windows, and found that my posh-hg stuff went away.
However, thanks to this Stack Overflow answer, it’s easy to use both of these together. I cloned both repositories to my local box, and then just modified the script to point to that version:
Now I get both posh-hg and posh-git working together!
I'm a technical architect with Headspring in Austin, TX. I focus on DDD, distributed systems, and any other acronym-centric design/architecture/methodology. I created AutoMapper and am a co-author of the ASP.NET MVC in Action books.
I wish someone could port these to a UNIX environment. I have a script running in my mac but it isn’t as nice as posh-hg or posh-git.
http://www.facebook.com/chaliy Mike Chaliy
Jimmy, this is all is bit outdated, latest version of the posh-git and posh-hg works together without any problems. They adopted single Write-VcsStatus , with some powershell magic they managed to resolve conflicts. You probably just need to update your Posh-Hg (assuming that git for windows distributes last Posh-Git)
To make things clear.
. ‘C:devposh-hgprofile.example.ps1′
. ‘C:devposh-gitprofile.example.ps1′
This two lines is enough in your case, you can inspect this files to get an idea.
About Me
I'm a technical architect with Headspring in Austin, TX. I focus on DDD, distributed systems, and any other acronym-centric design/architecture/methodology. I created AutoMapper and am a co-author of the ASP.NET MVC in Action books.