2014-09-03 79 views
0

我试图使用“p4标签”检索名称为“FOO_2.4.4”格式的标签。我尝试了以下列表,但没有一个可行。另一方面,“p4标签.... | grep FOO”确实让我看到了标签。有什么我错过了吗?如何使用p4标签的-e/-E选项

  • P4标签-e FOO
  • P4标签-e FOO ....
  • P4标签-e FOO //通信/ path_to_directory_containing_files_in_label/...
  • P4标签-e “FOO”
  • P4标签-e “FOO” ....
  • P4标签-e “FOO” //通信/ path_to_directory_containing_files_in_label/...
  • P4标签-E FOO
  • 点P4标签-E FOO ....
  • P4标签-E FOO //通信/ path_to_directory_containing_files_in_label/...
  • P4标签-E “FOO”
  • P4标签-E “FOO” ... 。
  • P4标签-E “FOO” //通信/ path_to_directory_containing_files_in_label/...
  • P4标签-e FOO *
  • P4标签-e FOO * ....
  • P4标签-e FOO * // comms/path_to_directory_containing_files_in_label/...
  • 个P4标签-e “FOO *”
  • P4标签-e “FOO *” ......
  • P4标签-e “FOO *” //通信/ path_to_directory_containing_files_in_label/...
  • P4标签 - ËFOO *
  • P4标签-E FOO * ....
  • P4标签-E FOO * //通信/ path_to_directory_containing_files_in_label/...
  • P4标签-E “FOO *”
  • P4标签-E“FOO *”....
  • p4 labels -E“FOO *”// com ms/path_to_directory_containing_files_in_label/...

回答

0

我不确定发生了什么问题。引用可能是一个问题。在我的Windows命令行shell,我必须使用双引号,不是单引号:

C:\Users\Bryan>p4 tag -l FOO_2.4.4 //... 
//depot/a#1 - added 

C:\Users\Bryan>p4 labels -e 'FOO*' 

C:\Users\Bryan>p4 labels -e "FOO*" 
Label FOO_2.4.4 2014/09/03 'Created by Bryan.' 

但似乎你已经尝试过报价的几种组合,但没有成功。

你也试过-E吗?这使匹配不区分大小写。

+0

是的,我试过了 - E,没有成功。而p4命令行客户端不会打印任何版本信息。 – 2014-09-04 02:17:57

+0

问题可能与您的数据集非常相关。您是否联系过Perforce技术支持? – 2014-09-04 13:51:18

+0

感谢您的帮助,Bryan。事实证明,我需要做的就是关闭电脑,并在周末后再次打开电脑。 – 2014-09-07 21:40:25