/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Szilveszter Farkas
  • Date: 2009-05-29 09:08:19 UTC
  • mfrom: (635.2.13 gtk)
  • Revision ID: szilveszter.farkas@gmail.com-20090529090819-lsg09k7mmdt6yjft
Merge commit message saving feature by Vincent.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
import bzrlib
38
38
import bzrlib.api
39
39
from bzrlib import (
 
40
    branch,
40
41
    config,
41
42
    errors,
42
43
    )
138
139
    plugin_cmds.register_lazy("cmd_%s" % cmd, aliases,
139
140
                              "bzrlib.plugins.gtk.commands")
140
141
 
 
142
def save_commit_messages(*args):
 
143
    from bzrlib.plugins.gtk import commit
 
144
    commit.save_commit_messages(*args)
 
145
 
 
146
branch.Branch.hooks.install_named_hook('post_uncommit',
 
147
                                       save_commit_messages,
 
148
                                       "Saving commit messages for gcommit")
141
149
 
142
150
import gettext
143
151
gettext.install('olive-gtk')