From 8af941618a851d190668602be3b6bede1544f1dc Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Tue, 5 Apr 2011 14:15:32 +0200 Subject: Moved push and fetch methods partly from remote to the gitcmdobjdb implementation, including related types. It doesn't yet work, and the omnipresence of the repo imposes a problem right now, as the required ref functionality is not yet part of the gitdb specification. theoretically, the whole ref implementation has to move into gitdb --- git/util.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'git/util.py') diff --git a/git/util.py b/git/util.py index 7cbef07f..b979e147 100644 --- a/git/util.py +++ b/git/util.py @@ -189,6 +189,7 @@ class RemoteProgress(object): # END end message handling self.update(op_code, cur_count, max_count, message) + self(message) # END for each sub line return failed_lines @@ -221,6 +222,13 @@ class RemoteProgress(object): You may read the contents of the current line in self._cur_line""" pass + + def __call__(self, message): + """Same as update, but with a simpler interface which only provides the + message of the operation + :note: This method will be called in addition to the update method. It is + up to you which one you implement""" + pass class Actor(object): -- cgit v1.2.3