/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: Vincent Ladeuil
  • Date: 2010-02-24 08:56:08 UTC
  • Revision ID: v.ladeuil+lp@free.fr-20100224085608-ybyx6m452lc5iua2
Open 0.99.0 for development.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
gconflicts        GTK+ conflicts. 
23
23
gdiff             Show differences in working tree in a GTK+ Window. 
24
24
ginit             Initialise a new branch.
 
25
ginfo             GTK+ branch info dialog
25
26
gloom             GTK+ loom browse dialog
26
27
gmerge            GTK+ merge dialog
27
28
gmissing          GTK+ missing revisions dialog. 
58
59
    )
59
60
from bzrlib.commands import plugin_cmds
60
61
 
61
 
from info import (
62
 
    bzr_plugin_version as version_info,
63
 
    bzr_compatible_versions,
64
 
    )
 
62
 
 
63
version_info = (0, 99, 0, 'dev', 1)
65
64
 
66
65
if version_info[3] == 'final':
67
66
    version_string = '%d.%d.%d' % version_info[:3]
69
68
    version_string = '%d.%d.%d%s%d' % version_info
70
69
__version__ = version_string
71
70
 
72
 
bzrlib.api.require_any_api(bzrlib, bzr_compatible_versions)
 
71
COMPATIBLE_BZR_VERSIONS = [(1, 6, 0), (1, 7, 0), (1, 8, 0), (1, 9, 0),
 
72
                           (1, 10, 0), (1, 11, 0), (1, 12, 0), (1, 13, 0),
 
73
                           (1, 15, 0),
 
74
                           (1, 17, 0),
 
75
                           (2, 1, 0),
 
76
                           ]
 
77
 
 
78
bzrlib.api.require_any_api(bzrlib, COMPATIBLE_BZR_VERSIONS)
73
79
 
74
80
if __name__ != 'bzrlib.plugins.gtk':
75
81
    from bzrlib.trace import warning
128
134
    "gconflicts": [],
129
135
    "gdiff": [],
130
136
    "ginit": [],
 
137
    "ginfo": [],
131
138
    "gmerge": [],
132
139
    "gmissing": [],
133
140
    "gpreferences": [],
136
143
    "gsend": [],
137
144
    "gstatus": ["gst"],
138
145
    "gtags": [],
139
 
    "visualise": ["visualize", "vis", "viz", 'glog'],
 
146
    "visualise": ["visualize", "vis", "viz"],
140
147
    }
141
148
 
142
149
try:
158
165
                                       save_commit_messages,
159
166
                                       "Saving commit messages for gcommit")
160
167
 
 
168
import gettext
 
169
gettext.install('olive-gtk')
 
170
 
 
171
# Let's create a specialized alias to protect '_' from being erased by other
 
172
# uses of '_' as an anonymous variable (think pdb for one).
 
173
_i18n = gettext.gettext
 
174
 
161
175
class NoDisplayError(errors.BzrCommandError):
162
176
    """gtk could not find a proper display"""
163
177
 
197
211
            reload(sys)
198
212
            sys.setdefaultencoding(default_encoding)
199
213
    return basic_tests
200
 
 
201
 
 
202
 
def _i18n(text):
203
 
    # Stub until we support proper i18n
204
 
    return text