def __setitem__(self, key, value): super(GitStore, self).__setitem__(key, value) fname = quote_plus(key) self._repo.stage([fname]) self._repo.do_commit('added {0}'.format(fname), committer='shove')
def __delitem__(self, key): super(GitStore, self).__delitem__(key) fname = quote_plus(key) self._repo.stage([fname]) self._repo.do_commit('removed {0}'.format(fname))
def _key_to_file(self, key): # gives the filesystem path for a key return join(self._dir, quote_plus(key))
def _key_to_file(self, key): # ensure `key` is a string key = str(key) # gives the filesystem path for a key return join(self._dir, quote_plus(key))
def __delitem__(self, key): super(GitStore, self).__delitem__(key) fname = quote_plus(key) self._repo.stage([fname]) self._repo.do_commit("removed {0}".format(fname))
def __setitem__(self, key, value): super(GitStore, self).__setitem__(key, value) fname = quote_plus(key) self._repo.stage([fname]) self._repo.do_commit("added {0}".format(fname), committer="shove")