command-line - PlasticSCM:将所有更改提交到部分工作区,包括新文件和删除的文件?

标签 command-line plasticscm

我正在寻找一个自动化命令行来提交对部分工作空间所做的所有更改,包括文件添加和删除。

cm checkin "path" --all

适用于非部分工作空间,包括新文件和已删除文件

并且

cm partial checkin "path" --applychanged

适用于部分工作空间,但不适用于新文件或已删除的文件。

由于“cmpartial”没有可用的 --all 关键字,我希望有一种解决方法,其中 Plastic 将包含在部分工作空间中更改、添加或删除的所有文件。

有什么想法吗?

帮助打印“CM 部分检查”

Commit changes to the repository.

Usage:

cm partial checkin | ci [<item_path>+] [-c=str_comment]
[--applychanged] [--keeplock] [--silent] [--dropconflicts]

Options:

item_path           Items to be checked-in, separated by spaces. Quotes (")
                    can be used to specify paths containing spaces.
                    Use . to apply checkin to current directory.
-c                  Specifies a comment to the changeset created in the
                    checkin operation.
--applychanged      Applies the checkin operation to the changed items
                    detected in the workspace along with the checked out
                    items.
--keeplock          Keeps the lock of the locked items after the checkin
                    operation.
--silent            Does not show any output.
--ignorefailed      Any changes that cannot be applied (because the lock
                    - a.k.a. exclusive checkout - cannot be adquired or because
                    local changes are in conflict with the server
                    changes) are discarded and the checkin operation
                    continues without them.

Remarks:

- If <item_path> is not specified, the checkin will involve all the
pending changes in the workspace.
- The checkin operation is always applied recursively from the given path.
- To checkin an item:
- The item must be under source code control.
- The item must be checked out.
- If the item is changed but not checked out the --applychanged flag has
to be specified.

Revision content should be different from previous revision in order to be
checked in.

Examples:

cm partial checkin file1.txt file2.txt
(Applies the checkin to file1.txt and file2.txt checked-out files.)

cm partial checkin .
(Applies checkin to current directory.)

cm partial ci file1.txt -c="my comment"
(Applies the checkin to file1.txt and includes a comment.)

cm partial checkin --applychanged
(Applies the checkin to all pending changes in the workspace.)

最佳答案

部分工作区中没有用于本地添加和删除文件的特​​定命令,但您可以在部分工作区中使用下一个解决方法:

1) cm findprivate | cm partial add -

2) cm status --localdeleted --short | cm rm -

3) cm partial checkin

关于command-line - PlasticSCM:将所有更改提交到部分工作区,包括新文件和删除的文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34666661/

相关文章:

plasticscm - 在开发周期中使用塑料 scm 的工作流程

mysql - 塑料SCM MySQL设置

github - 使用 Plastic SCM 同步 github 上的 fork

c++ - 为什么在 C++ 方法中使用系统 ("some.exe") 不像命令行那样工作?

"export"的 Windows 命令行替代方案

c# - 如何以编程方式阅读 PDF 书签

finalbuilder - 塑料SCM命令行 checkin

batch-file - 使用 WinRar 命令行压缩文件 - 正在使用的文件

git - 为 pull 远程分支定义 git 别名

git - INTEL-XDK 和源代码/版本控制 - 它是否受支持?