BmtCVSCommands.rpi 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: bme
  5. (C) Copyright IBM Corp. 2003, 2010
  6. US Government Users Restricted Rights - Use, duplication or disclosure
  7. restricted by GSA ADP Schedule Contract with IBM Corp.
  8. -->
  9. <Command_File>
  10. <Repository_Info>
  11. <Path></Path>
  12. <Oem>FALSE</Oem>
  13. <FormatDriver>BmtCVSformat.exe</FormatDriver>
  14. <MaxCommentLength>512</MaxCommentLength>
  15. <Debug>FALSE</Debug>
  16. </Repository_Info>
  17. <Environment_Vars>
  18. <CVSROOT>:local:%PathToRep%</CVSROOT>
  19. </Environment_Vars>
  20. <LocaleReference>
  21. <location lang="en-US">bmt/CVSLangRes/CVS_english_us_tag.xml</location>
  22. <location lang="en-CA">bmt/CVSLangRes/CVS_english_ca_tag.xml</location>
  23. </LocaleReference>
  24. <ResourceStrings>
  25. <Version ResourceId="ID_VERSION">Version</Version>
  26. <VersionTT ResourceId="ID_VERSION_TT">"Displays the Version number"</VersionTT>
  27. <User ResourceId="ID_USER">User</User>
  28. <UserTT ResourceId="ID_USER_TT">"Displays the name of the user who commited the action."</UserTT>
  29. <Date ResourceId="ID_DATE">Date</Date>
  30. <DateTT ResourceId="ID_DATE_TT">"Displays the date on which the action was commited"</DateTT>
  31. <Comment ResourceId="ID_COMMENT">Comment</Comment>
  32. <CommentTT ResourceId="ID_COMMENT_TT">"Displays a brief description of the action"</CommentTT>
  33. <Checkin_Comment ResourceId="ID_CHECKIN_COMMENT">No comment was provided for this checkin.</Checkin_Comment>
  34. <Add_File ResourceId="ID_ADD_FILE">Adding file to BMT project</Add_File>
  35. <Add_Folder ResourceId="ID_ADD_FOLDER">Adding folder to BMT project</Add_Folder>
  36. </ResourceStrings>
  37. <ConnectionString>
  38. <Argument>
  39. <Name>RepositoryRoot</Name>
  40. <InputType>eRepRoot</InputType>
  41. <Value>CVSROOT</Value>
  42. <Description>"Defines the root of the repository."</Description>
  43. </Argument>
  44. <Argument>
  45. <Name>PathToRep</Name>
  46. <InputType>ePath</InputType>
  47. <Value/>
  48. <Description ResourceId="ID_PATHTOREP_DESCP">Path to repository</Description>
  49. </Argument>
  50. <Argument>
  51. <Name>PathInRep</Name>
  52. <InputType>ePathInRep</InputType>
  53. <Value/>
  54. <Description>Path in repository</Description>
  55. </Argument>
  56. <Argument>
  57. <Name>ProjectName</Name>
  58. <InputType>eProjectName</InputType>
  59. <Value/>
  60. <Description>Project name</Description>
  61. </Argument>
  62. </ConnectionString>
  63. <Section Name="Init">
  64. <command>
  65. </command>
  66. </Section>
  67. <Section Name="Create_Project" Dir="%ProjectPath%">
  68. <command>
  69. <cmd_str> init</cmd_str>
  70. </command>
  71. <command>
  72. <cmd_str> import -m "%Create_Comment%" "%PathInRep%" yoyo start</cmd_str>
  73. </command>
  74. <command Dir="..">
  75. <cmd_str> checkout -A -R -f -d "%ProjectName%" "%PathInRep%"</cmd_str>
  76. </command>
  77. </Section>
  78. <Section Name="Open_Project" Dir="">
  79. </Section>
  80. <Section Name="Add_Folder" Dir="%ProjectPath%">
  81. <command>
  82. <cmd_str> import -m "%AddFolder_Comment%" "%PathInRep%" yoyo start</cmd_str>
  83. </command>
  84. </Section>
  85. <Section Name="Add_File" Dir="%ProjectPath%" ImportSingleFile="TRUE">
  86. <command>
  87. <cmd_str> add -m "%AddFile_Comment%" "%ProjectPath%/%FileName%"</cmd_str>
  88. </command>
  89. <command>
  90. <cmd_str> commit -m "%AddFile_Comment%" "%ProjectPath%/%FileName%"</cmd_str>
  91. </command>
  92. </Section>
  93. <Section Name="Create_Folder" Dir="">
  94. </Section>
  95. <Section Name="ImportSingleFile" Dir="%ProjectPath%">
  96. <command>
  97. <cmd_str> import -m "%AddFile_Comment%" "%PathInRep%" yoyo start</cmd_str>
  98. </command>
  99. <command Dir="..">
  100. <cmd_str> checkout -A -R -f -d "%ProjectName%" "%PathInRep%"</cmd_str>
  101. </command>
  102. </Section>
  103. <Section Name="check_in_File" Dir="%ChangeDirTo%">
  104. <command>
  105. <cmd_str> admin -u "%Checkin_FileName%"</cmd_str>
  106. </command>
  107. <command>
  108. <cmd_str> commit -f -m "%Checkin_Comment%" "%Checkin_FileName%"</cmd_str>
  109. </command>
  110. </Section>
  111. <Section Name="check_in_Folder" Dir="%ChangeDirTo%" ProcessSubFolder="TRUE">
  112. </Section>
  113. <Section Name="check_out_File" Dir="%ChangeDirTo%">
  114. <command>
  115. <cmd_str> checkout -A -R -f -d . "%PathInRep%/%CheckOut_FileName%"</cmd_str>
  116. </command>
  117. <command>
  118. <cmd_str> admin -l "%CheckOut_FileName%"</cmd_str>
  119. </command>
  120. </Section>
  121. <Section Name="check_out_Folder" Dir="%ChangeDirTo%" ProcessSubFolder="TRUE">
  122. <command>
  123. <cmd_str> checkout -A -R -f -d "%ProjectName%" "%PathInRep%"</cmd_str>
  124. </command>
  125. <command>
  126. <cmd_str> admin -l "%ProjectName%"</cmd_str>
  127. </command>
  128. </Section>
  129. <Section Name="Undocheck_out_File" Dir="%ChangeDirTo%">
  130. <command>
  131. <cmd_str> admin -u "%FileName%"</cmd_str>
  132. </command>
  133. </Section>
  134. <Section Name="Undocheck_out_Folder" Dir="%ChangeDirTo%">
  135. <command>
  136. <cmd_str> admin -u "%ProjectPath%"</cmd_str>
  137. </command>
  138. </Section>
  139. <Section Name="Get_History" Dir="%ChangeDirTo%">
  140. <command>
  141. <cmd_str> log -b -r1.1 "%FileName%"</cmd_str>
  142. </command>
  143. </Section>
  144. <Section Name="Get_Version" Dir="%ChangeDirTo%">
  145. <command>
  146. <cmd_str> -Q update -A "%FileName%"</cmd_str>
  147. </command>
  148. <command File_Written_To="STDOUT">
  149. <cmd_str> -Q checkout -A -f -r"%Version_Number%" -p "%PathInRep%/%FileName%"</cmd_str>
  150. </command>
  151. </Section>
  152. <Section Name="Get_Latest_Version" Dir="%ChangeDirTo%" ProcessSubFolder="TRUE">
  153. <command>
  154. <cmd_str> checkout -A -R -f -r0.0 -d . "%PathInRep%"</cmd_str>
  155. </command>
  156. </Section>
  157. <Section Name="IsCheckedOut" Dir="%ProjectPath%">
  158. <command>
  159. <cmd_str> log -h "%FileName%"</cmd_str>
  160. </command>
  161. </Section>
  162. <Section Name="Properties">
  163. </Section>
  164. <Section Name="IsFileDiffernt" Dir="%ProjectPath%">
  165. <command>
  166. <cmd_str> diff -b -B -i -n -s -r%Version_Number% --brief "%FileName%"</cmd_str>
  167. </command>
  168. </Section>
  169. <Section Name="Terminate"/>
  170. </Command_File>