Skip to content
Snippets Groups Projects
Commit 2efbee89 authored by Augie Fackler's avatar Augie Fackler
Browse files

gitrepo: update for pushable bookmarks

parent 426d77fd
No related branches found
No related tags found
No related merge requests found
......@@ -8,8 +8,9 @@
class gitrepo(repo.repository):
capabilities = ['lookup']
def __init__(self, ui, path, create):
if create: # pragma: no cover
raise util.Abort('Cannot create a git repository.')
self.ui = ui
self.path = path
......@@ -11,8 +12,9 @@
def __init__(self, ui, path, create):
if create: # pragma: no cover
raise util.Abort('Cannot create a git repository.')
self.ui = ui
self.path = path
def lookup(self, key):
if isinstance(key, str):
return key
......@@ -16,6 +18,7 @@
def lookup(self, key):
if isinstance(key, str):
return key
def local(self):
if not self.path:
raise RepoError
......@@ -19,6 +22,7 @@
def local(self):
if not self.path:
raise RepoError
def heads(self):
return []
......@@ -22,5 +26,11 @@
def heads(self):
return []
def listkeys(self, namespace):
return {}
def pushkey(self, namespace, key, old, new):
return False
instance = gitrepo
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment