Ignoring Certain Files And Folders

Applies to TestComplete 15.70, last modified on December 17, 2024

You may want not to commit certain files or folders to your Mercurial repository and not to show them as untracked. In this case, you can add these files and folders to the repository’s ignore list.

Ignoring Individual Files

  1. Select File > Source Control > Commit from the TestComplete main menu.

    – or –

    Right-click your project suite in the Project Explorer and then click Source Control > Commit.

    – or –

    Click Commit Changes to Repository on the Source Control toolbar (if the toolbar is hidden, right-click the toolbar area and then click Source Control).

  2. In the Commit dialog, right-click the needed untracked file and then click Ignore (or Add to ignore list).

    Adding files to ignore list via the TestComplete Commit dialog

    Ignoring Files via TestComplete Commit Dialog

    Click the image to enlarge it.

    Adding files to ignore list via TortoiseHg’s Commit dialog

    Ignoring Files via TortoiseHg Commit Dialog

    Click the image to enlarge it.

TestComplete will add that file to the repository’s ignore list.

Setting Folders and Filename Patterns to Ignore

If you use the TortoiseHg client to work with Mercurial from TestComplete:

  1. Add the needed folders and file patterns to the ignore list the same way you add individual files to the ignore list. (See above.)

If you do not use TortoiseHg:

  1. Select File > Source Control > Edit Ignore Filter from the TestComplete main menu.

    – or –

    Right-click your project suite in the Project Explorer and then click Source Control > Edit Ignore Filter.

    – or –

    Click Launch the Ignore Filter Editor on the Source Control toolbar (if the toolbar is hidden, right-click the toolbar area and then click Source Control).

  2. In the Edit Ignore File dialog, edit your repository’s ignore list and click Save.

    Editing Ignore List

    For information on the ignore file syntax, see Mercurial documentation.

See Also

Integration With Mercurial - Common Tasks
Integration With Mercurial
Committing Changes to Repository

Highlight search results