29 June, 2008

Git plugin seems to be broken by 3rd party

Few days ago I installed OpenSUSE 11.0. Yesterday I wrote some code, but had to build Qt4 and KDE4 to compile my new code. Today I was busy with playing with templates in my code (did some funny mistakes and lost a lot of time). Now I've noticed failure in tests... Even with old code!

QDEBUG : GitInitTest::testInitAndCommit() (27893)/?[0;34m GitJob::start?[0m: Execute git command: "git-commit testfile -m 'KDevelop'\''s Test commit'"
QDEBUG : GitInitTest::testInitAndCommit() (27893)/?[0;34m GitJob::slotReceivedStderr?[0m: received error:
QDEBUG : GitInitTest::testInitAndCommit() (27893)/?[0;34m GitJob::slotReceivedStderr?[0m: "
*** Please tell me who you are.


git config --global user.email "you@example.com"
git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: empty ident not allowed"
FAIL! : GitInitTest::testInitAndCommit() 'j->exec()' returned FALSE. ()

But I have a proper ~/.gitconfig and can manually run this command. I think it's some Qt related bug (looks like QProcess doesn't work properly with some environment variable).

Tomorrow I will rebuild everything, if you have any ideas feel free to comment ;)

21 June, 2008

git plugin is inside kdevplatform's svn :)

eivanov * r822862 plugins/trunk/KDE/kdevplatform/plugins/ (29 files in 4 dirs):
Added gitplugin with basic functionality. It can be used to create git-based projects ('git init' and 'git add' would be used) and it can d
o 'git add/commit/remove' inside Projects View. Aslo there are some little tests and another code whish is not used now. Somewhere the code needs cleanup, but it's ok.

You may get kdevplatform + kdevelop and try it :) And even bugreport :D

Now KDevelop has basic Git support!

Give up, Centralized Version Control systems, it's time of DVCS! :)

Before giving you a keyboard-speech I want to say “Thank you” to Alexandr Dymo (adymo), Andreas Pakulat (apaku), Vladimir Prus (volodya) and other folks from KDevelop team for their help. And of course I would like to thank Shawn O. Pearce from git for helping on the first stage.

This month was hard for me: I had serious family problems, exams, was tired and upset, so did a lot of ugly bugs (ok, stopping wining: they where pretty enough). But now it seems that bad things have gone: my dear granny is ok now (as it can be, when somebody has cancer), I will have the last exams next week and finish my semester. Also now I have a basic git support in KDevelop.
Few things about development. As a template I took cvs plugin, so it was really easy to implement my git plugin, I had to think only about few things. After speaking with Shawn O. Pearce (he develops Eclipse Git plugin, and also GSoC git admin this year) my mentor and I decided to use cmdline iface (my project's task is to bring Git to KDevelop and not to implement C++ Git): that is good since CVS uses cmdline iface too. So... I just rewrote CVS-related code, changed some interfaces (now we have IDistributedVersionControl and ICentralizedVersionControl based on IBasicVersionControl). Also I have fixed some bugs in SVN (minor fix) and CVS plugins (was really broken), so if you don't understand DVCS rules, enjoy old toys like CVS and SVN.
Screenshots time (not so sexy, but if you like git and KDevelop you would like to see):

You may get gitplugin from http://repo.or.cz/w/kdevelopdvcssupport.git (branch my or GitPlugin). You can get only plugins/git and plugins/CMakeLists.txt and use kdevplatform from KDE's SVN. I hope to push gitplugin to the SVN, so maybe you just have to update your kdevplatform directory. Some important features like clone, etc are ready, but required some love, so I will finish them only next week.

After next week I will have much more time to code (I hope about 40 hours per week), so will have better results :)
Stay tuned!

07 June, 2008

First time of KDevelo's git plugin

More screenshots and download link later ;)

Kapman's time!

I've found a new cool KDE 4.1 stuff :)

06 June, 2008


«Не откладывай на завтра то, что можно сделать сегодня».
«Человек полагает, а Бог располагает».
Сколько мудрости в этих пословицах... А я делал точные расчёты для всего, и в итоге всё сорвалось из-за непредвиденных семейных обстоятельств...
Хотя, не так и всё плохо. Дальше должно всё лишь налаживаться, а это хорошо.

02 June, 2008

My GSoC's project graphics view

I like such things (especially git things):
The blue one is my. And the green line describes kdevplatform's svn.