/plugins/P4Plugin/tags/p4_0_3_1/docs/users-guide.xml

# · XML · 194 lines · 154 code · 37 blank · 3 comment · 0 complexity · b274b8c9da141ad5859f242578d55ea5 MD5 · raw file

  1. <?xml version="1.0"?>
  2. <!-- P4Plugin user's guide -->
  3. <!-- (C) 2005 Marcelo Vanzin -->
  4. <!-- :tabSize=4:indentSize=4:noTabs=true: -->
  5. <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "docbookx.dtd">
  6. <book>
  7. <bookinfo>
  8. <title>P4Plugin</title>
  9. <authorgroup>
  10. <author><firstname>Marcelo</firstname><surname>Vanzin</surname></author>
  11. </authorgroup>
  12. <legalnotice>
  13. <title>Legal Notice</title>
  14. <para>
  15. Permission is granted to copy, distribute and/or modify
  16. this document under the terms of the GNU Free
  17. Documentation License, Version 1.1 or any later version
  18. published by the Free Software Foundation; with no
  19. <quote>Invariant Sections</quote>,
  20. <quote>Front-Cover Texts</quote> or
  21. <quote>Back-Cover Texts</quote>,
  22. each as defined in the license.
  23. A copy of the license can be found in the file
  24. <filename>COPYING.DOC.txt</filename> included with jEdit.
  25. </para>
  26. <para>
  27. This plugin is in no way associated with
  28. Perforce Software Inc.
  29. </para>
  30. </legalnotice>
  31. </bookinfo>
  32. <chapter id="presentation">
  33. <title>The Perforce Plugin</title>
  34. <para>
  35. The P4Plugin is a plugin that allows users to execute Perforce
  36. commands by using the ProjectViewer plugin as a "GUI" to
  37. Perforce. It allows the user to manage files being edited and
  38. manage open change lists, along with some extra functionality.
  39. </para>
  40. <para>
  41. The first step is to head to the Plugin Options dialog, go to
  42. the "Perforce" tab, and provide the path to the "p4" executable
  43. in your system.
  44. </para>
  45. <para>
  46. The main interface of the plugin is the ProjectViewer tree. If
  47. you edit the project's properties, you can enable the use of
  48. perforce for that project. Set the perforce client name that is
  49. managing the files in your tree, an optional user name, and
  50. start using the commands provided.
  51. </para>
  52. <para>
  53. Optionally, you can have a perforce "config" file in the root
  54. of your project, and the the "P4 Config" option to the name of
  55. that file. When using this option, you shouldn't set the client
  56. name (it should be in the config file). While perforce itself
  57. doesn't have this restriction, the plugin requires that the file
  58. be in the root of the project.
  59. </para>
  60. <para>
  61. By default the commands execute using the default change list.
  62. If you execute the actions that include the option of choosing a
  63. change list, a popup dialog will let you choose the change list
  64. where to add the changes you're making; you'll still be able to
  65. choose the default change list from that dialog.
  66. </para>
  67. <para>
  68. Some other actions that don't depend on the selection on the
  69. ProjectViewer tree are available: these are available through
  70. jEdit's "Plugins" menu, under the "Perforce Plugin" menu. You
  71. can view, create, edit and submit change lists, edit client
  72. specs for the current active project, and edit the user
  73. configuration.
  74. </para>
  75. <para>
  76. The plugin installs a jEdit mode file that does some basic
  77. highlighting when editing perforce change list specifications,
  78. client specs, and other perforce-related files. The mode name
  79. is called "perforce".
  80. </para>
  81. </chapter>
  82. <chapter>
  83. <title>Choosing an editor to use</title>
  84. <para>
  85. You can choose a custom editor to use when executing actions
  86. that require user input, such as creating change lists or
  87. submitting files. This is normally set in the P4EDITOR
  88. environment variable, but the plugin overrides that setting
  89. if you configure it to do so.
  90. </para>
  91. <para>
  92. You can set the editor globally, in the Plugin Options dialog,
  93. or on a per-project basis, looking at the project properties
  94. dialog.
  95. </para>
  96. <para>
  97. To use jEdit as the editor for perforce, you'll need to add
  98. the "-wait" option to the jEdit start command, so that the
  99. invocation waits until you finish editing the temporary buffer.
  100. Another useful option in this situation is the "-reuseview"
  101. switch, which tells jEdit to not create a new view when
  102. opening the temporary file. And example of a jEdit command
  103. line to use for editing perforce change lists would be:
  104. </para>
  105. <example>
  106. <title>Example jEdit command line</title>
  107. <para><command>/usr/local/bin/jedit -wait -reuseview</command></para>
  108. </example>
  109. <para>
  110. It's recommended that you don't start your main jEdit instance
  111. with the "-noserver" option, to avoid the overhead of starting
  112. a new jEdit instance when editing the temporary files.
  113. </para>
  114. </chapter>
  115. <chapter>
  116. <title>Monitoring read-only files</title>
  117. <para>
  118. If you choose "Monitor read-only files" in the Plugin Options
  119. dialog, the plugin will install a monitor whenever a read-only
  120. buffer is activated.
  121. </para>
  122. <para>
  123. If the file represented by the buffer belongs to the currently
  124. active project, and the project is using Perforce, then if you
  125. try to edit the file the plugin will ask you whether you want to
  126. execute "p4 edit" on the file, so that it can be edited.
  127. </para>
  128. <para>
  129. If you choose "no", the plugin won't ask the question again,
  130. until the next time you activate the buffer.
  131. </para>
  132. </chapter>
  133. <chapter>
  134. <title>Importing files under Perforce</title>
  135. <para>
  136. The Perforce plugin provider a filter that can be used to import
  137. only files that are know by Perforce when importing files into
  138. a project. Just choose the Perforce file filter from the filter
  139. list when performing the importing.
  140. </para>
  141. </chapter>
  142. <chapter>
  143. <title>Known Issues</title>
  144. <para>
  145. The plugin is in the early stages of development, so it should
  146. be treated as "beta".
  147. </para>
  148. <para>
  149. The plugin was developed with the Unix command line version of
  150. perforce (the "p4" command) in mind, so it most probably won't
  151. even try to work on Windows. While I have access to Perforce on
  152. Windows I've never used it, so I don't even know if they have a
  153. working p4 executable. If they do, then the plugin will probably
  154. break because it expects Unix-style paths everywhere.
  155. </para>
  156. </chapter>
  157. </book>