Bazaar VCS integration ideas

Aleix Pol aleixpol at kde.org
Sat Jan 3 01:17:43 UTC 2009


Yes, we can integrate pyqt via kross (yes, i know, it rocks a lot :D)

On Sat, Jan 3, 2009 at 12:04 AM, Andreas Pakulat <apaku at gmx.de> wrote:

> On 02.01.09 22:47:02, Evgeniy Ivanov wrote:
> > Happy New Year folks :)
> >
> > Some time ago I have found nice thing called QBzr:
> > http://bazaar-vcs.org/QBzr
> > AFAIK it's developed by one of K developers.
> > But it's a plugin and not a separate application like QGit.
> >
> > It has nice UI and functionality, which is in todo for our bzr plugin.
> > And many things could be reused since it's a kind of a library and it's
> > in python.
> >
> > It works in such way: bzr qCOMMAND (like commit, log, etc).
> >
> > I did some small experiments:
> >
> > #It will open a window as a Qt application, but AFAIK we can embed it,
> > but not sure
> > #I didn't set current dir (dir with repo), it's set by application's
> > active dir.
> > >>> from bzrlib.plugins.qbzr import cmd_qlog
> > >>> cmd_obj = cmd_qlog()
> > >>> run = cmd_obj.run_argv_aliases
> > >>> run([])
> >
> > #It's better, since we control tree object (repo dir) and some other
> > things (we will not create application in KD)
> > >>> import sys
> > >>> from PyQt4 import QtGui, QtCore
> > >>> from bzrlib import workingtree
> > >>> from bzrlib.plugins.qbzr import CommitWindow
> > >>> tree =
> > workingtree.WorkingTree.open('/home/kde-devel/kdevelop-projects/bazaar')
> > >>> app = QtGui.QApplication(sys.argv)
> > >>> cm_window = CommitWindow(tree, [])
> > >>> cm_window.show()
>
> Can we embed these widgets into our mainwindow? For example the log window
> would need to be inside a toolview, not a standalone window.


> Quite frankly, I have no idea wether this will work out or not. It
> basically boils down to: How much control do we have over those
> windows/wigets? Can we for example pre-select the file that should be
> committed in the commit-window? Can we limit the revisions to be shown in
> a log window? Does this really work with Kross (I have no idea wether PyQt4
> code works with C++ code via kross...)? Last but not least: Is this
> available in distro's? How many dependencies do we get with this?
>
> If you can play around with the code and answer the above questions, then
> we can make a decision wether to go down that road completely or not :)
>
Well, I think that it will be better than nowadays code, so I'm all for it.

If you need any help just tell me. I'm having exams soon but I'd love to
help.

Aleix

>
> Andreas
>
> --
> You will gain money by a fattening action.
>
> _______________________________________________
> KDevelop-devel mailing list
> KDevelop-devel at kdevelop.org
> https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20090103/c7e1a9ce/attachment.html>


More information about the KDevelop-devel mailing list