Chromium Code Reviews| 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] |