Storage Manager

Old Content - visit altium.com/documentation

Parent Page: VersionControl Panels

The Storage Manager panel shown with files right-click commands.

Summary

The Storage Manager panel allows you to navigate the active project in terms of its file storage in Windows. The panel also provides access to the local history feature for documents, as well as version control.

Panel access

The Storage Manager panel is implemented as a workspace panel, accessible by clicking on the System button at the bottom of the application window, or via the main View » Workspace Panels » System » Storage Manager menu.

Use the System button to open the Storage Manager.

The Projects Panel represents the logic structure of the project, whereas the Storage Manager provides you with a file management type interface.

Content and use

The Storage Manager presents a folder/file view of the active project's documents. You can immediately see which documents are part of the project and where they are stored, but you can also see other files that are stored but not explicitly added to the project. The Storage Manager lists the documents in the active project, including the path. Right click on a document to perform file management tasks such as renaming or deleting, as detailed in the following sections.

When the active document is an SVN Database Library (*.SVNDBLib), the panel will present the local working copy of the symbol and footprint libraries, checked out from a linked Subversion repository. The panel acts as central interface for committing changes to, and updating from, the repository. For more information, refer to the Working with Version-Controlled Database Libraries documentation.

The Storage Manager panel can be used for:

  • General everyday file management functions - for files in the project or within the active project's folder structure.
  • Management of symbol and footprint libraries stored in an SVN repository and associated with an SVN Database Library. The panel provides access to the local working directory into which a copy of the libraries stored in the repository are checked out. Committal of changes to the repository and reception of updates from the repository can only be performed through the panel.
  • Management of backups using the Local History feature (see Document Management - Local History).
  • As an SCC (Source Code Control) compliant version control interface for your projects.
  • As a CVS compliant (Concurrent Versions System) interface for your projects.
  • As an SVN (Subversion) compliant interface for your projects.
  • Performing a physical and electrical comparison of any two versions in either the Local History or the VCS Revision list.

Regions of the Storage Manager

The Storage Manager panel is divided into three key regions, providing the following functionality:

Folders region

When the active document is part of a project, or an SVN Database Library, the name of the project or library will be used as the heading for this region.This region of the panel provides a view of the folder structure for the active project.

The project file is listed at the top of the structure, corresponding to the root directory, with all other folders and sub-folders contained within that directory displayed below, in their storage hierarchy.

If the active document in the design editor window is part of the project, this project folder storage structure will remain displayed. If the active document is a free document (that is, not added to the project) just the entry for that document will appear in the region, representing the root directory in which that document resides. No other sub-folders will be displayed, even if they exist on the hard disk.

If the active document is an SVN Database Library file, the folder structure for the symbols and footprints checked out to the local working directory will be displayed. This directory is the local workspace from which modifications are committed to the libraries in the linked Subversion repository.

As you click on an entry, the documents contained within the root directory or sub-folder thereof will be listed in the Files region of the panel.

Right-clicking within the Folders region will open a context menu giving access to the following commands:

  • Refresh - refresh the content of the region, for example after using the Delete command or after having made changes to the folders using Windows Explorer.
  • Copy - copy the focused folder. This allows you to easily copy folders between projects. If the project entry itself is selected when this command is used, the entire folder structure will be copied.
  • Paste - paste a previously copied folder or project directory into the folder structure for the active project. The content will be pasted into the currently focused folder in the structure.
  • Delete - delete the selected folder(s) from the folder structure. A dialog will appear asking you to confirm the deletion. Proceeding will permanently delete the folder(s) from the hard disk. Note - -he entry for the project itself cannot be deleted.
  • Rename - rename the selected folder (or the focused folder in a group of selected folders). The entry for the folder will become editable. Simply type the new name for the folder as required. Note - -he entry for the project itself cannot be renamed.
  • New - create a new sub-folder beneath the currently focused folder in the structure. The folder will be added to the hard disk and the entry will become editable, allowing you to directly type the name for the folder as required.
  • Add Folder to Version Control - this command is available if the active project is under version control. It opens the Add to Version Control dialog where the selected folder in the Storage Manager Folders list will be added to version control under the project parent folder.
  • Get Changes From Repository - this command is only available when the active project or SVNDBLib is linked to version control. Use this command to update your local working copy of files in the selected folder and all sub-folders, with the latest version from the repository.
  • Clean Up - this command cleans up the SVN working copy, removing any copy locks and resuming unfinished operations due to a issues such as a file access interruption.

Files region

This region of the panel lists all documents currently stored in the root directory or sub-folder thereof, for the active project. For a free document, all documents stored in the same location as the free document will be displayed.

For an SVN Database Library document, this region will list all symbol or footprint libraries in the folder currently selected in the Folders region of the panel. These libraries are not those in the actual repository, but rather those that have been checked out to your local working directory.

As you click on an entry in the Folders region of the panel, the document content will be reflected, as shown.

For each document, the following information is displayed:

  • File - the name of the file, including extension.
  • Size - the size of the file on disk, in Bytes.
  • Kind - the type of file.
  • Date Modified - the date and time at which the file was last saved.
  • Status - the current status of the document with respect to version control.

Additional document information is conveyed using the following display entry techniques. (Note that many of these display types are only related to a document that is part of a project):

  • Purple text - used to distinguish the active project file.
  • Bold text - used to distinguish the active document in the design editor window.
  • Red text - used to distinguish a document that has been modified and yet to be saved (Note - -hen the document is both active and modified, it will appear as a highlighted red entry).
  • Gray text - used to distinguish a document that exists in a folder but is not added as part of the project. The entry in the Kind column will be enclosed in curly braces (e.g. {TEXT}). To hide these documents in the list, so that only those documents added to the project are shown, enable the Only Show Files in Current Project option, at the bottom-right of the region.
  • Italic text - used to distinguish a document that is added as part of the project but does not reside in the storage hierarchy for that project (e.g. a constraint file that is part of the installation).

As you click on a document entry, the path to the local folder in which that document resides is displayed at the top of the Storage Manager panel (the full path also appears as a tool-tip). The link status to a repository folder in a Subversion repository will also be shown. For example, this would reflect the repository folder in which the selected library resides, when working with an SVN Database Library.

To hide documents that exist in a folder but which are not actually added as part of the current project, check the Only Show Files in Current Project box, also shown to the top (right) of the Storage Manager panel.

Right-clicking within the Files region will open a context menu giving access to the following commands:

  • Open - open the selected document as the active document in the design editor window. If a group of documents are selected, all documents will be opened as tabbed documents in the design editor window, with the focused entry becoming the active document. (Double-clicking on a document entry will also open it as the active document in the design editor window)
  • Refresh - refresh the content of the region, for example after using the Delete command or after having made changes to the documents using Windows Explorer.
  • Copy - copy the selected document(s). This allows you to easily copy documents between folders of the same project or to a folder in a different project.
  • Paste - paste a previously copied document (or documents) into the focused folder for the active project.
  • Add Project Folder to Version Control - for projects not already committed to version control, this command will add the complete project folder to version control via the Add to Version Control dialog.
  • Delete - delete the selected document(s). A dialog will appear asking you to confirm the deletion. Proceeding will permanently delete the document(s) from the hard disk. Note - you cannot delete the project document.
  • Rename - rename the selected document (or the focused document in a group of selected documents). The entry for the documents filename will become editable. Type the new name as required.

Right-click Version Control commands

If you have version control software installed on your computer, additional version control-related commands will become available on the right-click menu. The exact commands available depend on whether the active project and its documents have been added to the version control repository and also which type of version control system you are using - CVS, SCCI or SVN. The following is a listing of all possible commands. Where commands are specific to a particular type of version control system, indication is made:

  • Add Project Folder to Version Control - use this command to add the selected project to your version control repository/database. This command is available only when the project has not already (or previously) been added to version control.
    After launching the command, the Add to Version Control dialog will appear (dependent on the version control software you are using), from where you will be required to select a Design Repository target, or create a new folder entry for the current project.
    After the storage area for the project has been defined - and therefore the project is linked to the database - the Add to Version Control dialog is populated with the project and its constituent documents, with the project file already selected for addition to the version control database. Select other files that you wish to put into version control at this time, as required.



    After clicking OK, the files will be added to the version control database and the entry Scheduled for addition will appear in the associated Status field for the document(s), in the Files region of the Storage Manager panel.


     
  • Commit Whole Project - use this command to commit a project to version control that has already been added, as indicated by the Scheduled for addition status of the files (see above). The subsequent Commit to Version Control dialog preselects the project files to be committed, and allows files to be manually checked/un-checked as required. The dialog also provides an area for any comment to be written. This is attached to the project document when it is checked in.



    After clicking OK, the files will be added to the version control database and the entry No modification will appear in the associated Status field for the document(s), in the Files region of the Storage Manager panel.



    Note that only files that are part of the project and that reside in the same folder as the project document will be checked in.
     
  • Remove Project From Version Control - use this command to remove the selected project from your version control repository/database. This command is available only when the project is currently added to version control.
    After launching the command, the Remove from Version Control dialog will appear, with the entry for the project selected ready.
    The associated project documents are also listed and you can select any or all of these for removal from the version control database as well. After clicking OK, the project and any other nominated documents will be progressed to the status of Scheduled for deletion.



    A subsequent Commit command (Commit Whole project or just Commit for individual fiiles) will remove the project files from the version control database and these documents will appear with the status entry Not in version control.
    Note that by removing the project itself from the version control database, you are requesting not to associate the project with version control and the link between Altium Designer and your version control software will be removed. Removing the project alone does not remove all associated project documents from your version control database. They will still be there, but as the link from Altium Designer to version control is no longer there, Altium Designer will behave as if they are not in the version control database. They will appear checked in again, only when the project is added back into version control and a refresh is carried out to re-synchronize the system.
     
  • Add To Version Control - use this command to add the selected file(s) to your version control repository. After launching the command, the file(s) status will change to Scheduled for addition. As with the case of adding a whole project, the final Commit step will offer the Edit Comments dialog.



    Use this dialog to attach a comment (or log message) to the file(s), for example stating why the file(s) are being added to version control. Either type a new comment or use previous comment text as required.
    Note that in order to be validly checked in, the selected file(s) must be part of the parent project. If a file being added is currently open, it should be saved prior to adding it to version control, as the last saved version of the file is taken into VCS and not the current copy in memory.
     
  • Remove From Version Control - use this command to remove the selected file(s) from your version control repository. The process of removal depends on the version control system in use:
    CVS and SVN - the file(s) will be removed directly once the change has been Committed.
    SCCI - the Remove from Version Control dialog will appear with the entry for the selected file(s) already selected. If a selected file is currently checked out, a dialog will appear beforehand prompting for confirmation to proceed with the removal. Clicking OK will effect removal from the VCS.
     
  • Commit (CVS and SVN) - use this command to check-in modifications made to the working copy of the selected file (distinguished by the Status Modified) into your VCS repository. The latest copy of the file in your working folder will be checked in and the associated revision number incremented - see Commit Whole Project above.
    Note that you will not be allowed to commit a file if someone else has committed an update since you checked out your copy of the file. In this case you will be required to perform an Update first before committing the file.

  • Restore (CVS and SVN) - use this command to restore missing files from the repository. Missing files means that the files are present in the repository but not on your local hard drive. This can happen if a file is deleted or renamed or if someone adds a new file to the project. Missing files can be retrieved from the version control repository by selecting Restore on the right click menu.

  • Refresh - use this command to interrogate the link between the selected project in the Storage Manager panel and the corresponding project that resides in the version control database and refresh the status of the local project and its documents. After launching the command, the status of the focused project and its documents is checked against the entries in the version control database and refreshed.
    This command can be used at any time, but is especially useful when you have performed an action - such as check in, check out, or remove in the version control software directly.
    You can also use the F5 short cut key on the Storage Manager panel to refresh the status of documents.

  • Update and Update Whole Project (CVS and SVN) - use this command to update the working copy of the selected file(s) with changes that exist in the latest revision for that file in the VCS repository.
     
  • VCS Properties - use this command to display property information with respect to the selected document's' entry in the VCS repository. After launching the command, a dialog will appear with property information relating to the focused document. The dialog interface and information contained therein will depend on the version control software you are using, but will normally include information such as file type, size, version and whether the file is currently checked out or not.
     
  • Check-out (SCCI) - use this command to check out the selected file(s) from the version control repository. The Check out file(s) dialog will appear, with the chosen document(s) selected ready for check out. The Advanced button provides access to advanced check out options for your particular version control software. These could include how to treat a writable copy of the file already in existence in your working folder and what time-stamp to use.
    After clicking OK, the latest version of the document stored in your version control database will be checked out to your work area. The Status entry for a file in the Storage Manager panel will depend on whether or not you are the only person to have checked out the file and, if your VCS supports multiple checkouts, whether the associated option for this is enabled or disabled:
    Checked out by me - the file is currently checked out by you alone
    Checked out - the file is currently checked out by more than one user (ASCII file) or another single user (binary file)
    Checked out by me exclusively - the file is currently checked out by you alone and is a binary file.
    Note that if checking out a file that is currently open, you should close (without saving) and reopen the document after using this command, in order to display and work on the checked out version of the file.
     
  • Undo Check-out (SCCI) - use this command to undo the checkout of the selected - and previously checked out file. After launching the command, the Undo Check Out dialog will appear, with the entry for the chosen document selected ready. The Advanced button provides access to advanced undo check out options for your particular version control software. These could include how to treat the local copy of the file when performing the undo. After clicking OK, the check out of the document will be canceled and the previous version of the document will be retained in the version control database.
    The Status entry for the file will change to No modification, unless it is still checked out by others elsewhere, in which case it will remain Checked out.
    How the local copy of the document is handled when using this command depends on the options set up/chosen in your version control software. For example, the local file may be overwritten with the previous version retained in the version control database, in which case all your changes will be lost. For the default options and advanced options applicable to the undo check out feature for your version control software, consult the associated documentation for the software.
     
  • Check-in (SCCI) - use this command to check-in the selected file(s) into your VCS repository. The latest copy of each file in your working folder will be checked in and the associated revision number incremented.
    After launching the command, the Check in file(s) dialog will appear, with the entry for the selected document(s) selected ready for checking in. After clicking OK, the document(s) will be checked into the version control database, in accordance with check in options defined for your version control software.
    The Status entry for the file will change to No Modification. If, however, the file is still checked out by others elsewhere, the Status will remain Checked out.
    Note that any file you wish to check in should be saved prior to using this command, otherwise the last saved version of the file will be checked in to the version control database and not the open document.
  • Get Latest Version (SCCI) - use this command to get the latest copy of the selected file, residing in your VCS repository. After launching the command, the Get Latest Version dialog appears, with the entry for the chosen document selected ready. The Advanced button provides access to advanced 'get' options for your particular version control software. These could include how to treat a writable copy of the file already in existence in your working folder and what time-stamp to use. After clicking OK, the latest version of the document stored in your version control database will be copied to your work area. The document is not checked out.
    The read/write status of the document copied to your work area depends on the options set in your version control software. By default, the Get Latest feature normally places a read-only copy in your work area.
     
  • Show History (SCCI) - use this command to view the history of the selected document, with respect to its entry in your version control repository. After launching the command, the history of the focused document inside the version control database will be shown. The information shown will depend on the version control software you are using, but will normally include significant events such as creation date, check-in dates and current version number.
    Note that you may get options dialogs prior to seeing the history of the document. Again, this will depend on the version control software you are using. Consult your version control software documentation for information on such history-related dialogs.

Time line region

The lower Time line for... region of the Storage Manager panel lists the historical and Version Control events over time for the currently selected folder or file.

This region can be switched between the default combined view and the 'classic' VCS/History view via the right click menu.

Top: Default 'Time line' view for Storage Manager history and VCS events. Bottom: The alternative 'classic' view, with VCS and Local History events segregated.

The commands and functions are common to both view types, and are covered below for the the classic dual-view mode.

VCS Revisions region

If the active project in the Folders region of the panel is under version control and you are using either the CVS or SVN version control systems, then selecting a document belonging to that project (in the Files region of the panel) will populate the VCS Revisions region with a historical Revisions list for that document.

A history for the selected library document will also be shown, when that library is a symbol or footprint library referenced by a database, which in turn is linked to an SVN Database Library file.

The revision history list can contain the following entry types:

  • Document - the version of the document currently open in the workspace. Modifications may have been made to this document and it has yet to be saved.
  • Last Saved Contents - the last saved version of the document (in your local, working folder).
  • RevisionNumber - Revision of the document in the VCS repository. When you modify the document, save it and then commit it to the VCS repository, a copy of it will be stored and the revision number incremented. The latest revision in VCS will be listed first.

For each entry in the list, the following information is provided:

  • Date Modified - for the Document and Last Saved Contents entries, this is the time the working copy of the document was last saved. For the VCS revision entries, this is the time at which the file was committed
  • Author - the name of the person currently logged into the VCS software
  • Comment - any applied comment to a VCS revision, applied when committing the file to the VCS repository. If no specific message text is entered, the default string *** empty log message *** will be used.

Right-clicking within the VCS Revisions region will open a context menu giving access to the following commands:

  • Compare - this command becomes available when two versions in the region are selected. Use it to perform a comparison between the documents (see Comparing Documents)
  • Open- use this command to open the selected version of the document in the design editor window. The name of the opened document will be prefixed with the revision number, for example [Revision 1.2] Buzzer.SchDoc. Note that this command will not be available if multiple version entries are selected within the region.
  • Switch to Combined View - switch the region to the alternate (single) Time line view, as mentioned above.

Local History region

This region of the panel presents a local history for the currently focused document in the Files region of the panel.

The history list can contain the following entries:

  • Document - the version of the document currently open in the workspace. Modifications may have been made to this document and it has yet to be saved
  • Last Saved Contents - the last saved version of the document
  • Version n - a local (manual) back-up version of the document. When you save the document, the version that was listed as the Last Saved Contents will be backed-up as entry Version 1. Saving again will back up the Last Saved Contents as Version 2, and so on, creating a history for the document
  • Version n [label] - local (manual) back-up version of the document that has a label applied to it
  • Version n [AutoSave Date Time] - an automatically generated back-up of the document, distinguished by an AutoSave-Date/Timestamp label.

The history is listed with the most recent version at the top, for example:
Document
Last Saved Contents
Version 3
Version 2 [AutoSave 2015-01-28 14~14~17-935]
Version 1 [Original Draft]

Right-clicking within the Local History region will open a context menu giving access to the following commands:

  • Compare - this command becomes available when two versions in the region are selected. Use it to perform a comparison between the documents (see Comparing Documents).
  • Open - use this command to open the selected version of the document in the design editor window. This command will not be available if multiple version entries are selected within the region.
  • Apply Label - use this command to add a meaningful label to the selected version (e.g. to easily recognize its purpose). The Apply Label dialog will appear - -imply type the name for the label as required, up to a maximum or 64 characters. The entry will appear as Version n [Label]. When a label is applied, the saved back-up will become read-only.
  • Revert to - use this command to revert back to the selected version of the file. The last saved version will be backed-up and a label applied to indicate which version it was subsequently reverted to. The chosen historical version will then become the current version and display in the design editor window.
  • Delete - use this command to delete the selected version(s) of the file. The file(s) will be permanently deleted from the hard disk. Note - you cannot delete the Document or Last Saved Contents entries.
  • Purge History - delete local history files for the selected document(s). The Confirm purge document history dialog will appear, from where you can determine exactly which local history files are to be purged.


    After clicking OK, all Version n entries (where n is the revision number) in the Local History region for the selected document(s) will be deleted, in accordance with the purge options defined. If you have enabled the option to include labeled versions of the file(s) in the purge, then the relevant Version n [label] entries will be deleted as well.
  • Show Autobackups - use this command to enable the display of automatically saved versions of files within the local history list, created using Altium Designer's Auto Save feature.
  • Switch to Combined View - change the panel region back to the Time line view, where combined VCS/History events are shown in a single region.

Comparing documents

Select two entries (in either the VCS Revisions or Local History regions of the panel), right-click and select Compare from the context menu. A comparison is made between the two documents, the result of which depends on the document type:

  • For schematic or PCB (design or library) documents, a graphical comparison is made and the differences detected listed in the Differences panel. With the two versions of the document open side by side in the design editor window, you can peruse the differences graphically. Clicking on a top-level folder for a detected difference will highlight that difference on both documents simultaneously.


     
  • For text-based ASCII documents, the CompareForm dialog will appear, showing a graphical 'diff' of the two versions of the document.



    The chosen documents are displayed side by side. The dialog is for comparison only - no modifications to a loaded document can be made.
    Through color-coding, the dialog highlights the various differences between the two document versions - lines added (pink), lines modified (green) and lines deleted (blue). A summary of changes and color-code legend is presented at the bottom left of the dialog.
    Use the and buttons at the top left of the dialog to move to the previous and next detected difference respectively.
    Use the button to re-synchronize the dialog with the stored documents, in effect reloading the documents.

Preferences

  • Version control functionality is enabled/disabled and the type of system chosen (CVS, SCCI or SVN) from the Data Management - Version Control page of the Preferences dialog (DXP » Preferences).
  • In order to view symbol and footprint libraries for the active SVN Database Library file, a copy of those libraries must be checked out to a nominated local working folder. This directory is specified on the Data Management - SVN Libraries page of the Preferences dialog. You must also ensure that the version control system is set to SVN - Subversion, on the Data Management - Version Control page of the Preferences dialog.
  • The Last Saved Contents version of the file is the actual master copy of the file, saved in the project folder. The manual back-up versions (Version 1, Version 2, etc) are stored in a sub-folder for the project - History. You may, if you wish, store all local back-up versions of files in a single storage location of your choosing. Simply enable the Use global repository option on the Data Management - Local History page of the Preferences dialog (DXP » Preferences), and nominate the required storage folder.
  • Any number of local (manually created) back-ups can be made, depending on personal preference and storage space. The back-ups will be retained on the hard disk until the nominated time (in days) has elapsed - again specified on the Data Management - Local History page of the Preferences dialog (DXP » Preferences). You can specify between 1 and 10 days to keep the generated back-up documents in local history, after which time they will be deleted (according to time-stamp) as new back-ups are made.
  • Open documents can be automatically backed-up using the Auto Save facility, which is configured on the Data Management - Backup page of the Preferences dialog (DXP » Preferences).

Notes

  • Standard multi-select features are supported - CTRL + Click and SHIFT + Click. In addition, multiple selection of documents in the Files, VCS Revisions and Local History regions of the panel can be performed using click and drag.
  • The local history for the active document in the design editor window can also be accessed using the Project » Local History » Show Local History command. The Local History dialog will appear, showing the current version of the open document, the last saved version of the document and any previously saved and stored back-ups.
  • Select two versions of the document that you wish to compare and click the Compare button. By default, the Document and Last Saved Contents entries will be selected ready for comparison.
  • For schematic and PCB design and library documents, two versions of the same document can also be graphically compared using the Project » Show Physical Differences command. Ensure that the previous version (typically a backup) is saved with a different name before opening. The backup version of the document does not need to be added to the project, it can be opened as a free document. Then, run the command to access the Choose Documents To Compare dialog which, when configured in Advanced mode, can be used to select the two versions of the document for comparison.

    Clicking OK will proceed with the comparison and the detected differences will be displayed in the Differences panel, in the same way as comparison of schematic or PCB (design or library) documents from within the Storage Manager panel or Local History dialog.
  • The following keyboard shortcuts can be used to navigate within the panel:
    • Up Arrow - focus the previous entry in a region
    • Down Arrow - focus the next entry in a region
    • Right Arrow - expand a top-level entry of sub-folder therein
    • Left Arrow - collapse a top-level entry or sub-folder therein
    • TAB - focus the next clockwise region of the panel.

See also

You are reporting an issue with the following selected text and/or image within the active document: