Rev 1771: more efficient pushing into empty repository. in file:///data/jelmer/bzr-svn/trunk/

Jelmer Vernooij jelmer at samba.org
Mon Sep 1 23:41:07 BST 2008


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

------------------------------------------------------------
revno: 1771
revision-id: jelmer at samba.org-20080901224104-dta2muxbh239zi03
parent: jelmer at samba.org-20080901223427-hq17p9awh7m9mc2k
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: trunk
timestamp: Tue 2008-09-02 00:41:04 +0200
message:
  more efficient pushing into empty repository.
modified:
  repository.py                  repository.py-20060306123302-1f8c5069b3fe0265
=== modified file 'repository.py'
--- a/repository.py	2008-09-01 22:34:27 +0000
+++ b/repository.py	2008-09-01 22:41:04 +0000
@@ -200,7 +200,7 @@
         return (self._lock_mode == 'w')
 
     def get_latest_revnum(self):
-        if self._lock_mode in ('r','w') and self._cached_revnum:
+        if self._lock_mode in ('r','w') and self._cached_revnum is not None:
             return self._cached_revnum
         self._cached_revnum = self.transport.get_latest_revnum()
         return self._cached_revnum




More information about the bazaar-commits mailing list