mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
78dcff9f00
Summary: Perforce client support a view. A view maps a server side path to a client side path, e.g.: the view '//depot/A/B/... //myclient/foo/...' maps every file in //depot/A/B/ on the server side to a local checkout foo/ inside the root for checkouts defined for the client 'myclient'. We are using §p4 where§ to support these mappings. We do the mapping inside the FileImporter at the moment as this runs nicely in parallel. It's a bit hacky but get's the job done. We use this mostly to ommit the common prefix //depot/... and remove branch indicators such as Main. So in our case a view looks like //depot/Software/OculusSDK/PC/Main... //client/Software/OculusSDK/PC/... resulting in a file //depot/Software/OculusSDK/PC/Main/test.txt being imported as Software/OculusSDK/PC/test.xt Test Plan: rt test-p4* Reviewers: #sourcecontrol, #idi, ikostia Reviewed By: ikostia Subscribers: ikostia, durham, mjpieters Differential Revision: https://phabricator.intern.facebook.com/D4913483 Signature: t1:4913483:1492702356:b97b691343b8a1d52940445934730b31d411db4c
101 lines
4.4 KiB
Raku
101 lines
4.4 KiB
Raku
#require test-repo
|
|
|
|
$ . $TESTDIR/require-core-hg.sh contrib/check-config.py
|
|
|
|
This file is backported from mercurial/tests/test-check-config.t.
|
|
It differs slightly to fix paths and include files in core hg.
|
|
|
|
$ . "$RUNTESTDIR/helpers-testrepo.sh"
|
|
$ cd "$TESTDIR"/..
|
|
$ unset HGRCPATH
|
|
|
|
New errors are not allowed. Warnings are strongly discouraged.
|
|
|
|
$ export RUNTESTDIR
|
|
$ (
|
|
> hg files "set:(**.py or **.txt) - tests/**"
|
|
> hg files --cwd $RUNTESTDIR/.. "set:(**.py or **.txt) - tests/**" | sed "s#^#${RUNTESTDIR}/../#"
|
|
> ) | sed 's|\\|/|g' |
|
|
> $PYTHON $RUNTESTDIR/../contrib/check-config.py
|
|
elif ui.configbool('p4fastimport', 'useworker', False):
|
|
|
|
conflict on p4fastimport.useworker: ('bool', '') != ('str', '')
|
|
repo.ui.config("paths", "default")))
|
|
|
|
conflict on paths.default: ('str', '') != ('str', '<variable>')
|
|
if ui.configbool("experimental", "histeditng"):
|
|
|
|
conflict on experimental.histeditng: ('bool', '') != ('str', '')
|
|
undocumented: extensions.fbamend (str)
|
|
undocumented: fastlog.debug (str)
|
|
undocumented: fastlog.enabled (bool)
|
|
undocumented: fastmanifest.cachecutoffdays (int) [60]
|
|
undocumented: fastmanifest.cacheonchange (bool)
|
|
undocumented: fastmanifest.cacheonchangebackground (bool) [True]
|
|
undocumented: fastmanifest.debugfastmanifest (bool)
|
|
undocumented: fastmanifest.debugmetrics (bool)
|
|
undocumented: fastmanifest.logfile (str)
|
|
undocumented: fastmanifest.maxinmemoryentries (str) [DEFAULT_MAX_MEMORY_ENTRIES]
|
|
undocumented: fastmanifest.silent (bool)
|
|
undocumented: fastmanifest.usecache (bool) [True]
|
|
undocumented: fastmanifest.usetree (bool)
|
|
undocumented: fbconduit.backingrepos (list) [[reponame]]
|
|
undocumented: fbconduit.gitcallsigns (list)
|
|
undocumented: fbconduit.host (str)
|
|
undocumented: fbconduit.path (str)
|
|
undocumented: fbconduit.protocol (str)
|
|
undocumented: fbconduit.reponame (str)
|
|
undocumented: fbhistedit.exec_in_user_shell (str)
|
|
undocumented: format.sqldirstate (bool)
|
|
undocumented: grep.command (str) ['grep']
|
|
undocumented: inhibit.bypass-warning (bool)
|
|
undocumented: inhibit.cutoff (str)
|
|
undocumented: inhibitwarn.education (str)
|
|
undocumented: morestatus.show (bool)
|
|
undocumented: nointerrupt.interactiveonly (bool) [True]
|
|
undocumented: perftweaks.cachenoderevs (bool) [True]
|
|
undocumented: perftweaks.disablebranchcache (bool)
|
|
undocumented: perftweaks.disablecasecheck (bool)
|
|
undocumented: perftweaks.disabletags (bool)
|
|
undocumented: perftweaks.preferdeltas (bool)
|
|
undocumented: phrevset.callsign (str)
|
|
undocumented: pushrebase.blocknonpushrebase (bool)
|
|
undocumented: pushrebase.rewritedates (bool)
|
|
undocumented: rage.fastmanifestcached (bool)
|
|
undocumented: remotefilelog.backgroundrepack (bool)
|
|
undocumented: remotefilelog.cachegroup (str)
|
|
undocumented: remotefilelog.data.gencountlimit (int) [2]
|
|
undocumented: remotefilelog.debug (bool)
|
|
undocumented: remotefilelog.excludepattern (list)
|
|
undocumented: remotefilelog.fastdatapack (bool)
|
|
undocumented: remotefilelog.fetchpacks (bool)
|
|
undocumented: remotefilelog.fetchwarning (str)
|
|
undocumented: remotefilelog.getfilesstep (int) [10000]
|
|
undocumented: remotefilelog.history.gencountlimit (int) [2]
|
|
undocumented: remotefilelog.includepattern (list)
|
|
undocumented: remotefilelog.pullprefetch (str)
|
|
undocumented: remotefilelog.reponame (str)
|
|
undocumented: remotefilelog.server (bool)
|
|
undocumented: remotefilelog.servercachepath (str)
|
|
undocumented: remotefilelog.serverexpiration (int) [30]
|
|
undocumented: remotefilelog.shallowtrees (bool)
|
|
undocumented: remotefilelog.validatecache (str) ['on']
|
|
undocumented: remotefilelog.validatecachelog (str)
|
|
undocumented: simplecache.cachedir (str)
|
|
undocumented: simplecache.caches (list) [['local']]
|
|
undocumented: simplecache.evictionpercent (int) [50]
|
|
undocumented: simplecache.host (str) ['localhost']
|
|
undocumented: simplecache.maxcachesize (int) [2000]
|
|
undocumented: simplecache.port (str) [11101]
|
|
undocumented: simplecache.version (str) ['1']
|
|
undocumented: smartlog.ignorebookmarks (str) ['!']
|
|
undocumented: sqldirstate.cachebuildtreshold (str) [10000]
|
|
undocumented: sqldirstate.downgrade (bool)
|
|
undocumented: sqldirstate.skipbackups (bool) [True]
|
|
undocumented: sqldirstate.tracefile (str)
|
|
undocumented: sqldirstate.upgrade (bool)
|
|
undocumented: ssl.timeout (int) [5]
|
|
undocumented: treemanifest.autocreatetrees (bool)
|
|
undocumented: treemanifest.verifyautocreate (bool)
|
|
undocumented: ui.editor.chunkselector (str)
|