Rev 1764: Only fetch signatures if that can be done cheaply. in file:///data/jelmer/bzr-svn/trunk/

Jelmer Vernooij jelmer at samba.org
Mon Sep 1 21:38:58 BST 2008


At file:///data/jelmer/bzr-svn/trunk/

------------------------------------------------------------
revno: 1764
revision-id: jelmer at samba.org-20080901203856-pz27las5fs2he10c
parent: jelmer at samba.org-20080901203749-buhe9rz2o97k94by
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: trunk
timestamp: Mon 2008-09-01 22:38:56 +0200
message:
  Only fetch signatures if that can be done cheaply.
modified:
  NEWS                           news-20061231030336-h9fhq245ie0de8bs-1
  fetch.py                       fetch.py-20060625004942-x2lfaib8ra707a8p-1
=== modified file 'NEWS'
--- a/NEWS	2008-09-01 15:06:42 +0000
+++ b/NEWS	2008-09-01 20:38:56 +0000
@@ -23,6 +23,8 @@
    * Create branches/ directory automatically if it didn't exist
      when pushing merged revisions.
 
+   * Only fetch signatures if they can be cheaply copied.
+
   BUG FIXES
 
    * Set bzr signature revision property during commit if possible.

=== modified file 'fetch.py'
--- a/fetch.py	2008-08-31 18:31:26 +0000
+++ b/fetch.py	2008-09-01 20:38:56 +0000
@@ -407,7 +407,11 @@
                                      self.revmeta.uuid, self.revmeta.branch_path,
                                      self.revmeta.revnum, rev)
 
-        signature = self.revmeta.revprops.get(SVN_REVPROP_BZR_SIGNATURE)
+        # Only fetch if it's cheap
+        if self.source.transport.has_capability("log-revprops"):
+            signature = self.revmeta.revprops.get(SVN_REVPROP_BZR_SIGNATURE)
+        else:
+            signature = None
 
         return (rev, signature)
 




More information about the bazaar-commits mailing list