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

对着背影说爱祢 提交于 2019-12-07 06:40:30

问题


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).


回答1:


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!




回答2:


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.




回答3:


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



来源:https://stackoverflow.com/questions/10588298/is-there-a-mercurial-or-git-version-control-plugin-for-pyscripter

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!