Rev 1: initial plugin for testing an xdelta backed repository. in http://bzr.arbash-meinel.com/plugins/xdelta_repo

John Arbash Meinel john at arbash-meinel.com
Fri Feb 20 18:54:09 GMT 2009


At http://bzr.arbash-meinel.com/plugins/xdelta_repo

------------------------------------------------------------
revno: 1
revision-id: john at arbash-meinel.com-20090220185346-ezbwh3bm1o3skyda
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: xdelta_repo
timestamp: Fri 2009-02-20 12:53:46 -0600
message:
  initial plugin for testing an xdelta backed repository.
-------------- next part --------------
=== added file '__init__.py'
--- a/__init__.py	1970-01-01 00:00:00 +0000
+++ b/__init__.py	2009-02-20 18:53:46 +0000
@@ -0,0 +1,47 @@
+# xdelta_repo, a bzr plugin providing new compression logic.
+# Copyright (C) 2009 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
+#
+
+"""Use xdelta as the compression methodology for bzr storage.
+"""
+
+
+
+from bzrlib.bzrdir import format_registry
+from bzrlib.repository import format_registry as repo_registry
+format_registry.register_metadir('xd',
+    'bzrlib.plugins.xdelta_repo.repofmt.RepositoryFormatPackXDelta',
+    help='pack-0.92 with btree index and xdelta. '
+        'Please read '
+        'http://doc.bazaar-vcs.org/latest/developers/development-repo.html '
+        'before use.',
+    branch_format='bzrlib.branch.BzrBranchFormat7',
+    tree_format='bzrlib.workingtree.WorkingTreeFormat5',
+    hidden=False,
+    experimental=True,
+    )
+
+repo_registry.register_lazy(
+    'Bazaar development format - btree+xdelta (needs bzr.dev from 1.13)\n',
+    'bzrlib.plugins.groupcompress.repofmt',
+    'RepositoryFormatPackXDelta',
+    )
+
+
+def load_tests(standard_tests, module, loader):
+    standard_tests.addTests(loader.loadTestsFromModuleNames(
+        ['bzrlib.plugins.xdelta_repo.tests']))
+    return standard_tests

=== added directory 'tests'
=== added file 'tests/__init__.py'
--- a/tests/__init__.py	1970-01-01 00:00:00 +0000
+++ b/tests/__init__.py	2009-02-20 18:53:46 +0000
@@ -0,0 +1,28 @@
+# Copyright (C) 2009 Canonical Ltd
+#
+# 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
+#
+
+
+"""Tests for the xdelta_repo bzr plugin."""
+
+
+def load_tests(standard_tests, module, loader):
+    test_modules = [
+        'xdelta_repo',
+        ]
+    standard_tests.addTests(loader.loadTestsFromModuleNames(
+        ['bzrlib.plugins.xdelta_repo.tests.test_' + name for
+         name in test_modules]))
+    return standard_tests

=== added file 'tests/test_xdelta_repo.py'
--- a/tests/test_xdelta_repo.py	1970-01-01 00:00:00 +0000
+++ b/tests/test_xdelta_repo.py	2009-02-20 18:53:46 +0000
@@ -0,0 +1,17 @@
+# Copyright (C) 2009 Canonical Ltd
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# 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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
+"""Direct tests for xdelta_repo."""

=== added file 'xdelta_repo.py'
--- a/xdelta_repo.py	1970-01-01 00:00:00 +0000
+++ b/xdelta_repo.py	2009-02-20 18:53:46 +0000
@@ -0,0 +1,18 @@
+# Copyright (C) 2009 Canonical Ltd
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# 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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
+""""""
+



More information about the bazaar-commits mailing list