首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >PTC Integrity可从存储库中获取最新代码

PTC Integrity可从存储库中获取最新代码
EN

Stack Overflow用户
提问于 2015-02-09 12:57:50
回答 2查看 4K关注 0票数 0

如何从MKS仓库中获取最新版本的代码??

使用MKS命令

EN

回答 2

Stack Overflow用户

发布于 2015-08-05 21:53:23

要从mks存储库获取项目的最新版本,首先应该创建一个沙箱,然后可以将该沙箱与服务器重新同步。

要创建沙箱,请使用命令si createsandbox si createsandbox -- project =%mks_Project% -R -Y %sandboxLocation%此命令将从普通行创建项目的沙箱。如果您在devpath上工作,那么您应该在命令中添加--devpath=%projectDevpath%

要重新同步沙箱,请使用命令si resync --sandbox=%sandboxName%。例如si resync --sandbox="D:/sandbox/project1/project.pj"

请确保将%之间的所有字段替换为正确的值。根据您的服务器配置,命令可能会有所不同。

sI创建帮助

代码语言:javascript
复制
    Usage: si createsandbox options... directory; options are:
        --lineTerminator=[lf|crlf|native|cr]  Line terminator to use in this sandbox
        --[no]populate  Populate sandbox with members
        -R  Recurse into subsandboxes creation
        --[no|confirm]recurse  Recurse into subsandboxes creation
        --scope=attribute:name[=value]
                 memberrevlabellike:<expression>
                 anyrevlabellike:<expression>
                 name:<expression>
                 path:<expression>
                 type:text|binary
                 any
        --[no]shared  Allow sandbox to be shared
        --[no]sparse  Create sparse sandbox
        --[no]openView  Activate sandbox view after completing the command
        --devpath=value  The development path (to refer variant projects)
        --[no]failOnAmbiguousProject  Whether to abort when multiple projects correspond to a flat project string.
        -P value  The name of the target project
        --project=value  The name of the target project
        --projectRevision=value  The project revision (to refer build projects)
        --[no]awaitServer  If server does not respond, keep trying
        -?  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
        --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"

si重新同步帮助

代码语言:javascript
复制
    Usage: si resync options... current or former member/subproject...; options are:
        --[no]byCP  Operate in change package mode
        --[no]confirm  In change package mode, proceed without a question
        --[no]confirmPopulateSparse  Confirm populate of a sparse sandbox
        --[no|confirm]downgradeOnLockConflict  Whether to downgrade my existing exclusive lock to a non exclusive lock if an exclusive lock already exists on the member revision
        --[no]includeDropped  Include former members
        --[no|confirm]merge  Perform merges if required
        --mergeType=[confirm|cancel|automatic|manual]  Try to automatically perform the merge or launch the conflict resolution tool
        --onMergeConflict=[confirm|cancel|mark|launchtool|highlight|error]  What to do when conflicts occurred during the merge
        --[no|confirm]overwriteIfPending  Force overwrite of working files which correspond to pending revisions or pending members.
        --[no]populate  Populate the sandbox with working files
        --[no|un]expand  Whether keywords should be expanded in working files
        -f  Force overwrite of changed working files
        --[no|confirm]overwriteChanged  Force overwrite of changed working files
        --[no|confirm]overwriteDeferred  Force overwrite of working files with deferred operations pending
        --[no]overwriteUnchanged  Force overwrite of unchanged working files
        --[no|confirm]removeOutOfScope  Force removal of out of scope working files
        --[no]restoreTimestamp  Set the timestamp on the working file to the revision's timestamp
        --filter=attribute:name[=value]
                 changed[:working|:sync|:newer|:size|:missing|:newmem|:all]
                 file:<expression>
                 frozen
                 label[:name]
                 locked[:name]
                 locktype[:exclusive|:nonexclusive|:any]
                 state[:name]
                 format[:text|:binary]
                 workingbranch
                 anylabel[:name]
                 deferred[:add|:addfromarchive|:checkin|:drop|:import|:move|:rename|:updaterevision|:all]
                 unresolvedmerges
                 memberonbranch
                 pending[:add|:addfromarchive|:drop|:import|:movememberfrom|:movememberto|:renamefrom|:renameto|:update|:updaterevision|:all]
                 workinprogress
                 sparsecontents
                 rule[:defined|:invalid|:memberrevdiffers]
                 archiveshared
                 caseinsensitivefile:<expression>
                 outofscope
        -R  Select recursively
        --[no|confirm]recurse  Select recursively
        --[no]failOnAmbiguousProject  Whether to abort when multiple projects correspond to a flat project string.
        -S value  The name of the sandbox
        --sandbox=value  The name of the sandbox
        --[no]awaitServer  If server does not respond, keep trying
        -?  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
        --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"
票数 2
EN

Stack Overflow用户

发布于 2016-05-10 17:20:57

最好的方法应该是检查具有/输出锁定的头部修订。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/28403059

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档