Automatically Checkout .less and .css files

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

Moderator: SourceGear

Post Reply
scousesheriff
Posts: 2
Joined: Thu Aug 21, 2014 4:30 am

Automatically Checkout .less and .css files

Post by scousesheriff » Thu Aug 21, 2014 4:36 am

Hi

We are using vault standard integrated with Visual Studio. We have .less files and the resulting .css files in our project and under source control. On save of the .less file, we generate the .css file.

Editing the .less file automatically checks the file out of vault, but not the .css file. We have the .css file as a dependant file within the project.

Is there any way to make both the .css auto checkout when the .less file does?

Many thanks

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Automatically Checkout .less and .css files

Post by Beth » Thu Aug 21, 2014 7:53 am

When your .css file is generated, is there first a .css file already present that it is replacing, and is that original file set to writable or read-only?

Automatic check outs can only occur on files that are read-only.
Beth Kieler
SourceGear Technical Support

scousesheriff
Posts: 2
Joined: Thu Aug 21, 2014 4:30 am

Re: Automatically Checkout .less and .css files

Post by scousesheriff » Thu Aug 21, 2014 8:03 am

Hi Beth

Yes, the file is already there and under source control. Therefore read only and not checked out.

What I am after, is for it to work the same way as aspx, aspx.cs and aspx.designer.cs, which all checkout when you edit any one of them.

Thanks
Mike

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Automatically Checkout .less and .css files

Post by Beth » Thu Aug 21, 2014 6:19 pm

Just because a file is in source control does not necessarily mean it is read-only. I'd still recommend checking to see if it's writable or read-only after it's generated.

After your .css file is generated, could you open your Vault GUI client and check the status of the .css file. Is it set to edited, renegade, or have a blank status?
Beth Kieler
SourceGear Technical Support

Post Reply