HomePhabricator

p4fastimport: fix ignored executable bits

Authored by hollisb.

Description

p4fastimport: fix ignored executable bits

Previous code looked for "text+x" type from 'p4 fstat' output. This was
insufficient, because files may have types like "text+Fx" or "text+wx".

Based on the information at
https://www.perforce.com/perforce/r16.2/manuals/cmdref/file.types.html,
the executable bit is now properly handled in all cases.

The unnecessary regexp matching for the +k (keyword) file attribute is now
removed as well.

Differential Revision: https://phab.mercurial-scm.org/D1912

Details

Committed
hollisbJan 18 2018, 2:25 PM
Differential Revision
D1912: p4fastimport: fix ignored executable bits
Parents
rFBHGXf27f094e9155: p4fastimport: fix check-code
Branches
Unknown
Tags
Unknown