View 包含导入内容的版本。您必须对这些文件中的某些文件进行差异化处理,以检查是否需要合并。我处于动态视图中,签出位于即将过时的快照中。我需要将这些签出合并到动态视图。动态VIE实际上是一个本地视图(混合动态视图-其中所有签出都在本地机器中)。我认为注册快照就可以

View 包含导入内容的版本。您必须对这些文件中的某些文件进行差异化处理,以检查是否需要合并。我处于动态视图中,签出位于即将过时的快照中。我需要将这些签出合并到动态视图。动态VIE实际上是一个本地视图(混合动态视图-其中所有签出都在本地机器中)。我认为注册快照就可以,view,merge,clearcase,snapshot,ibm-rational,View,Merge,Clearcase,Snapshot,Ibm Rational,包含导入内容的版本。您必须对这些文件中的某些文件进行差异化处理,以检查是否需要合并。我处于动态视图中,签出位于即将过时的快照中。我需要将这些签出合并到动态视图。动态VIE实际上是一个本地视图(混合动态视图-其中所有签出都在本地机器中)。我认为注册快照就可以了。由于本地视图数据库结构类似于快照数据库结构:Snapshot:'View.stg',本地视图:'.vws'。因此,我不得不猜测您拥有该“共定位”视图的完整父目录。在这种情况下,您应该拥有签出文件的本地副本。在这种情况下,为什么不在中检查更改


包含导入内容的版本。您必须对这些文件中的某些文件进行差异化处理,以检查是否需要合并。我处于动态视图中,签出位于即将过时的快照中。我需要将这些签出合并到动态视图。动态VIE实际上是一个本地视图(混合动态视图-其中所有签出都在本地机器中)。我认为注册快照就可以了。由于本地视图数据库结构类似于快照数据库结构:Snapshot:'View.stg',本地视图:'.vws'。因此,我不得不猜测您拥有该“共定位”视图的完整父目录。在这种情况下,您应该拥有签出文件的本地副本。在这种情况下,为什么不在中检查更改,然后从任一视图合并它们呢?如果您只有view.stg目录,而不是实际的“工作区”,那么这些更改将不再存在,除非您可以在某处找到工作区。很抱歉,响应太晚。至于你的问题:我不能签入一些我正在进行的工作,并且还没有完成,因为这是主干代码。顺便说一句,我写了并发布了贝娄,这是一个脚本,实际上做了我需要的:-)。非常感谢。剧本很有趣。向上投票。我的回答似乎没有涵盖您的具体情况。我修复了脚本中的一个错误,我假设视图位于我的C:文件夹中。将以下
pushd
c:
cd%source\u view\u path%
替换为只执行
pushd%source\u view\u path%
@echo off
REM ------------------------------- synopsis ----------------------------------
REM This script creates a list of all checked out into files.txt under the 
REM batch-file directory.
REM files in the following format:
REM \VOB1\file1.txt@@\main\branch_v111\CHECKEDOUT@@Comment for file1
REM \VOB2\file2.txt@@\main\branch_v111\CHECKEDOUT@@Comment for file2
REM \VOB2\file3.txt@@\main\branch_v111\CHECKEDOUT@@Comment for file3
REM ------------------------------- synopsis ----------------------------------

set source_view_path=C:\Snapshot\some-snapshot-john
set currentDirectory=%~dp0
set chekedOutOutputFile=%currentDirectory%find_co.txt
set resultFile=%currentDirectory%files.txt

@echo Getting checkouts of %source_view_path%
@echo %currentDirectory%

REM ---------------------------------------------------------------------------
REM The next code produces a find_co.txt intermediate file with the following 
REM format of checkouts:
REM <File Full Path>@@<Version ID>@@<File Comment>
REM    %n  - for file Name (With full path)
REM    %Vn - for file Version ID.
REM    %c  - for file Comment
REM
REM Example:
REM C:\MY_VIEW_PATH\VOB1\file1.txt@@\main\branch_v111\CHECKEDOUT@@Comment for file1
REM C:\MY_VIEW_PATH\VOB2\file2.txt@@\main\branch_v111\CHECKEDOUT@@Comment for file2
REM C:\MY_VIEW_PATH\VOB2\file3.txt@@\main\branch_v111\CHECKEDOUT@@Comment for file3
REM --------------------------------------------------------------------------- 
pushd %source_view_path%
cleartool lsco -cview -avobs -fmt "%%n@@%%Vn@@%%c" > "%chekedOutOutputFile%"
popd

del /q "%resultFile%"

REM ---------------------------------------------------------------------------
REM The following code formats the find_co.txt into files.txt with the desired 
REM result - <File VOB Path>@@<Version ID>@@<File Comment>
REM Example:
REM From -
REM C:\MY_VIEW_PATH\VOB1\file1.txt@@\main\branch_v111\CHECKEDOUT@@Comment for file1
REM C:\MY_VIEW_PATH\VOB2\file2.txt@@\main\branch_v111\CHECKEDOUT@@Comment for file2
REM C:\MY_VIEW_PATH\VOB2\file3.txt@@\main\branch_v111\CHECKEDOUT@@Comment for file3
REM To 
REM \VOB1\file1.txt@@\main\branch_v111\CHECKEDOUT@@Comment for file1
REM \VOB2\file2.txt@@\main\branch_v111\CHECKEDOUT@@Comment for file2
REM \VOB2\file3.txt@@\main\branch_v111\CHECKEDOUT@@Comment for file3
REM ---------------------------------------------------------------------------
for /F "usebackq tokens=*" %%A in ("%chekedOutOutputFile%") do (
    call ::removeSourceViewPath "%%%A"
)
goto endOfScript

REM ---------------------------------------------------------------------------
REM Manipulate the path of each file to exclude the view from it e.g:
REM C:\MY_VIEW_PATH\MY_VOB\file.txt -> \MY_VOB\file.txt
REM >>>-----------------> start of :removeSourceViewPath 
:removeSourceViewPath
    set str=%1
    call set "resultStr=%%str:%source_view_path%=%%"
    set resultStr=%resultStr:~1,-1%
    @echo %resultStr%
    @echo.%resultStr%>>"%resultFile%"
    exit /b

REM <<<-----------------< end of :removeSourceViewPath
REM ---------------------------------------------------------------------------

:endOfScript

pause
@echo ------------------------------------------------------------------
@echo off
REM ------------------------------- synopsis ----------------------------------
REM This script takes a list of all files from the files.txt which is under 
REM this batch-file directory and merges them from TARGET to SOURCES views
REM files in the following format:
REM <File VOB Path>@@<Version ID>@@<File Comment>
REM are merged from <SOURCE_VIEW>\<File VOB Path> to 
REM <TARGET_VIEW>\<File VOB Path> with the <File Comment> as comment.
REM ------------------------------- synopsis ----------------------------------
setlocal

set TARGET_VIEW=V:\v11-john-local-nt
set SOURCE_VIEW=C:\Snapshot\some-snapshot-john

REM ---------------------------------------------------------------------------
REM The following takes the line:
REM <File VOB Path>@@<Version ID>@@<File Comment> and checks out the target 
REM file, then it automatically merges the file from source to target.
REM Note that the version is not required here (it might be required if we
REM want to merged from a version which is not the latest one in the branch).
REM ---------------------------------------------------------------------------
for /f "tokens=1,2,3 delims=@@" %%i in (files.txt) do (
    cleartool co -unreserved -c "%%k" %TARGET_VIEW%%%i
    cleartool merge -to %TARGET_VIEW%%%i %SOURCE_VIEW%%%i 
)

endlocal

pause