Rev 1436: Use less confusing variable name. in http://people.samba.org/bzr/jelmer/bzr-svn/trunk

Jelmer Vernooij jelmer at samba.org
Fri Jul 4 03:18:17 BST 2008


At http://people.samba.org/bzr/jelmer/bzr-svn/trunk

------------------------------------------------------------
revno: 1436
revision-id: jelmer at samba.org-20080704021816-a6nkpwvaideoa7fa
parent: jelmer at samba.org-20080704021802-ycbr1t7gi9y5j9np
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.4
timestamp: Fri 2008-07-04 04:18:16 +0200
message:
  Use less confusing variable name.
modified:
  revids.py                      revids.py-20070416220458-36vfa0730cchevp1-1
=== modified file 'revids.py'
--- a/revids.py	2008-07-01 21:10:34 +0000
+++ b/revids.py	2008-07-04 02:18:16 +0000
@@ -248,10 +248,10 @@
         assert isinstance(revnum, int)
         assert isinstance(path, str)
         assert isinstance(scheme, str)
-        revid = self.cachedb.execute(
+        row = self.cachedb.execute(
                 "select revid from revmap where max_revnum = ? and min_revnum=? and path=? and scheme=?", (revnum, revnum, path, scheme)).fetchone()
-        if revid is not None:
-            ret = str(revid[0])
+        if row is not None:
+            ret = str(row[0])
         else:
             ret = None
         self.mutter("lookup branch,revnum %r:%r -> %r", path, revnum, ret)




More information about the bazaar-commits mailing list