Rev 10: Add a version_info and __version__ string. in http://bazaar.launchpad.net/~bzr/bzr-update-copyright/trunk
John Arbash Meinel
john at arbash-meinel.com
Mon Jan 11 18:19:03 GMT 2010
At http://bazaar.launchpad.net/~bzr/bzr-update-copyright/trunk
------------------------------------------------------------
revno: 10
revision-id: john at arbash-meinel.com-20100111181839-r90gzh3ycj2jueca
parent: john at arbash-meinel.com-20100111181245-jtr71baqd6bvjzjb
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: trunk
timestamp: Mon 2010-01-11 12:18:39 -0600
message:
Add a version_info and __version__ string.
-------------- next part --------------
=== modified file '__init__.py'
--- a/__init__.py 2010-01-11 18:12:45 +0000
+++ b/__init__.py 2010-01-11 18:18:39 +0000
@@ -13,7 +13,7 @@
# 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 Street, Fifth Floor, Boston, MA 02110-1301 USA
-#
+#
"""A plugin that uses last-modified information to determine copyright dates.
@@ -32,15 +32,19 @@
from bzrlib import (
commands,
errors,
+ _format_version_tuple,
mutabletree, # I wish we could make the hook registration fully lazy
option,
trace,
)
+version_info = (0, 1, 0, 'dev', 0)
+__version__ = _format_version_tuple(version_info)
+
class cmd_update_copyright(commands.Command):
"""Update the Copyright header for files using the bzr metadata.
-
+
With no extra arguments, 'bzr update-copyright' will check all versioned
files and update a Copyright header that is found. With '--only-changed' it
will only update files which are already marked as modified.
More information about the bazaar-commits
mailing list