Rev 395: Some minor random changes in http://people.samba.org/bzr/jelmer/bzr-svn/bzr.dev
Jelmer Vernooij
jelmer at samba.org
Sun Jan 14 04:11:54 GMT 2007
------------------------------------------------------------
revno: 395
revision-id: jelmer at samba.org-20070114041121-vbccc21zg45eu706
parent: jelmer at samba.org-20070110052456-z9werxhohglupk05
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: main
timestamp: Sun 2007-01-14 05:11:21 +0100
message:
Some minor random changes
modified:
TODO todo-20060729211917-2kpobww0zyvvo0j2-1
scheme.py scheme.py-20060516195850-95181aae6b272f9e
=== modified file 'TODO'
--- a/TODO 2007-01-08 17:39:06 +0000
+++ b/TODO 2007-01-14 04:11:21 +0000
@@ -1,3 +1,4 @@
+- simplify find_branches by using Transport.list_dir() ?
- make scheme name part of revision id
- fix commits in heavyweight checkouts somehow
- fix autorealm repository
=== modified file 'scheme.py'
--- a/scheme.py 2007-01-02 17:05:41 +0000
+++ b/scheme.py 2007-01-14 04:11:21 +0000
@@ -45,9 +45,7 @@
"""
parts = relpath.strip("/").split("/")
for i in range(0,len(parts)):
- if parts[i] == "trunk" or \
- parts[i] == "branches" or \
- parts[i] == "tags":
+ if parts[i] in ("trunk", "branches", "tags"):
return TrunkBranchingScheme(level=i)
return NoBranchingScheme()
@@ -73,6 +71,9 @@
class TrunkBranchingScheme(BranchingScheme):
+ """Standard Subversion repository layout. Each project contains three
+ directories `trunk', `tags' and `branches'.
+ """
def __init__(self, level=0):
self.level = level
@@ -114,6 +115,8 @@
return self.is_branch(path+"/trunk")
class NoBranchingScheme(BranchingScheme):
+ """Describes a scheme where there is just one branch, the
+ root of the repository."""
def is_branch(self, path):
"""See BranchingScheme.is_branch()."""
return path.strip("/") == ""
More information about the bazaar-commits
mailing list