~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commit_signature_commands.py

  • Committer: Jonathan Riddell
  • Date: 2011-06-24 13:57:59 UTC
  • mto: This revision was merged to the branch mainline in revision 6003.
  • Revision ID: jriddell@canonical.com-20110624135759-263hx2et2kl1in39
change directory option to location argument

Show diffs side-by-side

added added

removed removed

Lines of Context:
111
111
                   type=str,),
112
112
            'revision', 
113
113
            'verbose',
114
 
            'directory',
115
114
          ]
 
115
    takes_args = ['location?']
116
116
 
117
117
    def run(self, acceptable_keys=None, revision=None, verbose=None,
118
 
                                                            directory=u'.'):
119
 
        bzrdir = _mod_bzrdir.BzrDir.open_containing(directory)[0]
 
118
                                                            location=u'.'):
 
119
        bzrdir = _mod_bzrdir.BzrDir.open_containing(location)[0]
120
120
        branch = bzrdir.open_branch()
121
121
        repo = branch.repository
122
122
        branch_config = branch.get_config()
163
163
                                gpg_strategy.do_verifications(revisions, repo)
164
164
        if all_verifiable:
165
165
               write(gettext(
166
 
                            "All commits signed with verifiable keys\n"))
 
166
                            "All commits signed with verifiable keys"))
167
167
               if verbose:
168
168
                   write(gpg_strategy.verbose_valid_message(result))
169
169
               return 0