Rev 28: Support send-email command in other directories than the root of a branch. in file:///home/jelmer/bzr-email/cmd/

Jelmer Vernooij jelmer at samba.org
Wed Jun 13 21:55:36 BST 2007


At file:///home/jelmer/bzr-email/cmd/

------------------------------------------------------------
revno: 28
revision-id: jelmer at samba.org-20070613205535-v04wbiiq4z7dce5i
parent: jelmer at samba.org-20070519095101-i9ovqgj0d5e728cg
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: cmd
timestamp: Wed 2007-06-13 22:55:35 +0200
message:
  Support send-email command in other directories than the root of a branch.
modified:
  __init__.py                    __init__.py-20051018071212-f1765ec4521cab0b
=== modified file '__init__.py'
--- a/__init__.py	2007-03-19 15:33:34 +0000
+++ b/__init__.py	2007-06-13 20:55:35 +0000
@@ -71,10 +71,10 @@
 
     """
     takes_args = ['branch?']
-    takes_options = ['revision','dry-run']
+    takes_options = ['revision', 'dry-run']
 
     def run(self, branch='.', revision=None,dry_run=False):
-        br = Branch.open(branch)
+        br = Branch.open_containing(branch)[0]
 
         if revision is None:
             revs = [br.last_revision()]




More information about the bazaar-commits mailing list