Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Source Safe / October 2004

Tip: Looking for answers? Try searching our database.

Version weirdness

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Brian J. Sayatovic - 20 Oct 2004 15:24 GMT
I've got a file stored in VSS named ".project".  When I pull up its
history in the VSS Explorer, the details of the most recent item
shows:

Version: 101
Date: 10/19/04 8:02a
Label: dev_041019

Now this is interesting because the history dialog says there are only
42 items (including labels).  So, in the details dialog, I click
"previous" to go to the preceeding item:

Version: 5
Date: 6/17/04 9:39a
Label:

Version 5 sounds more realistic considering how few changes have been
made to this file since it was born.  Now, I click "next" to go back
to the most recent item and would expect to see what I showed above
with version 101, but, instead I see:

Version: 5
Date: 6/17/04 9:39a
Label:

So the most recent item started as version 101, but when I did
"previous" and then "next" which shoudl be a zero-sum operation, the
version is magically 5 instead of 101.  In fact, the date and label
are also changed.  In reality, all of that data is not updated in the
dialog.

Now, I can repeat this by starting by clicking "details" on any item
in the list (i.e. the second most recent says version 99, I click
previous/next and then it says 5).

I'm guessing this is a bug.  But this is a bug that wreaks havoc.  I'm
using a plugin to VSS from our IDE, and when you try to do a "diff",
it gets a "Version not found" error because it's trying to find
version 101.  And even though VSS Explorer momentarily shows version
101, it seems to be a fleeting meory because even it can't find it.

Anybody have a clue as to what is going on?
Mike - 20 Oct 2004 18:10 GMT
Brian,

What product are you using? It's not a bug, but it is a problematic design.
The versioning of labels is different than that for revisions. The tool
you're using is not taking that into consideration.

Mike

> I've got a file stored in VSS named ".project".  When I pull up its
> history in the VSS Explorer, the details of the most recent item
[quoted text clipped - 38 lines]
>
> Anybody have a clue as to what is going on?
Brian J. Sayatovic - 21 Oct 2004 11:08 GMT
Mike,

I see this problem in two tools.  The problem as I described in my
first post was exhibited by the main VIsual Source Safe GUI (a.k.a.
Visual SourceSafe Explorer) from VSS version 6.0.

The second tool I have the problem with is the VSS PLugin for eclipse
(open source).  Now, I first suspected it to be a problem with the VSS
Plugin.  It was looking for a version 101 on this file which I doubted
existed.

When I went into the VSS GUI to check, I found that it too reported
that file most recently to be version 101.  It was only when I started
using the previous/next buttons in the history details dialog that I
realized there was something strange going on.

I'm intruiged by what you said of label versions vs. revision
versions.  I never knew that.  But what is it I'm seeing in VSS's own
GUI?  The same bug I'm experiencing through the plugin, or a visual
glitch?

Regards,
Brian.

> Brian,
>
[quoted text clipped - 3 lines]
>
> Mike
Mike - 21 Oct 2004 18:04 GMT
Brian,

I see what you're saying now. It could be considered a bug in the VSS UI,
but in a way it's not. Both details are really showing the truth. The first
time you look at a labeled item via the details dialog (without browsing) it
shows you the label version (not the revision version). As you browse back
and forth it shows you the revision version for labels...instead of the
label version. It's all pretty confusing, via the VSS UI. With regard to the
Eclipse VSS plugin (http://sourceforge.net/projects/vssplugin/) it sounds
like this product is not handling diffing labels correctly. When they do a
diff based on the label they should be using the label as a
parameter...instead of the version.

Mike

> Mike,
>
[quoted text clipped - 27 lines]
> >
> > Mike
Brian J. Sayatovic - 22 Oct 2004 12:38 GMT
Any idea where some official documentation on the various types of versions
in VSS can be found?

Regards,
Brian.

> Brian,
>
[quoted text clipped - 45 lines]
> > >
> > > Mike
Mike - 22 Oct 2004 16:23 GMT
Brian,

I'm not sure label versions are documented anywhere. You'll find info on
retrieving files via labels at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvss/html/msdn
_vssole.asp
.
You can also use the command-line to retrieve a label. Note: there are some
problems with getting certain types of labels, such as numeric ones. Labels
should always begin with alpha characters, IMO...to avoid this problem.

Mike

> Any idea where some official documentation on the various types of versions
> in VSS can be found?
[quoted text clipped - 55 lines]
> > > >
> > > > Mike
Joe Masters - 26 Oct 2004 06:06 GMT
Brian,

Don't use periods as the first character in filenames or project names.
They're not supported, but not rejected, and will probably cause problems
when you can least afford to look into them.

Joe

> Any idea where some official documentation on the various types of
> versions
[quoted text clipped - 58 lines]
>> > >
>> > > Mike
Brian J. Sayatovic - 26 Oct 2004 13:20 GMT
Thanks, Joe.

I've encountered this already the hard way.  Actually, filenames with one
period (i.e. ".project") are ok, but more than one period are not (i.e.
".project.bak").  And for folders, any period at all is disallowed.

I am curious as to why this restriction exists, but for now, I'm living with
it by working around it.

Regards,
Brian.

> Brian,
>
[quoted text clipped - 66 lines]
> >> > >
> >> > > Mike

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.