2016-06-21 11 views
4

designによって、PERFORCEはワイルドカードのファイル名を追加することを許可していません。@#%*これは、このエラーを与えている:PERFORCEの回避策でファイル '@'を追加する

Can't add filenames with wildcards [@#%*] in them. 
Use -f option to force add. 

はしかし、私はミックスインをサポートするために、それらに@を持ってSASSファイルがあります。たとえば、次のように

[email protected] 
[email protected] 

何がチェックイン、チェックアウト、コンパイル、ビルド、および展開の流れで最も最小限の中断でのPERFORCEに追加され、これらのファイルを持っている最高の回避策、?

+0

あなたは、エラーメッセージに示された「-f」フラグ以外の何かを意味ですか? –

+0

'-f'フラグを使用すると、@はリビジョンとして扱われますか?したがって、 'sync'関数を中断します。私はそれを正しく理解していますか? –

+0

最新バージョンにアップグレードしようとしましたか?私はそれをテストし、それが最初の追加時に警告するが、特別な処理を必要としないことがわかる。 – tkosinski

答えて

2

PERFORCEワイルドカード文字を含むファイルを追加できます。 'p4ヘルプの追加]ページのドキュメントとして:

To add files with filenames that contain wildcard characters, specify the -f flag. Filenames that contain the special characters '@', '#', '%' or '*' are reformatted to encode the characters using ASCII hexadecimal representation. After the files are added, you must refer to them using the reformatted file name, because Perforce does not recognize the local filesystem name.

一様に、私は迷惑に同意されたエンコードされた「%40」を使用して、その後からファイル名を参照するための要件が​​、それ作業を行います。

は、ここで簡単な例です:

$ touch '[email protected]' 
$ p4 add '[email protected]' 
The file named '[email protected]' contains wildcards [@#%*]. 
Can't add filenames with wildcards [@#%*] in them. 
Use -f option to force add. 
$ p4 add -f '[email protected]' 
//depot/carbon-fiber-%402X.png#1 - opened for add 
/path/to/[email protected] - empty, assuming text. 
$ p4 submit -d added-carbon-fibre 
Submitting change 2. 
Locking 1 files ... 
add //depot/carbon-fiber-%402X.png#1 
Change 2 submitted. 
$ p4 files //... 
//depot/carbon-fiber-%402X.png#1 - add change 2 (text) 
$ p4 fstat //depot/carbon-fiber-%402X.png 
... depotFile //depot/carbon-fiber-%402X.png 
... clientFile /path/to/[email protected] 
... isMapped 
... headAction add 
... headType text 
... headTime 1466547058 
... headRev 1 
... headChange 2 
... headModTime 1466547033 
... haveRev 1 
+0

この 'carbon-fiber-%402X.png'ファイルをデポから取得すると、P4VSは自動的にこのファイルの名前をローカルマシンの' carbon-fiber- @ 2X.png'に変更しますか? –

+0

はい、あなたのラップトップの実際のファイルは '@'記号で名前が付けられます。 'p4'コマンドの引数と'%40'としてエンコードされたコマンドの出力に指定されたファイル名だけです –

+3

コマンドラインを使わずにPERFORCE UIからこれを行う方法 – Dibzmania