# HG changeset patch
# User David Wilhelm <[email protected]>
# Date 1274649010 25200
# Node ID 06cbae45ed240fa289326b13641ec7aefa653330
# Parent 91893ca137695dbc0b91962541b3c2c2c0f199c6
shelve: fix shelve-backups for unshelve
The backups were always skipped with the patch string position at the
end instead of the beginning.
diff --git a/tortoisehg/util/hgshelve.py b/tortoisehg/util/hgshelve.py
--- a/tortoisehg/util/hgshelve.py
+++ b/tortoisehg/util/hgshelve.py
@@ -560,6 +560,7 @@
ui.status(fp.getvalue())
else:
files = []
+ fp.seek(0)
for chunk in parsepatch(fp):
if isinstance(chunk, header):
files += chunk.files()
------------------------------------------------------------------------------
_______________________________________________
Tortoisehg-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop