Rev 884: Allow specifying path inside repository in svn-branching-scheme. in file:///data/jelmer/bzr-svn/0.4.8/
Jelmer Vernooij
jelmer at samba.org
Tue Mar 11 17:10:55 GMT 2008
At file:///data/jelmer/bzr-svn/0.4.8/
------------------------------------------------------------
revno: 884
revision-id:jelmer at samba.org-20080311171054-x5br3r07r8v3s845
parent: jelmer at samba.org-20080311170942-trfjr8wrqucpbojq
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.4.8
timestamp: Tue 2008-03-11 18:10:54 +0100
message:
Allow specifying path inside repository in svn-branching-scheme.
modified:
NEWS news-20061231030336-h9fhq245ie0de8bs-1
__init__.py __init__.py-20051008155114-eae558e6cf149e1d
=== modified file 'NEWS'
--- a/NEWS 2008-03-11 17:09:42 +0000
+++ b/NEWS 2008-03-11 17:10:54 +0000
@@ -6,6 +6,8 @@
* Don't provide find_repository() implementation. (#193814)
+ * Allow specifying path inside repository in svn-branching-scheme. (#190331)
+
FEATURES
* Add progress bar to fetch initialization code.
=== modified file '__init__.py'
--- a/__init__.py 2008-03-11 17:09:42 +0000
+++ b/__init__.py 2008-03-11 17:10:54 +0000
@@ -342,6 +342,7 @@
]
def run(self, location=".", set=False, repository_wide=False):
+ from bzrlib.bzrdir import BzrDir
from bzrlib.errors import BzrCommandError
from bzrlib.msgeditor import edit_commit_message
from bzrlib.repository import Repository
@@ -352,7 +353,8 @@
if scheme is None:
return ""
return "".join(map(lambda x: x+"\n", scheme.to_lines()))
- repos = Repository.open(location)
+ dir = BzrDir.open_containing(location)[0]
+ repos = dir.find_repository()
if not isinstance(repos, SvnRepository):
raise BzrCommandError("Not a Subversion repository: %s" % location)
if repository_wide:
More information about the bazaar-commits
mailing list