[Checkins] SVN: zodbupdate/trunk/ After renaming the project, update all references to `zodbupgrade` to
Christian Theune
ct at gocept.com
Tue Jun 16 02:48:59 EDT 2009
Log message for revision 101032:
After renaming the project, update all references to `zodbupgrade` to
`zodbupdate`.
Changed:
U zodbupdate/trunk/README.txt
U zodbupdate/trunk/buildout.cfg
U zodbupdate/trunk/setup.py
A zodbupdate/trunk/src/zodbupdate/
U zodbupdate/trunk/src/zodbupdate/analyze.py
U zodbupdate/trunk/src/zodbupdate/main.py
U zodbupdate/trunk/src/zodbupdate/tests.py
D zodbupdate/trunk/src/zodbupgrade/
-=-
Modified: zodbupdate/trunk/README.txt
===================================================================
--- zodbupdate/trunk/README.txt 2009-06-16 06:46:29 UTC (rev 101031)
+++ zodbupdate/trunk/README.txt 2009-06-16 06:48:59 UTC (rev 101032)
@@ -1,6 +1,6 @@
===============================================================
-zodbupgrade - Upgrade existing databases to match your software
-===============================================================
+zodbupdate - Update existing databases to match your software
+=============================================================
This package provides a tool that automatically identifies and updates
references from persistent objects to classes that are in the process of being
@@ -18,16 +18,16 @@
Usage
=====
-Installing the egg of this tool provides a console script `zodbupgrade` which
+Installing the egg of this tool provides a console script `zodbupdate` which
you can call giving either a FileStorage filename or a configuration file
defining a storage::
- $ zodbupgrade -f Data.fs
- $ zodbupgrade -c zodb.conf
+ $ zodbupdate -f Data.fs
+ $ zodbupdate -c zodb.conf
Detailed usage information is available:
- $ zodbupgrade -h
+ $ zodbupdate -h
Custom software/eggs
--------------------
@@ -40,14 +40,14 @@
this configuration::
[buildout]
- parts += zodbupgrade
+ parts += zodbupdate
- [zodbupgrade]
+ [zodbupdate]
recipe = zc.recipe.eggs
- eggs = zodbupgrade
+ eggs = zodbupdate
<list additional eggs here>
-If you do not install `zodbupgrade` together with the necessary software it
+If you do not install `zodbupdate` together with the necessary software it
will report missing classes and not touch your database.
Non-FileStorage configurations
@@ -62,6 +62,6 @@
storage 1
</zeoclient>
-And then running `zodbupgrade` using:
+And then running `zodbupdate` using:
- $ zodbupgrade -c zeo.conf
+ $ zodbupdate -c zeo.conf
Modified: zodbupdate/trunk/buildout.cfg
===================================================================
--- zodbupdate/trunk/buildout.cfg 2009-06-16 06:46:29 UTC (rev 101031)
+++ zodbupdate/trunk/buildout.cfg 2009-06-16 06:48:59 UTC (rev 101032)
@@ -1,11 +1,11 @@
[buildout]
develop = .
-parts = zodbupgrade test
+parts = zodbupdate test
[test]
recipe = zc.recipe.testrunner
-eggs = zodbupgrade
+eggs = zodbupdate
-[zodbupgrade]
+[zodbupdate]
recipe = zc.recipe.egg
-eggs = zodbupgrade
+eggs = zodbupdate
Modified: zodbupdate/trunk/setup.py
===================================================================
--- zodbupdate/trunk/setup.py 2009-06-16 06:46:29 UTC (rev 101031)
+++ zodbupdate/trunk/setup.py 2009-06-16 06:48:59 UTC (rev 101032)
@@ -16,10 +16,10 @@
read = lambda x:open(x).read()
-setup(name='zodbupgrade',
+setup(name='zodbupdate',
author='Zope Developers',
author_email='zodb-dev at zope.org',
- url='http://www.python.org/pypi/zodbupgrade',
+ url='http://www.python.org/pypi/zodbupdate',
license='ZPL 2.1',
description=
'Update ZODB class references for moved or renamed classes.',
@@ -39,4 +39,4 @@
],
entry_points = dict(
console_scripts =
- ['zodbupgrade = zodbupgrade.main:main']))
+ ['zodbupdate = zodbupdate.main:main']))
Property changes on: zodbupdate/trunk/src/zodbupdate
___________________________________________________________________
Added: svn:mergeinfo
+
Modified: zodbupdate/trunk/src/zodbupdate/analyze.py
===================================================================
--- zodbupdate/trunk/src/zodbupgrade/analyze.py 2009-06-16 06:41:17 UTC (rev 101030)
+++ zodbupdate/trunk/src/zodbupdate/analyze.py 2009-06-16 06:48:59 UTC (rev 101032)
@@ -21,9 +21,9 @@
import pickletools
import sys
import transaction
-import zodbupgrade.picklefilter
+import zodbupdate.picklefilter
-logger = logging.getLogger('zodbupgrade')
+logger = logging.getLogger('zodbupdate')
class Updater(object):
@@ -38,7 +38,7 @@
def __call__(self):
t = transaction.Transaction()
self.storage.tpc_begin(t)
- t.note('Updated factory references using `zodbupgrade`.')
+ t.note('Updated factory references using `zodbupdate`.')
for oid, serial, current in self.records:
new = self.update_record(current)
@@ -69,7 +69,7 @@
for i in range(2):
# ZODB data records consist of two concatenated pickles, so the
# following needs to be done twice:
- new += zodbupgrade.picklefilter.filter(
+ new += zodbupdate.picklefilter.filter(
self.update_operation, old)
return new
Modified: zodbupdate/trunk/src/zodbupdate/main.py
===================================================================
--- zodbupdate/trunk/src/zodbupgrade/main.py 2009-06-16 06:41:17 UTC (rev 101030)
+++ zodbupdate/trunk/src/zodbupdate/main.py 2009-06-16 06:48:59 UTC (rev 101032)
@@ -17,7 +17,7 @@
import logging
import optparse
import sys
-import zodbupgrade.analyze
+import zodbupdate.analyze
parser = optparse.OptionParser(
@@ -68,9 +68,9 @@
level = logging.INFO
logging.getLogger().addHandler(logging.StreamHandler())
logging.getLogger().setLevel(level)
- logging.getLogger('zodbupgrade').addFilter(duplicate_filter)
+ logging.getLogger('zodbupdate').addFilter(duplicate_filter)
- updater = zodbupgrade.analyze.Updater(storage,
+ updater = zodbupdate.analyze.Updater(storage,
dry=options.dry_run,
ignore_missing=options.ignore_missing)
try:
Modified: zodbupdate/trunk/src/zodbupdate/tests.py
===================================================================
--- zodbupdate/trunk/src/zodbupgrade/tests.py 2009-06-16 06:41:17 UTC (rev 101030)
+++ zodbupdate/trunk/src/zodbupdate/tests.py 2009-06-16 06:48:59 UTC (rev 101032)
@@ -24,8 +24,8 @@
import transaction
import types
import unittest
-import zodbupgrade.analyze
-import zodbupgrade.picklefilter
+import zodbupdate.analyze
+import zodbupdate.picklefilter
class IgnoringFilter(object):
@@ -36,10 +36,10 @@
ignore = IgnoringFilter()
-class ZODBUpgradeTests(unittest.TestCase):
+class ZODBUpdateTests(unittest.TestCase):
def setUp(self):
- zodbupgrade.analyze.logger.addFilter(ignore)
+ zodbupdate.analyze.logger.addFilter(ignore)
sys.modules['module1'] = types.ModuleType('module1')
class Factory(persistent.Persistent):
@@ -58,7 +58,7 @@
self.db.close()
self.storage = ZODB.FileStorage.FileStorage(self.dbfile)
- updater = zodbupgrade.analyze.Updater(self.storage, **args)
+ updater = zodbupdate.analyze.Updater(self.storage, **args)
updater()
self.storage.close()
@@ -69,7 +69,7 @@
return updater
def tearDown(self):
- zodbupgrade.analyze.logger.removeFilter(ignore)
+ zodbupdate.analyze.logger.removeFilter(ignore)
del sys.modules['module1']
self.db.close()
@@ -177,7 +177,7 @@
def assertArgCode(self, result, code, arg):
self.assertEquals(
result,
- zodbupgrade.picklefilter.to_pickle_chunk(code, arg))
+ zodbupdate.picklefilter.to_pickle_chunk(code, arg))
def test_sanity_check(self):
# Check binary compatibility on simple "real" pickle
@@ -352,6 +352,6 @@
def test_suite():
suite = unittest.TestSuite()
- suite.addTest(unittest.makeSuite(ZODBUpgradeTests))
+ suite.addTest(unittest.makeSuite(ZODBUpdateTests))
suite.addTest(unittest.makeSuite(PickleFilterTests))
return suite
More information about the Checkins
mailing list