Adding files from subdirectories results in missing status

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
vrapp
Posts: 121
Joined: Tue Apr 06, 2004 12:34 pm
Contact:

Adding files from subdirectories results in missing status

Post by vrapp » Wed Jul 25, 2007 1:45 pm

Hello,

In file system, I have directory X with several subdirectories with files.

In Vault, I have directory Y which working directory is set to X.

The subdirectories of X each have multiple files; I want to add only one file from each subdirectory to Vault.

I right-click Y in Vault, select "add files/folders", then select subdirectories one by one, and check one file I want to add in each*. When I do it, Vault sets repository path of each file to $/Y/file.

In other words, even though the real files are in subdirectories, I add them all to the root of Y in Vault.

Then I commit the change, it finishes successfully, but in Vault the status of each file is Missing.

I think, if Vault does not support individual working directory per-file, then it probably shouldn't allow adding the files without subdirectories?

-----------
*) by the way, as suggestion, it would be convenient to have a button "select files by filter" in that dialog, similar to the existing "exclude".
Vadim Rapp

Terence
Posts: 164
Joined: Thu Feb 02, 2006 2:43 pm
Location: SourceGear

Post by Terence » Wed Jul 25, 2007 3:04 pm

If you add the file(s) to Y, and the working directory for Y is X, then those files are missing (as they don't exist on disk in X, but rather a subdirectory of X).

In Vault, the working folder is set at the Project (folder icon) level.

vrapp
Posts: 121
Joined: Tue Apr 06, 2004 12:34 pm
Contact:

Post by vrapp » Wed Jul 25, 2007 3:42 pm

so is it valid then to add files without subdirectories? I guess if Vault allows this, then there must be some way to work with those files then?
Vadim Rapp

Terence
Posts: 164
Joined: Thu Feb 02, 2006 2:43 pm
Location: SourceGear

Post by Terence » Wed Jul 25, 2007 3:52 pm

You may safely add a file from any location on disk to a project (folder icon) in the Vault repository.

vrapp
Posts: 121
Joined: Tue Apr 06, 2004 12:34 pm
Contact:

Post by vrapp » Wed Jul 25, 2007 3:55 pm

...and if I do, and then I want to check out that file, will it be checked out to the place from where it was added? or to the working directory defined for the project?
Vadim Rapp

Terence
Posts: 164
Joined: Thu Feb 02, 2006 2:43 pm
Location: SourceGear

Post by Terence » Wed Jul 25, 2007 4:01 pm

To the working directory defined for the Project.

However, there is another option. If you want to match your disk hierarchy, you can add the subdirectory itself to the Project. Doing so will create a sub Project off of Y (from your earlier example). You may then set the working folder for the newly created sub Project to that of the sub folder where you added the file(s).

Then your gets, check ins, and check outs will occur in the sub directory.

Post Reply