同步两个VOB文件(通过clearfsimport),而不签入更新的文件 [英] sync two vobs file (by clearfsimport) without checking in the updated file
问题描述
我正在使用以下命令从A Vob同步B Vob文件
I am using following command to sync B vob files from A vob
clearfsimport -master -follow -nsetevent -comment $2 /vobs/A/xxx/*.h /vobs/B/xxx/
工作正常.但是它将自动检入所有更改.有没有一种方法可以执行相同的任务,但是将更新文件保留为检出状态?
It works fine. But it will check in all the changes automatically. Is there a way to do the same task but leave the update files in a check out status?
我想从A更新B的文件.构建我的程序,然后重新覆盖该分支.因此,如果更新后的文件为签出状态,我以后可以取消确认.很好,使用我之前的命令,所有内容都已签入.然后,我无法重新恢复分支.
I want to update the file for B from A. Build my programme, and then re-cover the branch. So if the updated files is an check out status, I can do unco later. Well with my command before, everything is checked in. I cann't re-cover my branch then.
谢谢.
正如VonC所说,无法阻止"clearfsimport"进行签入.他建议使用标签来恢复原状.
As VonC said, it's impossible to prevent "clearfsimport" to do the check in. And he suggested to use a label to recover back.
对我来说,我执行"clearfsimport"的分支是从标签分支的.我们称之为LABEL_01.所以我想我可以使用该标签进行恢复.是否有一种简单的方法(一个命令)来恢复/vobs/B/xxx/下的文件以标记LABEL_01?我想在我的bash脚本中执行此操作,因此命令越少/越容易越好.
For me, the branch where I did "clearfsimport" is branched from a label.Let's call it LABEL_01. So I guess I can use that label for recovery. Is there an easy way (one command) to recover the files under /vobs/B/xxx/ to label LABEL_01 ? I want to do it in my bash script, so the less/easy the command is, the better.
谢谢.
推荐答案
After having a look at the man page for clearfsimport
, no, it isn't possible to prevent the checkins.
我会在clearfsimport之前设置一个标签,并修改要在分支中创建的新版本的配置规范(类似于此配置规范).
这样,恢复"初始分支将很容易:不会在其中创建任何新版本.
I would set a label before the clearfsimport, and modify the config spec for the new version to be created in a branch (similar to this config spec).
That way, "re-cover" the initial branch would be easy: none of the new version would have been created in it.
这篇关于同步两个VOB文件(通过clearfsimport),而不签入更新的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!