changeset 25776:809c3e4a9e31

convert: ignore case changes in vieworder for Perforce Perforce sometimes mixes the case resulting in files being ignored.
author Eugene Baranov <eug.baranov@gmail.com>
date Mon, 13 Jul 2015 15:05:03 +0100
parents 220d9ae6a9a8
children 1c2a8db33b8f
files hgext/convert/p4.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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: