Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9, 0.9.1, and 0.9.1.1

stable csinfo: attempt to get commit message if patch.extract() returns nothing

Changeset 03f517f05dcc

Parent f1b97b443495

by Yuki KODAMA

Changes to one file · Browse files at 03f517f05dcc Showing diff from parent f1b97b443495 Diff from another changeset...

 
148
149
150
 
 
 
 
 
 
151
152
153
154
 
155
156
157
 
148
149
150
151
152
153
154
155
156
157
158
159
 
160
161
162
163
@@ -148,10 +148,16 @@
  os.unlink(tmpfile)   finally:   pf.close() + if not msg and hasattr(repo, 'mq'): + # attempt to get commit message + from hgext import mq + msg = mq.patchheader(repo.mq.join(self._patchname)).message + if msg: + msg = '\n'.join(msg)   self._node = node   self._user = user and hglib.toutf(user) or ''   self._date = date and util.parsedate(date) or None - self._desc = msg and hglib.toutf(msg.rstrip('\r\n')) or '' + self._desc = msg and msg or ''   self._branch = branch and hglib.toutf(branch) or ''   self._parents = []   for p in (p1, p2):