Rev 6532: (jameinel) Merge the 2.5 branch. (Jelmer Vernooij) in file:///srv/pqm.bazaar-vcs.org/archives/thelove/bzr/%2Btrunk/

Patch Queue Manager pqm at pqm.ubuntu.com
Thu Jul 5 14:26:43 UTC 2012


At file:///srv/pqm.bazaar-vcs.org/archives/thelove/bzr/%2Btrunk/

------------------------------------------------------------
revno: 6532 [merge]
revision-id: pqm at pqm.ubuntu.com-20120705142642-iacrlxz8rnyti9zh
parent: pqm at pqm.ubuntu.com-20120626160649-9ye58ozs6qgiuhkt
parent: jelmer at samba.org-20120629081232-h0yexc1e9tezazrn
committer: Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Thu 2012-07-05 14:26:42 +0000
message:
  (jameinel) Merge the 2.5 branch. (Jelmer Vernooij)
modified:
  bzrlib/gpg.py                  gpg.py-20051017065112-8654536d415dacc6
  bzrlib/tests/test_gpg.py       testgpg.py-20051017042228-9276cd40a784c93c
  doc/en/release-notes/bzr-2.5.txt bzr2.5.txt-20110708125756-587p0hpw7oke4h05-1
=== modified file 'bzrlib/gpg.py'
--- a/bzrlib/gpg.py	2012-03-12 12:35:59 +0000
+++ b/bzrlib/gpg.py	2012-06-29 08:12:32 +0000
@@ -213,7 +213,7 @@
             # use the user email address
             key = config.extract_email_address(self._config_stack.get('email'))
         return [self._config_stack.get('gpg_signing_command'), '--clearsign',
-                '-u', key, '--no-tty']
+                '-u', key]
 
     def sign(self, content):
         if isinstance(content, unicode):

=== modified file 'bzrlib/tests/test_gpg.py'
--- a/bzrlib/tests/test_gpg.py	2012-02-26 19:21:01 +0000
+++ b/bzrlib/tests/test_gpg.py	2012-06-26 23:04:30 +0000
@@ -51,7 +51,7 @@
         self.my_gpg = gpg.GPGStrategy(FakeConfig())
 
     def test_signing_command_line(self):
-        self.assertEqual(['false',  '--clearsign', '-u', 'amy at example.com', '--no-tty'],
+        self.assertEqual(['false',  '--clearsign', '-u', 'amy at example.com'],
                          self.my_gpg._command_line())
 
     def test_signing_command_line_from_default(self):
@@ -60,7 +60,7 @@
 email=Amy <amy at example.com>
 gpg_signing_key=default
 gpg_signing_command=false'''))
-        self.assertEqual(['false',  '--clearsign', '-u', 'amy at example.com', '--no-tty'],
+        self.assertEqual(['false',  '--clearsign', '-u', 'amy at example.com'],
                          my_gpg._command_line())
 
     def test_signing_command_line_from_email(self):
@@ -68,7 +68,7 @@
         my_gpg = gpg.GPGStrategy(FakeConfig('''
 email=Amy <amy at example.com>
 gpg_signing_command=false'''))
-        self.assertEqual(['false',  '--clearsign', '-u', 'amy at example.com', '--no-tty'],
+        self.assertEqual(['false',  '--clearsign', '-u', 'amy at example.com'],
                          my_gpg._command_line())
 
     def test_checks_return_code(self):

=== modified file 'doc/en/release-notes/bzr-2.5.txt'
--- a/doc/en/release-notes/bzr-2.5.txt	2012-06-18 11:43:07 +0000
+++ b/doc/en/release-notes/bzr-2.5.txt	2012-06-29 08:12:32 +0000
@@ -32,6 +32,8 @@
 .. Fixes for situations where bzr would previously crash or give incorrect
    or undesirable results.
 
+* Revert use of --no-tty when gpg signing commits. (Jelmer Vernooij, #1014570)
+
 Documentation
 *************
 




More information about the bazaar-commits mailing list