Well I originally tried to do this myself, and moved on, but I have been writting a nice set of dialogs for mercurial that may be relevant to this discussion.<br><br>please see:<br><br><a href="http://bitbucket.org/bfrog/cutehg-stable">http://bitbucket.org/bfrog/cutehg-stable</a><br>
<br>I have no doubt that instead of making an extension to mercurial itself a derivation of the dvcs plugin interface (done in python using kross, as suggested) could call in to the nice little program I wrote to display some fancy dialogs.<br>
<br>-Tom<br><br><div class="gmail_quote">On Sun, Mar 15, 2009 at 3:39 PM, Fabian Wiesel <span dir="ltr"><<a href="mailto:fabian.wiesel@fu-berlin.de">fabian.wiesel@fu-berlin.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Sun, 15 Mar 2009 00:50:30 +0100<br>
<div class="im">Andreas Pakulat <<a href="mailto:apaku@gmx.de">apaku@gmx.de</a>> wrote:<br>
<br>
</div><div class="im">> On 14.03.09 10:43:25, Fabian Wiesel wrote:<br>
</div><div class="im">> Well, don't you have that problem right now too? i.e. what happens if<br>
> two of the hg-processes run at the same time on the same repository<br>
> doing different things?<br>
<br>
</div>That is no problem. As any sane VCS (in other words all but CVS), the<br>
software is already written that two (or more processes) can access the<br>
same repository at the same time.<br>
<div class="im"><br>
> I don't know the python API (or even used<br>
> mercurial at all), but python itself can be made "single-threaded" by<br>
> locking the GIL so thats not necessarily an issue unless multiple<br>
> python interpreters are used.<br>
<br>
</div>AFAIK, due to the GIL, Python is _just_ single a single thread of<br>
execution. There threads, but at no time there are more than two threads<br>
actually running in an interpreter. Still, you can have several threads<br>
in python, but the question stands: Is the code mercurial written to be<br>
reentrant? I don't think so. So, I'll expect to have to go for one<br>
interpreter <-> one thread.<br>
I will definitely give it a try, but I expect some difficulties.<br>
<font color="#888888"><br>
Fabian<br>
</font><div><div></div><div class="h5"><br>
<br>
_______________________________________________<br>
KDevelop-devel mailing list<br>
<a href="mailto:KDevelop-devel@kdevelop.org">KDevelop-devel@kdevelop.org</a><br>
<a href="https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel" target="_blank">https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel</a><br>
</div></div></blockquote></div><br>