[PATCH] convert: Perforce sometimes mixes the case resulting in file being ignored

Eugene Baranov eug.baranov at gmail.com
Mon Jul 13 14:05:53 UTC 2015


# HG changeset patch
# User Eugene Baranov <eug.baranov at gmail.com>
# Date 1436796303 -3600
#      Mon Jul 13 15:05:03 2015 +0100
# Node ID 4d725dde1e7a8675c259e3597bd4a9adaaee2022
# Parent  f346506462419f4b1311c9be731954e253815c70
convert: Perforce sometimes mixes the case resulting in file being ignored

diff -r f34650646241 -r 4d725dde1e7a 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:


More information about the Mercurial-devel mailing list