Show in Frame No Frame
Up Previous Next Title Page Index Contents Search

3.5.6 Overriding _vcsPaths() settings with .vcsPaths

If a given MetaEdit+ db is used by multiple users, and/or on multiple machines, the settings in the db in VCS Settings | Paths... are not necessarily appropriate for all users and machines. They cannot sensibly change the settings in _vcsPaths() there, as that would affect all users. However, they can override settings there by creating a .vcsPaths file in .ini format in their MetaEdit+ working directory (e.g. Documents\MetaEdit+ 5.5, Documents\MetaEdit+ 5.5 Client, or on Linux, ~/metaedit).

For instance, if _vcsPaths() contains lines like
$gitBaseDir = 'X:\git'
$gitBaseURL = 'https://otherUser@bitbucket.org/ourOrg'
these can be overridden by similar lines in .ini format in .vcsPaths
gitBaseDir=C:\git
gitBaseURL=https://myUser@bitbucket.org/ourOrg
Note that in .ini format there are no $ dollar signs, no spaces around =, and no single quotes around values.

As .vcsPaths is for all repositories, it should not override per-repository variables like $dbName (although this too may be used as a temporary measure, e.g. for one run of InitClone).

On Windows, Explorer may not allow manual creation of a file called .vcsPaths. You can name it something else initially, and then edit and save it to the correct name with Notepad or another text editor.



Show in Frame No Frame
Up Previous Next Title Page Index Contents Search