Mercurial > hg
diff hgext/convert/p4.py @ 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 | a36fd0993522 |
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: