Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3553)

Unified Diff: chrome/common/extensions/docs/server2/branch_utility.py

Issue 10831269: Extensions Docs Server: BranchUtility not fetching branch numbers correctly (fixed) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/docs/server2/branch_utility.py
diff --git a/chrome/common/extensions/docs/server2/branch_utility.py b/chrome/common/extensions/docs/server2/branch_utility.py
index b1470c2e38c43593282adf2962ec20a2ead361af..f4159fe10cc8989e342bb9591c9aee1a922c349a 100644
--- a/chrome/common/extensions/docs/server2/branch_utility.py
+++ b/chrome/common/extensions/docs/server2/branch_utility.py
@@ -26,8 +26,8 @@ class BranchUtility(object):
return (self._default_branch, path)
def GetBranchNumberForChannelName(self, channel_name):
- """Returns an empty string if the branch number cannot be found.
- Throws exception on network errors.
+ """Returns the branch number for a channel name. If the |channel_name| is
+ 'trunk' or 'local', then |channel_name| will be returned unchanged.
not at google - send to devlin 2012/08/13 00:53:00 "... because..."
cduvall 2012/08/13 21:45:04 Done.
"""
if channel_name in ['trunk', 'local']:
return channel_name
@@ -59,6 +59,6 @@ class BranchUtility(object):
self._memcache.Set(channel_name + '.' + self._base_path,
sorted_branches[0][0],
memcache.MEMCACHE_BRANCH_UTILITY,
- 86400)
+ time=86400)
return sorted_branches[0][0]

Powered by Google App Engine
This is Rietveld 408576698