Does PyScripter have a Mercurial or Git version control plugin?

I use Python 3.x and PyScripter to write my scripts. I really miss the version control function in PyScripter - I am spoiled by Qt and MpLab X (I think this is a subversive activity of Eclipse). Things were easy back. Now I don't have version control in PyScripter, but I have Mercurial. I understand very well that I can control Mercurial manually, but I am lazy and hate manual work. Any other smooth and smooth options that I have? I am ready to use any other vc system (e.g. git). I just want to know what is the most painless (right).

+6
source share
3 answers

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

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

Run TortoiseGIT from PyScripter

+8
source

As I understand it, PyScripter does not have a Mercurial plugin, but it has custom support for custom tools.

For the Windows Mercurial GUI, I highly recommend TortoiseHg . It has good DAG rendering, a visual annotated file-by-file file merge dialog, comes with KDiff3 and integrates with other merge tools. It also displays overlays (clean, modified, added) files in Windows Explorer.

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

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

Caution Without the plugin, moved / renamed files will not be automatically noticed by Mercurial as such. You will either have to find the renames in the THG dialog, or transfer the files using Mercurial commands outside the IDE.

You may find this an acceptable substitute.

+2
source

I use Mercurial just out of personal preference, but Git probably works the same way. It looks like you are looking for a graphical interface that provides menus and buttons for some use cases, but I would suggest using the command line interface because it is faster and standard on all platforms.

Great introduction to Mercurial

+1
source

Source: https://habr.com/ru/post/915705/


All Articles