cleartool diffbl
매뉴얼 페이지를 보면 서식 옵션이 표시되지 않습니다.
즉, fmt_ccase option 중 하나를 사용하여 각 작업에 cleartool describe -fmt
을 입력하여 해당 명령의 결과를 구문 분석해야합니다.
This thread
당신이 따라야 할 프로세스의 아이디어를 제공하지만, 당신이 그것을 필요로하는 경우이 창에 적합 할, bash는 (유닉스)에 있습니다
: 일기 좋게 여러 라인에서
for act in $(ct diffbl -act [email protected]/vobs/apvob [email protected]/vobs/apvob | grep ">>" | grep -v "deliver." | cut -f2 -d " "); do echo "Activity: $act"; cleartool desc -fmt "%d\n" activity:$act; echo; done
을
for act in $(ct diffbl -act [email protected]/vobs/apvob [email protected]/vobs/apvob
| grep ">>"
| grep -v "deliver."
| cut -f2 -d " ");
do
echo "Activity: $act"; cleartool desc -fmt "%d\n" activity:$act; echo;
done
"deliver.
"액티비티를 제외하면 "How to find files asssociated with a ClearCase UCM activity?"에 설명 된대로 액티비티에만 집중하고 있습니다.
OP Lax 보고서는 성공적으로, 활동의 이름을 추출하기 위해 관리하는 데 :
desc -fmt "%Nd\n" "activity:myActivityId"
(@\pvob
이미 diffbl
명령의 결과의 일부가되는 락스 그냥 activityid
를 분석한다. diffbl
결과에서 desc
명령을 입력하십시오)
그는 다음을 추가합니다 :
답장을
Regex.Matches(diffBlOutput, "myInterestedPattern");
And for each match in regex result, I get the activity with
RegexMatch.Groups["activity"].ToString()
activityid
is actually a substring of this string as the result is always " activtyid activityName
" so, substring(0,result.indexOf(' '));
gets me the activity id.
2 단계 {다음의 코멘트에 계속} : - : cleartool> DESC - 그럼 난은 "버그 수정 ABCDClient" 1 시도의 활동 정보를 얻기 위해 다음과 같은 노력 -fmt "% d \ n" "Bugfix_ABCDClient @ \ CDE_Components @ \ MYProject _PVOB" cleartool : 오류 : "Bugfix_ABCDClient @ \ CDE_Components @ \ MYProject _PVOB"에 액세스 할 수 없습니다. 해당 파일이나 디렉토리가 없습니다. Try2 : - cleartool> "Bugfix_ABCDClient @ CDE_Components \ 내림차순 -fmt"% d 개 \ n을 "" cleartool : 오류 : 액세스 할 수 없습니다 " "CDE_Components \ Bugfix_ABCDClient @를 : 해당 파일이나 디렉토리. 내가 실수를하면 알려주실 수 있습니까?. – Lax
@ user1402644 두 개의 설명 : 1/활동과 같은 특정 객체에 대한 설명에는 ** 완전한 이름 ** :'activity : anActivity @ \ apvob'이 필요합니다. 2/''MyProject_PVob '이 구성 요소, 스트림, 프로젝트 및 활동을 포함하는 게시판 인 경우 설명은'activity : deliver.abcde_MYPACKAGE.20111116.152232 @ \ MyProject_PVob'을 참조해야합니다. 그러나'CDE_Components'도 * 역시 * pvob이라면 예, 정규화 된 이름은'activity : deliver.abcde_MYPACKAGE.20111116.152232 @ \ CDE_Components'입니다. – VonC