OLD | NEW |
---|---|
(Empty) | |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | |
2 # Use of this source code is governed by a BSD-style license that can be | |
3 # found in the LICENSE file. | |
4 | |
5 from object_store_creator import ObjectStoreCreator | |
6 from future import Future | |
7 | |
8 | |
9 class CommitTracker(object): | |
10 '''Utility class for managing and querying the storage of various named commit | |
11 IDs.''' | |
12 def __init__(self, object_store_creator): | |
13 self._store = object_store_creator.Create(str, category='commits', | |
not at google - send to devlin
2014/10/24 00:04:50
s/str/CommitTracker/ ?
Also it wouldn't need a cat
Ken Rockot(use gerrit already)
2014/10/24 21:26:53
Oh. Epiphany. I was making incorrect assumptions a
| |
14 start_empty=False) | |
15 | |
16 def Get(self, key): | |
17 return self._store.Get(key) | |
18 | |
19 def Set(self, key, commit): | |
20 return self._store.Set(key, commit) | |
OLD | NEW |