Hi together,
I searched for a combined plugin for Git and SVN, but I didn’t find a package that I liked. The existing ones are fairly complete, but they have too much functionality in my oppinion, which I don’t need. And for instance HypnotoadSVN creates too much menu entries, which I also don’t like. So I tried to make my own VCS plugin, which combines Git and SVN in one. I thought it is a good exercise since I am new to Python and plugin development as well.
I didn’t find a way to attach files, so I paste the code of my plugin below. Because I have some questions about it.
First of all:
panel is a global variable for the output panel, where I want to display SVN and Git text messages. It works well, but when I open a second Sublime Text window, then it keeps printing at the old window, and if the old window is closed, there is no output panel anymore So the question is: how can I print always in the active window?
Second question:
When I do a “Git Pull” or “SVN Update” command, which can take a few seconds, Sublime Text hangs during that time. I know the reason; it is because Python waits until the Git or SVN process started has finished. But how can I change the behaviour of this, such that Sublime does not hang?
Many thanks in advance for any help!
edit:
does not work to paste the code here. Link: http://pastebin.com/m3L93DSm