[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwrite-devel
Subject:    Re: subversions markers in icon border
From:       "Erlend Hamberg" <ehamberg () gmail ! com>
Date:       2008-12-18 23:15:32
Message-ID: ac30b3780812181515s4dcca3ccvb92f04441beb5dac () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Thu, Dec 18, 2008 at 23:13, Will Angenent <will.angenent@ntt.eu> wrote:

> I've been thinking about an overambitious project I'm looking into, and
> that's to have markers in the icon border showing which lines have been
> added/edited/deleted since the last cvs/git/svn commit. For example, see
> the green and blue things on the side of this screenshot of netbeans:
> http://www.collab.net/collabXchange/NetBeans/images/svn.gif
>

Very cool, indeed! I would love that. :)


> 2. Do I use cvs/svn/git libraries or command line tools? If I use
> libraries, how does this work when using/compiling kate when those ones
> aren't available? Am I better off writing a wrapper around the command
> line binaries cvs, svn, git? Or should it be some dynamic library
> loading thing?


I believe both svn and git both have a library you can use for getting the
information you need. Dynamic linking would probably be the best option.

3. To keep things up to date, regular calls to "cvs/svn/git status" will
> have to be made to see if a commit has been done in the background.
> Should this be done on a one second timer or something? An alternative
> for svn is to check the .svn/text-base directory for changes, since the
> commit will update a file in there, so I can use inotify/kdirwatch or
> something.


I would look into libsvn/libgit first. Polling for info every n seconds is
probably the way to go. I fear that using dirwatch or something similar
could break in the future if the repository layouts are changed.

-- 
Erlend Hamberg
ehamberg@gmail.com

[Attachment #5 (text/html)]

On Thu, Dec 18, 2008 at 23:13, Will Angenent <span \
dir="ltr">&lt;will.angenent@ntt.eu&gt;</span> wrote:<br><div \
class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid \
rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> I&#39;ve been \
thinking about an overambitious project I&#39;m looking into, and<br> that&#39;s to \
have markers in the icon border showing which lines have been<br> \
added/edited/deleted since the last cvs/git/svn commit. For example, see<br> the \
green and blue things on the side of this screenshot of netbeans:<br> <a \
href="http://www.collab.net/collabXchange/NetBeans/images/svn.gif" \
target="_blank">http://www.collab.net/collabXchange/NetBeans/images/svn.gif</a><br> \
</blockquote><div><br>Very cool, indeed! I would love that. \
:)<br>&nbsp;<br></div><blockquote class="gmail_quote" style="border-left: 1px solid \
rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">2. Do I use \
cvs/svn/git libraries or command line tools? If I use<br>

libraries, how does this work when using/compiling kate when those ones<br>
aren&#39;t available? Am I better off writing a wrapper around the command<br>
line binaries cvs, svn, git? Or should it be some dynamic library<br>
loading thing?</blockquote><div><br>I believe both svn and git both have a library \
you can use for getting the information you need. Dynamic linking would probably be \
the best option.<br><br></div><blockquote class="gmail_quote" style="border-left: 1px \
solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

3. To keep things up to date, regular calls to &quot;cvs/svn/git status&quot; \
will<br> have to be made to see if a commit has been done in the background.<br>
Should this be done on a one second timer or something? An alternative<br>
for svn is to check the .svn/text-base directory for changes, since the<br>
commit will update a file in there, so I can use inotify/kdirwatch or<br>
something.</blockquote><div><br>I would look into libsvn/libgit first. Polling for \
info every n seconds is probably the way to go. I fear that using dirwatch or \
something similar could break in the future if the repository layouts are \
changed.<br> </div></div><br>-- <br>Erlend Hamberg<br><a \
href="mailto:ehamberg@gmail.com">ehamberg@gmail.com</a><br><br>



_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic