Odd behavior of checkout in Web Application Projects

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

Moderator: SourceGear

Post Reply
BradleyUffner
Posts: 49
Joined: Mon Jun 11, 2007 3:37 pm

Odd behavior of checkout in Web Application Projects

Post by BradleyUffner » Fri Aug 10, 2007 9:31 am

I'm not sure if this new behavior of checkout is intentional or not, but it's deffinitly different.

Using the 2005 client of vault 4.0.3, if I double click a .aspx file, and edit it's code behind file by typing, only the .vb part fo the page gets checked out. Using the 2003 client doing this same thing checked out all 3 parts of the page, the .aspx, the .vb and the .designer.vb file. The problem with it not checking out all the files is that the soution explorer doesn't show the page as being checked out at all. You actually have to select the option to "Show All Files" and expand the page node in solution explorer to be able to see that the .vb file for the page is checked out.

If you do not have "all files" selected and you right click the page in SE and do a checkout, it gets all 3 files.

Even stranger is if you again enable the "show all files", expand the page node, right click the .aspx file, and checkout, it checked out both the .aspx file, and the .designer file, but NOT the .vb file.

It it possible to get the old behavior from the 2003 client back? I want the 3 files that represent a page in a web application project to always be checked in and out as a group.


Another bit of odd behavior we noticed with this. uncheck "show all files", and edit the code behind (.vb) file of a page so that it gets auto checked out. First issue is that the Pending Changes window does NOT show that the file is pending checkin, even though it is checked out. Next,right click the page in SE and Undo checkout. If you revert the local file VS doesn't reload the reverted file, and your changes are still displayed even though the file has been reverted. If you then clsoe the window you are prompted to save, which causes the file to be checked out again.

BradleyUffner
Posts: 49
Joined: Mon Jun 11, 2007 3:37 pm

Post by BradleyUffner » Fri Aug 10, 2007 9:40 am

More info. The problem with the pending changes not showing the .vb file as checked out only happens if it was checkd out automatically by typing in the .vb file. If you explicitly check the file out using solution explorer with "show all files", th epending changes window correctly shows it as checked out.

ian_sg
Posts: 787
Joined: Wed May 04, 2005 10:55 am
Location: SourceGear
Contact:

Post by ian_sg » Mon Aug 13, 2007 8:57 am

Bradley,

Thanks for the report. We're aware of this behavior, and I was sort of on the fence about whether or not it's a "bug." You've made some good arguments for why we ought to just work like the MSSCCI (2003) client does. You can expect us to do this (at least as an option, if not the default) in a future release.

As far as reverting to the 2003 behavior, the only way to do that is to use the 2003-compatible client. Despite its name, it works just fine in Visual Studio 2005.
Ian Olsen
SourceGear

Post Reply