--- a/mercurial/archival.py Thu May 07 13:47:45 2015 -0500
+++ b/mercurial/archival.py Tue May 05 20:52:38 2015 -0400
@@ -37,6 +37,10 @@
prefix = util.pconvert(lpfx)
if not prefix.endswith('/'):
prefix += '/'
+ # Drop the leading '.' path component if present, so Windows can read the
+ # zip files (issue4634)
+ if prefix.startswith('./'):
+ prefix = prefix[2:]
if prefix.startswith('../') or os.path.isabs(lpfx) or '/../' in prefix:
raise util.Abort(_('archive prefix contains illegal components'))
return prefix