# HG changeset patch # User Yuki KODAMA <[email protected]> # Date 1252948545 -32400 # Node ID b37dcdfe23e6101872b270340936f9c601aec807 # Parent bf6eacbb0affb1f3085376f12294b2a910bae8f2 changeset: catch NoHunks exception occurred by empty patch
diff --git a/tortoisehg/hgtk/changeset.py b/tortoisehg/hgtk/changeset.py
--- a/tortoisehg/hgtk/changeset.py
+++ b/tortoisehg/hgtk/changeset.py
@@ -168,6 +168,8 @@
hunks.extend([l.rstrip('\r\n') for l in values.hunk])
else:
raise 'Unknown hunk type: %s' % state
+ except patch.NoHunks:
+ pass
finally:
pf.close()
@@ -303,7 +305,8 @@
buf.insert(eob, '\n')
buf.insert(eob, '\n' + msg + '\n\n')
finally:
- os.unlink(tmp)
+ if tmp:
+ os.unlink(tmp)
finally:
pf.close()
thg-kuy_rev4011.patch
Description: Binary data
------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________ Tortoisehg-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop
