convert: ignore case changes in vieworder for Perforce
authorEugene Baranov <eug.baranov@gmail.com>
Mon, 13 Jul 2015 15:05:03 +0100
changeset 25776 809c3e4a9e31
parent 25775 220d9ae6a9a8
child 25777 1c2a8db33b8f
convert: ignore case changes in vieworder for Perforce Perforce sometimes mixes the case resulting in files being ignored.
hgext/convert/p4.py
--- a/hgext/convert/p4.py	Wed Jul 08 18:11:40 2015 +0100
+++ b/hgext/convert/p4.py	Mon Jul 13 15:05:03 2015 +0100
@@ -137,7 +137,7 @@
                 oldname = d["depotFile%d" % i]
                 filename = None
                 for v in vieworder:
-                    if oldname.startswith(v):
+                    if oldname.lower().startswith(v.lower()):
                         filename = views[v] + oldname[len(v):]
                         break
                 if filename: