diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2014-02-10 21:40:53 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2014-02-10 21:40:53 +0100 |
commit | 1cb02ebcaa4891c01a1d6cba11a3cd9806fad782 (patch) | |
tree | 51130c659e5089434e84404940ed1451f6c5d5cc /git/db/py/transport.py | |
parent | 660bdca125aa9dcca7a7730535bec433edb8ba02 (diff) | |
parent | f77230f618722e964a76657ebb03d822b2f73518 (diff) | |
download | gitpython-1cb02ebcaa4891c01a1d6cba11a3cd9806fad782.tar.gz |
Merge branch 'feature/spaces-and-cleanup-master'
* feature/spaces-and-cleanup-master:
Basic fixes to get tests back on track. Of course there is much more work to be done here
removed leftover gitdb - I thought it was merged into git
tabs to 4 spaces - overall state of this branch is desolate, but fixable. Needs plenty of work
Diffstat (limited to 'git/db/py/transport.py')
-rw-r--r-- | git/db/py/transport.py | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/git/db/py/transport.py b/git/db/py/transport.py index 00d222b0..7bcaab95 100644 --- a/git/db/py/transport.py +++ b/git/db/py/transport.py @@ -5,9 +5,9 @@ """Implement a transport compatible database which sends objects using the git protocol""" from git.db.interface import ( TransportDB, - PushInfo, - FetchInfo, - RefSpec ) + PushInfo, + FetchInfo, + RefSpec ) from git.refs.remote import RemoteReference from git.remote import Remote @@ -16,43 +16,43 @@ from git.remote import Remote __all__ = ["PureTransportDB"] class PurePushInfo(PushInfo): - """TODO: Implementation""" - __slots__ = tuple() - - - + """TODO: Implementation""" + __slots__ = tuple() + + + class PureFetchInfo(FetchInfo): - """TODO""" - __slots__ = tuple() - + """TODO""" + __slots__ = tuple() + class PureTransportDB(TransportDB): - # The following variables need to be set by the derived class - #{Configuration - protocol = None - RemoteCls = Remote - #}end configuraiton - - #{ Interface - - def fetch(self, url, refspecs, progress=None, **kwargs): - raise NotImplementedError() - - def push(self, url, refspecs, progress=None, **kwargs): - raise NotImplementedError() - - @property - def remotes(self): - return self.RemoteCls.list_items(self) - - def remote(self, name='origin'): - return self.remotes[name] - - def create_remote(self, name, url, **kwargs): - return self.RemoteCls.create(self, name, url, **kwargs) - - def delete_remote(self, remote): - return self.RemoteCls.remove(self, remote) - - #}end interface + # The following variables need to be set by the derived class + #{Configuration + protocol = None + RemoteCls = Remote + #}end configuraiton + + #{ Interface + + def fetch(self, url, refspecs, progress=None, **kwargs): + raise NotImplementedError() + + def push(self, url, refspecs, progress=None, **kwargs): + raise NotImplementedError() + + @property + def remotes(self): + return self.RemoteCls.list_items(self) + + def remote(self, name='origin'): + return self.remotes[name] + + def create_remote(self, name, url, **kwargs): + return self.RemoteCls.create(self, name, url, **kwargs) + + def delete_remote(self, remote): + return self.RemoteCls.remove(self, remote) + + #}end interface |