~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to meta.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-07-11 02:46:35 UTC
  • mfrom: (6017.1.2 test-isolation-speed)
  • Revision ID: pqm@pqm.ubuntu.com-20110711024635-f39c8kz23s347m1t
(spiv) Speed up TestCaseWithMemoryTransport._check_safety_net by reading the
 dirstate file directly rather than using WorkingTree.open(). (Andrew
 Bennetts)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2010  Martin von Gagern
2
 
#
3
 
# This file is part of bzr-bash-completion
4
 
#
5
 
# bzr-bash-completion free software: you can redistribute it and/or
6
 
# modify it under the terms of the GNU General Public License as
7
 
# published by the Free Software Foundation, either version 2 of the
8
 
# License, or (at your option) any later version.
9
 
#
10
 
# bzr-bash-completion is distributed in the hope that it will be
11
 
# useful, but WITHOUT ANY WARRANTY; without even the implied warranty
12
 
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
 
# General Public License for more details.
14
 
#
15
 
# You should have received a copy of the GNU General Public License
16
 
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
 
 
18
 
# http://doc.bazaar.canonical.com/developers/plugin-api.html#metadata-protocol
19
 
# describes these variables, which have to be imported into setup.py.
20
 
bzr_plugin_name = 'bash_completion'
21
 
bzr_commands = [ 'bash-completion' ]
22
 
 
23
 
# Have a look at bzrlib._format_version_tuple for info about version 5-tuples,
24
 
# and at http://packages.python.org/distribute/setuptools.html#specifying-your-project-s-version
25
 
# for information about how python versions do compare with setuptools
26
 
bzr_plugin_version = (1, 1, 1, 'dev', 0)
27
 
 
28
 
# http://doc.bazaar.canonical.com/developers/plugin-api.html#plugin-version
29
 
# describes another version tuple:
30
 
version_info = bzr_plugin_version
31
 
 
32
 
# And we also want a string representation, matching the output generated by
33
 
# bzrlib._format_version_tuple, but avoiding its sanity checks.
34
 
__version__ = '.'.join([str(x) for x in version_info[:3]])
35
 
if version_info[3] == 'final':
36
 
    __version__ = "%d.%d.%d" % version_info[:3]
37
 
elif version_info[4] == 0:
38
 
    __version__ = "%d.%d.%d%s" % version_info[:4]
39
 
else:
40
 
    __version__ = "%d.%d.%d%s%d" % version_info