From 3203cd7629345d32806f470a308975076b2b4686 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Wed, 24 Nov 2010 19:48:44 +0100 Subject: Fixed doc strings, improved error checking on RefLog.write method --- refs/symbolic.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'refs/symbolic.py') diff --git a/refs/symbolic.py b/refs/symbolic.py index 6ba8083f..9937cf0c 100644 --- a/refs/symbolic.py +++ b/refs/symbolic.py @@ -174,6 +174,7 @@ class SymbolicReference(object): def set_commit(self, commit, logmsg = None): """As set_object, but restricts the type of object to be a Commit + :raise ValueError: If commit is not a Commit object or doesn't point to a commit :return: self""" @@ -345,6 +346,7 @@ class SymbolicReference(object): def log_append(self, oldbinsha, message, newbinsha=None): """Append a logentry to the logfile of this ref + :param oldbinsha: binary sha this ref used to point to :param message: A message describing the change :param newbinsha: The sha the ref points to now. If None, our current commit sha -- cgit v1.2.3