Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a Mercurial or Git version control plugin for PyScripter? [closed]

I'm using Python 3.x and PyScripter to write my scripts. I really miss a version control feature in PyScripter - I got spoiled by Qt and MpLab X (I believe this is a subversion of Eclipse). Things were easy back than. Now I don't have any version control in PyScripter, but I do have Mercurial installed. I perfectly realise I can manage a Mercurial by hand, but I'm lazy and hate manual work. Any other sleak and smooth options I have? I'm ready to use any other vc system (e.g. git) - I just want to know what is the most painless way (proper one).

like image 410
dccharacter Avatar asked May 14 '12 17:05

dccharacter


3 Answers

I just read this post that suggests you can simply use the File Explorer menu of PyScripter, which automatically enables all of the functions from Windows Explorer. I have TortoiseGIT installed, and you can see that from PyScripter's File Explorer window, the version control features of TortoiseGIT are enabled (possibly TortoiseHg as mentioned by @Helgi).

Browse to the folder where your python scripts are stored, make changes, commit-->master, all from right inside PyScripter. Very simple!

Run TortoiseGIT from PyScripter

like image 159
RyanKDalton Avatar answered Oct 16 '22 04:10

RyanKDalton


As far as I understand, PyScripter has no Mercurial plugin, but it has configurable custom tool support.

For Windows Mercurial GUI, I highly recomment TortoiseHg. It has a nice DAG renderer, visual annotate, file-by-file merge dialog, comes with KDiff3 bundled and integrates with other merge tools. It also displays overlays (clean, modified, added) on files in Windows Explorer.

For better integration with PyScripter, you can add certain calls to thg as custom tools:

  • thg ci — open commit window
  • thg blame <file> — annotate file (refer to the PyScripter to find out how to pass current file name to a tool)

Caveat: Without plugin, moved/renamed files won't be automatically noticed by Mercurial as such. You'll have to either find renames with the THG dialog, or move the files with Mercurial commands, outside of the IDE.

Maybe you will find this an acceptable substitute.

like image 42
Helgi Avatar answered Oct 16 '22 04:10

Helgi


I use Mercurial simply out of personal preference, but Git is probably equally suitable. It sounds like you're looking for a GUI that provides menus and buttons for some use cases, but I would suggest using the command line interface because it is faster and standard across platforms.

A great introduction to Mercurial

like image 1
Andrew Buss Avatar answered Oct 16 '22 04:10

Andrew Buss