Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.0, 2.0.1, and 2.0.2

stable repowidget: Fix 'Copy patch' issue for changesets.

Issue was caused by an hg update attempting to blindly call close() on
the output object.

Changeset a6a6677f570c

Parent 4885a3836e6c

by Waqas Hussain

Changes to one file · Browse files at a6a6677f570c Showing diff from parent 4885a3836e6c Diff from another changeset...

 
1202
1203
1204
1205
 
 
 
 
1206
1207
1208
 
1202
1203
1204
 
1205
1206
1207
1208
1209
1210
1211
@@ -1202,7 +1202,10 @@
  _ui.pushbuffer()   try:   if self.rev: - commands.export(_ui, self.repo, self.rev, output=_ui) + class Writable(object): + def write(self, *args, **opts): _ui.write(*args, **opts) + def close(self): pass + commands.export(_ui, self.repo, self.rev, output=Writable())   else:   commands.diff(_ui, self.repo)   except Exception, e: