From 86523260c495d9a29aa5ab29d50d30a5d1981a0c Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Wed, 24 Nov 2010 17:55:43 +0100 Subject: Renamed msg named parameter to logmsg, as it describes the purpose of the message much better Added test for deletion of reflog file when the corresponding ref is deleted --- refs/reference.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'refs/reference.py') diff --git a/refs/reference.py b/refs/reference.py index c44ebf00..1a745ee9 100644 --- a/refs/reference.py +++ b/refs/reference.py @@ -37,17 +37,17 @@ class Reference(SymbolicReference, LazyMixin, Iterable): def __str__(self): return self.name - def set_object(self, object, msg = None): + def set_object(self, object, logmsg = None): """Special version which checks if the head-log needs an update as well""" oldbinsha = None - if msg is not None: + if logmsg is not None: head = self.repo.head if not head.is_detached and head.ref == self: oldbinsha = self.commit.binsha #END handle commit retrieval #END handle message is set - super(Reference, self).set_object(object, msg) + super(Reference, self).set_object(object, logmsg) if oldbinsha is not None: # /* from refs.c in git-source @@ -62,7 +62,7 @@ class Reference(SymbolicReference, LazyMixin, Iterable): # * check with HEAD only which should cover 99% of all usage # * scenarios (even 100% of the default ones). # */ - self.repo.head.log_append(oldbinsha, msg) + self.repo.head.log_append(oldbinsha, logmsg) #END check if the head # NOTE: Don't have to overwrite properties as the will only work without a the log -- cgit v1.2.1