diff options
Diffstat (limited to 'libbe/storage/http.py')
-rw-r--r-- | libbe/storage/http.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libbe/storage/http.py b/libbe/storage/http.py index 0792b1e..f7b0316 100644 --- a/libbe/storage/http.py +++ b/libbe/storage/http.py @@ -142,6 +142,13 @@ class HTTP (base.VersionedStorage): url, get=False, data_dict={'id':id, 'recursive':True}) + def _ancestors(self, id=None, revision=None): + url = urlparse.urljoin(self.repo, 'ancestors') + page,final_url,info = get_post_url( + url, get=True, + data_dict={'id':id, 'revision':revision}) + return page.strip('\n').splitlines() + def _children(self, id=None, revision=None): url = urlparse.urljoin(self.repo, 'children') page,final_url,info = get_post_url( |