You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ah, good catch. that's part of the internal K&L devops/build scripts. There's probably still various references to internal scripts but called it out on that page.
For the retyping, it's mostly orthogonal to our internal environment so you can probably easily reuse it. It just parses the typemap and calls the p4 command. Pasted here below:
@reconcilegroup.command()@click.option('--srcdir',type=click.Path(exists=True),default=klcommon.GetKLConfig()[1].BBRDir,show_default=True,help='''Directory to retypemap''')defp4retypemap(srcdir):
"""Not for general use. Utility to apply a typemap spec to existing files in a depot."""klcommon.printTitle('BBR P4 Retypemap')
error, klcfg=klcommon.GetKLConfig()
iferror: raiseclick.Abort()
withklcommon.pushd(srcdir):
importsubprocessoutput=subprocess.check_output("p4 typemap -o", shell=True)
fortypemapinoutput.rpartition('TypeMap:')[-1].splitlines():
iftypemap:
ifklcommon.launch(f"p4 retype -t {typemap}", False) !=0:
raiseclick.Abort()
Context: https://bebylon.dev/ue4guide/source-control/perforce-source-version-control-setup/
References a Utility for retypemapping files, where does this live? I'd like to use it.
Thanks!
The text was updated successfully, but these errors were encountered: