[PATCH 12 of 19] localrepo: remove spurious updatebranchcache return value

Mads Kiilerich mads at kiilerich.com
Thu Jan 12 19:32:46 CST 2012


# HG changeset patch
# User Mads Kiilerich <mads at kiilerich.com>
# Date 1326413948 -3600
# Node ID 94747a0592102b0f80b9877d527e7260579544b2
# Parent  5ac878154e85a6ec40cbf49f57a66e7527c2c41e
localrepo: remove spurious updatebranchcache return value

- it was left over from the refactoring in d01e28657429.

diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -480,7 +480,7 @@
     def updatebranchcache(self):
         tip = self.changelog.tip()
         if self._branchcache is not None and self._branchcachetip == tip:
-            return self._branchcache
+            return
 
         oldtip = self._branchcachetip
         self._branchcachetip = tip


More information about the Mercurial-devel mailing list