Rev 2153: Add custom layout for apache repository. in http://people.samba.org/bzr/jelmer/bzr-svn/0.5
Jelmer Vernooij
jelmer at samba.org
Thu Dec 4 15:47:06 GMT 2008
At http://people.samba.org/bzr/jelmer/bzr-svn/0.5
------------------------------------------------------------
revno: 2153
revision-id: jelmer at samba.org-20081204154703-2y3q3lv34l8pz42u
parent: jelmer at samba.org-20081204152431-0sh4avkwpi0s8iyc
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.5
timestamp: Thu 2008-12-04 16:47:03 +0100
message:
Add custom layout for apache repository.
added:
layout/custom.py custom.py-20081204154502-sw8ifcafc1v6w190-1
modified:
layout/__init__.py layout.py-20080323165407-y9qw8nx4oykvoe1k-1
=== modified file 'layout/__init__.py'
--- a/layout/__init__.py 2008-11-12 11:05:31 +0000
+++ b/layout/__init__.py 2008-12-04 15:47:03 +0000
@@ -282,6 +282,7 @@
return None
repository_registry = RepositoryRegistry()
-# KDE:
repository_registry.register_lazy("283d02a7-25f6-0310-bc7c-ecb5cbfe19da",
- "bzrlib.plugins.svn.layout.standard", "InverseTrunkLayout1")
+ "bzrlib.plugins.svn.layout.custom", "KDELayout")
+repository_registry.register_lazy("13f79535-47bb-0310-9956-ffa450edef68",
+ "bzrlib.plugins.svn.layout.custom", "ApacheLayout")
=== added file 'layout/custom.py'
--- a/layout/custom.py 1970-01-01 00:00:00 +0000
+++ b/layout/custom.py 2008-12-04 15:47:03 +0000
@@ -0,0 +1,28 @@
+# Copyright (C) 2005-2007 Jelmer Vernooij <jelmer at samba.org>
+
+# 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 3 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, see <http://www.gnu.org/licenses/>.
+
+from bzrlib.plugins.svn.layout.standard import InverseTrunkLayout, TrunkLayout
+
+class KDELayout(InverseTrunkLayout):
+ """Layout for the KDE repository."""
+
+ def __init__(self):
+ InverseTrunkLayout.__init__(1)
+
+
+class ApacheLayout(TrunkLayout):
+ """Layout for the Apache repository."""
+
+
More information about the bazaar-commits
mailing list