Rev 119: Move version details to a separate file to remove duplication. in http://bazaar.launchpad.net/~bzr-loom-devs/bzr-loom/trunk/
Robert Collins
robertc at robertcollins.net
Wed Jun 30 02:56:11 BST 2010
At http://bazaar.launchpad.net/~bzr-loom-devs/bzr-loom/trunk/
------------------------------------------------------------
revno: 119
revision-id: robertc at robertcollins.net-20100630015611-3442pf2uf5ogrk5k
parent: robertc at robertcollins.net-20100629072549-8sw1estpvchhsuya
committer: Robert Collins <robertc at robertcollins.net>
branch nick: trunk
timestamp: Wed 2010-06-30 11:56:11 +1000
message:
Move version details to a separate file to remove duplication.
=== modified file '__init__.py'
--- a/__init__.py 2010-06-18 04:44:52 +0000
+++ b/__init__.py 2010-06-30 01:56:11 +0000
@@ -53,7 +53,7 @@
show you the different between the thread below yours, and your thread.
"""
-version_info = (2, 1, 1, 'dev', 0)
+from version import bzr_plugin_version as version_info
import bzrlib.builtins
import bzrlib.commands
=== modified file 'setup.py'
--- a/setup.py 2010-04-20 11:28:12 +0000
+++ b/setup.py 2010-06-30 01:56:11 +0000
@@ -20,9 +20,7 @@
"Bazaar-NG Loom branch format 6\n":"Loom branch format 6",
}
-bzr_plugin_version = (2, 2, 1, 'dev', 0)
-bzr_minimum_version = (1, 0, 0)
-bzr_maximum_version = None
+from version import *
if __name__ == '__main__':
setup(name="Loom",
=== added file 'version.py'
--- a/version.py 1970-01-01 00:00:00 +0000
+++ b/version.py 2010-06-30 01:56:11 +0000
@@ -0,0 +1,28 @@
+# Loom, a plugin for bzr to assist in developing focused patches.
+# Copyright (C) 2010 Canonical Limited.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License version 2 as published
+# by the Free Software Foundation.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+#
+
+"""Versioning information for bzr-loom."""
+
+__all__ = [
+ 'bzr_plugin_version',
+ 'bzr_minimum_version',
+ 'bzr_maximum_version',
+ ]
+
+bzr_plugin_version = (2, 2, 1, 'dev', 0)
+bzr_minimum_version = (2, 2, 0)
+bzr_maximum_version = None
More information about the bazaar-commits
mailing list