Creating a New File

The New File command creates a new empty file in the current directory (the directory that's highlighted in the Workspace Explorer) of your workspace tree. It can also add the directory to the depot — that is, place the directory under version control by converting it to an element.

If you choose not to place the file under version control, you can do so later, with the Keep command, for example.

To create a new file:

  1. In the Workspace Explorer of the File Browser, navigate to the directory in which you want to create the new file. Then, click the New File button in the Details pane toolbar.

    The Create New File dialog box appears:

  2. In the Name field, enter the simple name (leaf name) of the new file.
  3. Do you want to place the new file under AccuRev control right now?

    If no, click Ok to just create the new file in your workspace. (You can always do this later using the Keep command, for example.)

    If yes, select the Add to Depot check box and click Ok.

    The Add to Depot dialog box appears.

  4. Optionally enter a comment to document your reason for creating this file and placing it under AccuRev control. The comment string becomes a permanent annotation to the version you're creating. (AccuRev itself does not require a comment, but your organization can establish such a requirement by putting a trigger on the Add to Depot command.)
  5. Click the Advanced button to display an extended panel that lets you specify the file type, lock type, and link creation.

    • File Type. By default, AccuRev determines the element type for the newly created version automatically (text or binary). You can override the default by specifying either of these types or ptext (a variant of text). See AccuRev Element Types.
    • Lock Type. Choosing Serial Development places a lock on the element to ensure that users in sibling workspaces won't have to merge their work on this element. The lock remains on the element until you (or someone else) changes this value to Parallel Development in a subsequent Keep command. See The Locks Dialog Box.
    • Symbolic Links. By default, a symbolic link (UNIX/Linux) or symlink/symlinkd/junction point (Windows) is added to the depot as an AccuRev element link, not as an AccuRev symbolic link. Use this checkbox to cause such objects to be converted to AccuRev symbolic links.
  6. Click Ok to add the new file to AccuRev with the options you specified.