2015-07-10 72 views
1

我正在尝试获取用于更新PTC项目中所有文件的所有更改包的列表。我用下面的命令:提取PTC项目中所有文件的所有更改包

si viewproject --recurse --fields=name,creationcpid,cpid,memberrev,indent --project=%Project% --hostname=%Host_name% --port=%port1% -Y 

但我没有得到所有的CP使用,只有第一个。我也试过命令:

si rlog --recurse --format="{membername},{memberrev},{revision},{cpid},{author}\n" --noHeaderFormat --project=%Project% --hostname=%Host_name% --port=%port1% 

回答

1

使用你会得到所有的变化打包使用当前用户以下CLI命令 SI viewcps

但是,viewcps接受--filter=在那里你可以指定项目

si viewcps --hostname=%Host_name% --port=%port1% --filter=project:%Project% 

需要为每个子项目递归调用此命令,因为只会返回指定项目中第一级的更改包。

Usage: si viewcps options... issue|issue:change package id...; options are: 
    --fields=field1[:width1],field2[:width2]... where fieldn can be any of: closeddate,cptype,creationdate,deployrequestid,deployrequeststate,deploytarget,description,id,issue,propagated,propagatedby,siserver,stage,stagingsystem,state,summary,user The fields to be displayed 
    --filter=user:name 
      issueid:issue 
      state[:closed|:open|:submitted|:accepted|:rejected|:discarded|:commitfailed] 
      closeddate:<date> 
      creationdate:<date> 
      membertype[:member|:subproject] 
      member:<expression> 
      project:<expression> 
      variant:<expression> 
      mainline 
      description:<expression> 
      summary:<expression> 
      typemodifier[:committed|:pending] 
      type[:add|:addfromarchive|:drop|:import|:exclusivelock|:nonexclusivelock|:renamefrom|:renameto|:movememberfrom|:movememberto|:update|:updatearchive|:updaterevision|:createsubproject|:addsubproject|:addsharedsubproject|:configuresubprojectfrom|:configuresubprojectto|:movesubprojectfrom|:movesubprojectto|:dropsubproject] 
      hasissue 
      pendingreviewby:name 
      acceptedby:name[;<date>] 
      rejectedby:name[;<date>] 
      cptype[:development|:propagation|:deploy|:staging|:resolution] 
      stagingsystem:<expression> 
      stage:<expression> 
      deploytarget:<expression> 
      deployrequeststate[|:cancelled|:cleanedup|:cleaningup|:cleanupfailed|:created|:deployed|:executed|:executing|:packageactionsfailed|:packagecontentfailed|:packagingactions|:packagingcontent|:prepared|:preparing|:queuedonsource|:queuedontarget|:readytodeploy|:readytotransfer|:rollbackfailed|:rolledback|:rollingback|:stopped|:transferfailed|:transferring] 
      deployrequestid:<expression> The filter used to select change packages 
    --height=value The height in pixels of the windows 
    --myReviews Show the change packages awaiting review by current user 
    --query=value The query used to select change packages 
    --width=value The width in pixels of the windows 
    -x value The x location in pixels of the window 
    -y value The y location in pixels of the window 
    -? Shows the usage for a command 
    --[no]batch Control batch mode (no user interaction in batch mode) 
    --cwd=value Act as if command executed in specified directory 
    -F value Read the selection from a specified file 
    --forceConfirm=[yes|no] Specify an answer to all confirmation questions 
    -g User interaction should happen via the GUI 
    --gui User interaction should happen via the GUI 
    --hostname=value Hostname of server 
    -N Responds to all confirmations with "no" 
    --no Responds to all confirmations with "no" 
    --password=value Credentials (e.g., password) to login with 
    --[no]persist Control persistence of CLI views 
    --port=value TCP/IP port number of server 
    --quiet Control status display 
    --selectionFile=value Read the selection from a specified file 
    --settingsUI=[gui|default] Control UI for command options 
    --status=[none|gui|default] Control status display 
    --usage Shows the usage for a command 
    --user=value Username to login to server with 
    -Y Responds to all confirmations with "yes" 
    --yes Responds to all confirmations with "yes" 
相关问题