index > Team Foundation Server - Version Control > Keyword Expansion

Keyword Expansion


Hello,

I understand that VSTS does not support the keyword expansion elements of VSS ($History etc). Given this does anyone know how a developer could identify the version of a code file on their system without accessing source control?

Thanks,

Si...

Si B

Unfortunately, at this time there is no way to determine the version of a code file w/o accessing source control.

Ed

http://blogs.msdn.com/edhintz

Ed Hintz

Don't you consider removing a feature that has been in version control for 3 decades is somewhat of a serious brain seizure?

TDSdev
Not really. The whole point of building version control on SQL is that you don't need to store this kind of metadata in (fragile, hard to query) text formats anymore.

Note that TFS was written from the ground up; we didn't "remove" anything. It may appear in future versions depending on time & interest.
Richard Berg MSFT

then SQL sucks more than I'd been led to believe

"expanding" a keyword to put the "id" of the last person to change the file in human readable form doesn't seem very difficult... you know sometimes you just gotta ask them what they were thinking of (like I'm asking you what YOU were thinking of).

IF we don't have readily availalbe the things we got used to in 3 decades of doing version control, where, pray tell, is the "philosophy of our 'new better' version control" document? If it was written from the "ground up" (means, we won't look at anything similar to see if it's useful) there _must_ have been some overall philosophy of use somewhere. How are we to effectively use this "new better" system if we have to guess at how to use it?

I admit I badly _need_ the ability to have multiple people have a file "checked out" for editing (of course it's not the default, but I can live with that).

change sets (atomic commits?) are quite useful.

It will take a while to get used to not having individual file versions.........but a couple of people have "gone ballistic" about no "keyword expansion" and have suggested continuing with VSS <super YUCK> which, of course, won't let multiple people work on the same file.

TDSdev
Rightclick -> History seems more useful to me *shrug*

While I don't think keyword expansion is integral to our "version control philosophy", I agree it's sometimes a nifty thing to have. If it's important to you, please vote for it at connect.microsoft.com (opens Friday). We do look at those responses when designing future products.
Richard Berg MSFT

 Richard Berg MSFT wrote:
Not really.  The whole point of building version control on SQL is that you don't need to store this kind of metadata in (fragile, hard to query) text formats anymore.

Note that TFS was written from the ground up; we didn't "remove" anything.  It may appear in future versions depending on time & interest.
Coming in late...

Your comments make some pretty basic assumptions about working with source code.  You assume that everyone modifying the code has access to checkout and checkin files.  For many reasons, this may not be the case. A file may be distributed to someone outside the team or organization, for whatever reason, and modifications made.  If the version of the file in history is not known, automatic merging of those changes is near impossible.

One scenario I often perform with VSS:  Receive a modified file from 3rd party.  Look at the expanded keywords to find the SCC version of the file they were given.  Checkout said version of file.  Copy modified file overtop of the filesystem version of the file.  Attempt checkin.  The automatic merge will perform the merge notifying me of any conflicts.  Most of the time there are none and the changes are automatically merged.  Sure, not a fun task; but a task I've had to perform in many different organizations.

Without automatic keyword expansion this type of scenario cannot automatically be supported.  External tracking of individual file versions would need to be performed, leading to human error.

Why would the implementation detail of storing revision information in SQL server make keyword expansion in TFS any less useful?  Maybe the PowerToys team can make a quick toy to perform this?




http://www.peterRitchie.com/Blog | MSDN Forums Moderator | Microsoft MVP - Visual Developer, C#
Peter Ritchie

Even later....

Just had my first encounter with TFS and was shocked by the absence of keyword expansion!

A header with at least $Log$ and $Revision$ in every source file has always been mandatory in my projects. I need to able to check the revision number again and again without accessing the damn SQL Server. I'm not paranoid, I'm human! I make mistakes and this one of the ways I can prevent them.

And I need the logs so I might get a clue where to start searching for a bug - yes, I know they are on the SQL Server but I don't want to HAVE TO go there all the time.

And then there is one of my favourites: Expanding the keyword information into a constant or variable. Can be very useful sometimes, it's extremely easy and always up to date!

So please, please bring back the keywords!

Torben Christensen
There is a feedback bug open for keyword expansion on Connect. If it's important to you, please vote here: https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=192014
Richard Berg MSFT
reply 9

You can use google to search for other answers

 

More Articles

Lock Project recursively
VSTS Dev edition and TFS - IDE Locks on Add Item - BEEPS
TF14087: Cannot undelete...because not all of the deletion is bei...
Monitoring Version Control Activity
Check out files status
MSSCCI Provider and SQL Management Studio
Check-out error
Changing Permissions on New Branches
Branch from a label - why didn't this work?
How to get the content of changeset using Object Model
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

How does the OverlayIconIndex property o…
How can I find out what my team has chec…
Problem getting source from Foundation S…
Merge by WI
Connecting to TFS srever using it with VB6
I can't believe I miss SourceSafe!
Undo Check Out of another user
Associating server folders with comment.
Restricting access to older changesets /…
TF60032: The VSS Converter requires Vis…
Custom Check-In Policy
Undo unshelve
create work item via checkin policy
Proxy Server for Single Remote User?
Error when attempting to open Source Con…

Hot Articles

Delete same file twice - now find first …
Problems merging branches
finding out what changeset differs betwe…
Lock Project recursively
Custom Checkin Policy Installation
TF Workspace command-line
Deny delete permissions on source control
How do I view all Pending Changes for ot…
Sharing workspaces and working folders b…
Can anyone remove the workspace which cr…
Sharing common components across project…
Feature request - Check in approvals
Searching Team Foundation source control
Foundation server Proxy
How to "perminately" delete a …

Recommend Articles

Possible to get warnings message popup w…
New Projects do not get retrieved on get…
GetLatestVersion while compiling
Visual Source Safe -> Source Control …
Source control menu doesn't appear
Branching Model - Staircase vs. Mainline
Pending "rename folder" change
Architectural Question ??TFS API
Bug in MSSCCI Provider or in VS2003 ?
Check-in and get latest for other users
Can I modify behaviour of get operation …
TFS proxy in two differnt domains
Version Control on documents
Can't delete folder from the Source Cont…
Revision history in source file