Kaydet (Commit) 0f2dce23 authored tarafından Faik Uygur's avatar Faik Uygur

* you swap like C, not used and not needed _yet_.

üst 0f8421bf
......@@ -54,15 +54,6 @@ class RepoDB(object):
l = self.list()
return l[ix]
def swap(self, x, y):
def proc(txn):
l = self.d.get("order", txn)
t = l[x]
l[x] = l[y]
l[y] = t
self.d.put("order", l, txn)
self.d.txn_proc(proc, txn)
def has_repo(self, name):
name = str(name)
return self.d.has_key("repo-" + name)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment