GithubHelp home page GithubHelp logo

informant's Introduction

informant

Informant keeps you in the loop while colaborating using svn and git

  • Keep tabs on svn changes being done on the repo. It evidently lets you know if your working copy is not upto date (TBD)
  • It reminds you that your working copy has staged / uncommited / untracked changes (done)
  • Notifications are sent on the desktop using notify

Cron Setting

PATH=:/home/hussain/Documents/MyRepos/informant PYTHONPATH=:/home/hussain/Documents/MyRepos/informant

0 * * * * DISPLAY=:0.0 svn.py <working_copy_path> <remote_url_of_repo> <icon_path> 2> /home/hussain/tmp/svn.log

0 * * * * DISPLAY=:0.0 gitt.py 2> /home/hussain/tmp/git.log

Tools used

  • pynotify
  • pysvn
  • arrow
  • GitPython

Challenges

  • pysvn and GitPython don't have good documentation. I am exploring it manually.
  • pynotify doesn't work properly. e.g. timeout and urgency don't work

TODO

  • Check Issues
  • informant for remote changes in both svn and git
  • I am thinking of using dulwich instead of GitPython

Contributing contributions welcome

informant's People

Contributors

hussaintamboli avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

priteshgudge

informant's Issues

git informant only works for master

I already have informant in place using cronjob to monitor one of my git project. I just noticed that it was working fine as long as I was working on the master. I was getting notifications saying

  • I just added some files
  • some files are unversioned, etc

But after switching to a branch called dev,

$ git checkout dev

I have stopped getting the notifications

Autolaunch error: X11 initialization failed error occurs when run as a cronjob

Cron:
0 * * * * svn.py 2> /home/hussain/tmp/svn.log

I found below error in svn.log

$ cat svn.log

/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
warnings.warn(str(e), _gtk.Warning)
** (svn.py:30689): WARNING **: Command line `dbus-launch --    autolaunch=b569e3e515ab65bef50c2d3000000008 --binary-syntax --close-stderr' exited with non-zero     exit status 1: Autolaunch error: X11 initialization failed.\n
Traceback (most recent call last):
 File "/home/hussain/Documents/MyRepos/informant/svn.py", line 98, in <module>
 hist.list_status_working_copy()
 File "/home/hussain/Documents/MyRepos/informant/svn.py", line 87, in list_status_working_copy
 raise errors.SvnError(e)
 errors.SvnError: Error in showing notification. Command line `dbus-launch -- autolaunch=b569e3e515ab65bef50c2d3000000008 --binary-syntax --close-stderr' exited with non-zero   exit status 1: Autolaunch error: X11 initialization failed.\n

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.