Rev 1518: Add function for determining whether to push merged revisions. in http://people.samba.org/bzr/jelmer/bzr-svn/trunk
Jelmer Vernooij
jelmer at samba.org
Sat Aug 2 15:44:03 BST 2008
At http://people.samba.org/bzr/jelmer/bzr-svn/trunk
------------------------------------------------------------
revno: 1518
revision-id: jelmer at samba.org-20080802144401-r10ipp4clvm1i45l
parent: jelmer at samba.org-20080802112059-vsot1vbdsurwr75m
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.4
timestamp: Sat 2008-08-02 16:44:01 +0200
message:
Add function for determining whether to push merged revisions.
modified:
layout.py layout.py-20080323165407-y9qw8nx4oykvoe1k-1
mapping3/__init__.py __init__.py-20080502174630-9324zh25kka98vlw-1
=== modified file 'layout.py'
--- a/layout.py 2008-07-03 20:13:34 +0000
+++ b/layout.py 2008-08-02 14:44:01 +0000
@@ -26,6 +26,15 @@
"""
raise NotImplementedError
+ def push_merged_revisions(self, project=""):
+ """Determine whether or not right hand side (merged) revisions should be pushed.
+
+ Defaults to False.
+
+ :param project: Name of the project.
+ """
+ return False
+
def get_branch_path(self, name, project=""):
"""Return the path at which the branch with specified name should be found.
=== modified file 'mapping3/__init__.py'
--- a/mapping3/__init__.py 2008-07-23 00:35:03 +0000
+++ b/mapping3/__init__.py 2008-08-02 14:44:01 +0000
@@ -120,6 +120,13 @@
# Na, na, na...
return self.scheme.is_tag_parent(path)
+ def push_merged_revisions(self, project=""):
+ try:
+ self.scheme.get_branch_path("somebranch")
+ return True
+ except NotImplementedError:
+ return False
+
def get_stored_scheme(repository):
"""Retrieve the stored branching scheme, either in the repository
More information about the bazaar-commits
mailing list