Rev 1: Empty shell in file:///v/home/vila/.bazaar/plugins/lpto/
Vincent Ladeuil
v.ladeuil+lp at free.fr
Fri Sep 12 17:01:52 BST 2008
At file:///v/home/vila/.bazaar/plugins/lpto/
------------------------------------------------------------
revno: 1
revision-id: v.ladeuil+lp at free.fr-20080912160152-37fev9u2dgcn7d9c
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: lpto
timestamp: Fri 2008-09-12 18:01:52 +0200
message:
Empty shell
added:
__init__.py __init__.py-20080912160131-v30mt2ve4pzprxqp-1
tests/ tests-20080912160131-v30mt2ve4pzprxqp-2
tests/__init__.py __init__.py-20080912160131-v30mt2ve4pzprxqp-3
tests/test_lpto.py test_lpto.py-20080912160131-v30mt2ve4pzprxqp-4
-------------- next part --------------
=== added file '__init__.py'
--- a/__init__.py 1970-01-01 00:00:00 +0000
+++ b/__init__.py 2008-09-12 16:01:52 +0000
@@ -0,0 +1,37 @@
+# Copyright (C) 2008 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
+
+"""Calculate Longest Path To Origin"""
+
+from bzrlib import commands
+
+class cmd_lpto(commands.Command):
+ def run(self):
+ pass
+
+commands.register_command(cmd_lpto)
+
+def load_tests(basic_tests, module, loader):
+ # This module shouldn't define any tests but I don't know how to report
+ # that. I prefer to update basic_tests with the other tests to detect
+ # unwanted tests and I think that's sufficient.
+
+ testmod_names = [
+ 'tests',
+ ]
+ basic_tests.addTest(loader.loadTestsFromModuleNames(
+ ["%s.%s" % (__name__, tmn) for tmn in testmod_names]))
+ return basic_tests
=== added directory 'tests'
=== added file 'tests/__init__.py'
--- a/tests/__init__.py 1970-01-01 00:00:00 +0000
+++ b/tests/__init__.py 2008-09-12 16:01:52 +0000
@@ -0,0 +1,27 @@
+# Copyright (C) 2008 by 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
+
+def load_tests(basic_tests, module, loader):
+ # This module shouldn't define any tests but I don't know how to report
+ # that. I prefer to update basic_tests with the other tests to detect
+ # unwanted tests and I think that's sufficient.
+
+ testmod_names = [
+ 'test_lpto',
+ ]
+ basic_tests.addTest(loader.loadTestsFromModuleNames(
+ ["%s.%s" % (__name__, tmn) for tmn in testmod_names]))
+ return basic_tests
=== added file 'tests/test_lpto.py'
--- a/tests/test_lpto.py 1970-01-01 00:00:00 +0000
+++ b/tests/test_lpto.py 2008-09-12 16:01:52 +0000
@@ -0,0 +1,21 @@
+# Copyright (C) 2008 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
+
+from bzrlib import (
+ tests,
+ )
+
+from bzrlib.plugins import lpto
More information about the bazaar-commits
mailing list