Summary: | Integration of Mercurial | ||
---|---|---|---|
Product: | [Applications] dolphin | Reporter: | Arne Babenhauserheide <arne_bab> |
Component: | general | Assignee: | Peter Penz <peter.penz19> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | CC: | arne_bab, romain.thevenon |
Priority: | NOR | ||
Version: | 16.12.2 | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | OpenBSD | ||
Latest Commit: | Version Fixed In: | 4.8.0 | |
Attachments: | tortoisehg-kde.desktop version 0.0 |
Description
Arne Babenhauserheide
2008-06-23 11:24:10 UTC
Can you give me a status on this bug? Is there already someone working on Mercurial integration for KDE/Konqueror/Dolphin? Besides: The OS is slightly incorrect: Mercurial is written in Python and with that it's mostly OS independent (the Bug states OpenBSD - I'm quite sure that I am the one who did the mistake with that...). TortoiseHG currently uses gtk dialogs, and it is available on GNU/Linux systems as standalone via "hgtk". But there are also some Qt based GUI tools, though none of thee i as integrated as I'd wish them to be: - synchronize: http://pmpu.sharesource.org/ - commit: http://qct.sourceforge.net/ - logviewer: http://www.logilab.org/project/hgview more: http://www.selenic.com/mercurial/wiki/index.cgi/OtherTools > Is there already someone working on Mercurial integration > for KDE/Konqueror/Dolphin? I don't know honestly speaking. This task can be done without touching any code in Dolphin by creating a service menu (see http://techbase.kde.org/index.php?title=Development/Tutorials/Creating_Konqueror_Service_Menus for details). A lot of service menus are available at www.kde-apps.org, maybe someone already has written such a menu :-) For later KDE versions it is planned to provide a GUI to download such service menus without the need of a manual installation. Can a service menu add overlay icons to files (as TortoiseHG does)? - Example: http://tortoisehg.sourceforge.net/images/screenshots/tortoisehg-snapshot-overlayicons.png No, this would not be possible with a service menu. There are plans to make such kind of overlays possible, but I'm not sure whether we can make this available for KDE 4.3 already... I'd be very happy to see that kind of integration as soon as possible; it's just not nice to look at the Windows boxes of people for whom I just installed Mercurial (with TortoiseHG) and think "Damn, is that convenient - why don't I have that?" :) Is there another way to integrate it than by using service menus? > Is there another way to integrate it than by using service menus?
In Konqueror you could create a custom view as KPart plugin, but that's a lot of work and from my personal point of view no good approach...
Then it seems I'd better wait till the service menu has overlay icon support. Thank you! Can I let a service menu entry show only when a command completes successfully? I tried writing a service menu, but it doesn't seem to work. DId I miss something obvious? My desktop entry for synchronizing looks like this: [Desktop Entry] Type=Service ServiceTypes=KonqPopupMenu/Plugin MimeType=inode/directory;application/octet-stream Actions=hgSynchronize [Desktop Action hgSynchronize] Name=hgtk sync GenericName=Synchronize GenericName[de]=Synchronisieren Exec=hgtk sync Sorry for the noise - works now: ------ ------ ------ ------ ------ ------ [Desktop Entry] Type=Service ServiceTypes=KonqPopupMenu/Plugin MimeType=inode/directory;application/octet-stream; Actions=hgSynchronize [Desktop Action hgSynchronize] Name=hgtk sync GenericName=Synchronize GenericName[de]=Synchronisieren Exec=/bin/sh -c "cd %u ; hgtk sync" ------ ------ ------ ------ ------ ------ Is there a way to make this show up when clicking on a folder background, too? Created attachment 36835 [details]
tortoisehg-kde.desktop version 0.0
A reason I can think of is that there could have been a preloaded konqueror, so I had to open a new one two times. Short update: Dolphin for KDE 4.4 will provide a mechanism for version control plugins. Currently only a test version for SVN has been written and it works quite well. So I'd suggest not spending too much time with the service menu mechanism, as the new mechanism allows context sensitive disabling/enabling of the menu entries... Good to know - many thanks for your info! Context sensitive enabling and disabling was one thing I searched for but couldn't find in the guide. I'm anxious to see 4.4! Version tracking in Dolphin will help me to stay in the GUI instead of switching between GUI and shell all the time, so its one of the features which are very likely to do a huge difference to me. Luckily the 2nd 4.4 beta is afer my exams, else I wouldn't be able to reap out enough time for learning ;) Please install the kdesdk for SVN- and Git-support. I wohld not call this resolved, as the main part of the wish (Mercurial) still isn’t available. I tried adding the support myself, but did not find the proper integration points. Frankly I read over the code but didn’t know where to start adapting the git version to Mercurial. Git and Mercurial are very similar from their command set, so the adaption should not be too hard (and I’d gladly help with testing!). If there is no other bug specifically for Mercurial support, please reopen the Bug (or say OK and I’ll do it). In kdesdk for KDE 4.8 Mercurial is available. Wow, many thanks! You’re great! |