This section describes how to use the Explorer mode’s Include/Exclude View to choose the subset of directories and files you want to make available in a given workspace.To display the Include/Exclude View, select the Include/Exclude View check box at the bottom of the Explorer pane.When the Include/Exclude View is active, AccuRev adds another pane to the Details pane. The Rules pane displays any elements for which an include/exclude rule has been defined, as shown in the following illustration. If you are viewing a workspace or stream for which no rules have been defined, the Rules pane is empty.Tip: The Include/Exclude View check box setting is saved as a user preference in AccuRev’s preferences.xml file. The setting is applied to all workspaces and streams you subsequently open in the File Browser, though you can change it any time you wish.See Setting Include/Exclude Rules for more information.In Include/Exclude View, both the Explorer and Details panes show all elements in the workspace or stream. For example, if the top-level directory hobart is excluded, it still appears in both the Explorer and Details panes in Include/Exclude View, as shown in the preceding illustration. You can navigate into an excluded directory as you would any other. Its elements will have a status of (backed)(excluded).Excluded directories and files are not displayed in the File Browser when Include/Exclude View is turned off, however -- notice that the directory hobart does not appear in the following illustration:In the Include/Exclude View, the Details pane toolbar and context menu change to support operations associated with this view -- setting and removing include/exclude rules. A few of the standard toolbar buttons remain, to aid you in navigating the depot and determining element history. Commands for typical AccuRev operations -- Keep, Promote, and Merge, for example -- are not applicable in this view, so they are not displayed.Make the selected directory elements, but not any of the elements within the directory, appear in the workspace or stream. You can set additional Include or Include Directory Only rules to make part of the directory's contents appear.A depot contains a tools subdirectory, which contains a src subdirectory, which contain a scripts subdirectory, which contains two subdirectories, perl and python. If you need only the python subdirectory, not the rest of the tools subtree, use these commands:
• Set the Include rule on pythonIn the Rules pane, note that AccuRev automatically creates "incldo" (Include Directory Only) rules for the intermediate directories, src and scripts.
• The Refresh button contacts the AccuRev Server to refresh the list of streams displayed in the Basis Stream dialog box.
• The Snapshots Only checkbox restricts the streams shown to snapshot streams only. This setting (as well as the sort order of the columns in the dialog) is stored as a preference.
• The Name Filter field filters the streams shown using the text you enter in the field. If the stream name contains the text entered in this field, the stream appears. Otherwise, it is filtered out and does not appear.You can add any number of rules throughout the workspace or stream. Each rule that you add applies to a particular pathname within the depot's directory hierarchy (as shown in the "Element" column), and applies at a particular level in the depot's stream hierarchy (as shown in the "Set in Stream" column). A rule set in a dynamic stream gets inherited by lower-level streams; but a rule for the same element in a lower-level stream or workspace overrides a rule in a higher-level stream.
1. In the workspace or stream Explorer, select the Include/Exclude View checkbox.
2. In the Explorer pane, select the parent directory to expose in the Details pane the directory or files for which you wish to specify an include/exclude rule. For example, if you want to set a rule for the hobart directory, select the root node in the Explorer pane to display all children of the root node in the Details pane, as shown in the following illustration.
4. Select the rule you want to apply from the toolbar. See Types of Rules for detailed information on the implication and effect of setting include/exclude rules.Alternative: Right-click the selected objects and choose the rule from the context menu.
5. Click Yes to create the rule.Note: If you set the rule in a dynamic stream, remember that elements are not removed from workspaces below that stream until they are updated. Element exclusion, however, is instantly inherited by streams below that stream.
1. In the workspace or stream Explorer, select the Include/Exclude View checkbox.
2. Display the workspace or stream in which the rule was explicitly set (as shown in the Set In Stream column).
3. Right-click the rule, and select Clear Rule from the context menu.To leave Include/Exclude View in a workspace or stream, clear the checkbox at the bottom of the Explorer pane. The Rules pane disappears, and the Details pane reverts to displaying data for the current workspace or stream. Note that any elements that have been excluded are not displayed. See How Include/Exclude View Affects the File Browser Display for more information.
Micro Focus |