@@ -154,9 +154,10 @@ class PushInfo(object):
154154 # the remote_ref_string. It can be a TagReference as well.
155155 info.old_commit # commit at which the remote_ref was standing before we pushed
156156 # it to local_ref.commit. Will be None if an error was indicated
157+ info.summary # summary line providing human readable english text about the push
157158
158159 """
159- __slots__ = ('local_ref' , 'remote_ref_string' , 'flags' , 'old_commit' , '_remote' )
160+ __slots__ = ('local_ref' , 'remote_ref_string' , 'flags' , 'old_commit' , '_remote' , 'summary' )
160161
161162 NEW_TAG , NEW_HEAD , NO_MATCH , REJECTED , REMOTE_REJECTED , REMOTE_FAILURE , DELETED , \
162163 FORCED_UPDATE , FAST_FORWARD , UP_TO_DATE , ERROR = [ 1 << x for x in range (11 ) ]
@@ -165,7 +166,8 @@ class PushInfo(object):
165166 '+' : FORCED_UPDATE , ' ' : FAST_FORWARD ,
166167 '=' : UP_TO_DATE , '!' : ERROR }
167168
168- def __init__ (self , flags , local_ref , remote_ref_string , remote , old_commit = None ):
169+ def __init__ (self , flags , local_ref , remote_ref_string , remote , old_commit = None ,
170+ summary = '' ):
169171 """
170172 Initialize a new instance
171173 """
@@ -174,6 +176,7 @@ def __init__(self, flags, local_ref, remote_ref_string, remote, old_commit=None)
174176 self .remote_ref_string = remote_ref_string
175177 self ._remote = remote
176178 self .old_commit = old_commit
179+ self .summary = summary
177180
178181 @property
179182 def remote_ref (self ):
@@ -241,7 +244,7 @@ def _from_line(cls, remote, line):
241244 old_commit = Commit (remote .repo , old_sha )
242245 # END message handling
243246
244- return PushInfo (flags , from_ref , to_ref_string , remote , old_commit )
247+ return PushInfo (flags , from_ref , to_ref_string , remote , old_commit , summary )
245248
246249
247250class FetchInfo (object ):
0 commit comments