checkin

Forcing a TFS checkin of a file via C#

Hi there, How can I specify that I ALWAYS want the local file to replace the server copy even if the TFS copy is newer? if (pendingChanges.GetUpperBound(0)>-1) ChangeSetNumber = workspace.CheckIn(pendingChanges, filename); I can see from the intelisense that I can specify **checkinoptions** as a parameter of the CheckIn method, I j...

Programatically checking files into TFS getting more than expected...

Hi there, So I have a .NET app which goes thru and generates a series of files, outputs them to a local directory and then determines if it needs to update an existing file or add a new file into a TFS (Team Foundation Server) project. I have a single workspace on my local machine and there are 10 different working folders that are oth...

Document is not updated after check in from Word

Hi, one of our customers has great problems checking in documents to a SharePoint library form Word 2007. Whenever she check's in a document to the library the meta data as version number and checkin comment are updated but not the document itself. The library is configured in such a way that versioning is activated and documents have...

How can I commit multiple directories at once using subversion?

I tried using svn ci dir/a dir/b -m "my comment" but this doesn't work. I also used svn ci dir/a/* dir/b/* -m "my comment" and it too doesn't work. I know you can specify multiple files, but how can I tell subversion to check in all modified files in these folders? I mainly want to do this so that all my changes get in on one revision. ...

Visual SourceSafe 2005 integrated with VS2008 - missing checkin prompt for comment

I have been using Visual Studio integrated with Source Safe for years, when I checkin a file from the Solution Explorer in VS2008 I am not prompted for a comment when I previously I was prompted. To add a comment now, I go to the pending checkin view and add a comment that way. My guess at some point I must have accidentally changed some...

How to remove the Override checkbox from TFS 2008 check ins with policy failures

In short, I want to stop our devs from overriding policy failures on check in. If I can't do that then I want to modify the Reason text box to look for something more than just a single character being typed in. ...

How do you check in code with different comments on different classes?

What do you think is the best practice for checking in code from multiple files that implement multiple changes, but are ready to go in at one time? Do you check them all in at once, keeping the checking reasonably atomic, and put the changes in one long comment? Do you check in the files in groups so the right comment is associated wi...

Do custom check-in policies have to be deployed on the server at all?

I'm asking this question because I haven't seen it documented anywhere. We are using a combination of Team Foundation Server 2008 and Team Explorer 2005. Is it possible to deploy a custom check-in policy that works in such an environment ? Obviously, the custom check-in policy contains some code that must run on the client-side (in ord...

TFSBuild:How to trigger a build only when a particular file is checked in?

We have a particular file, say X.zip that is only modified by 1 or 2 people. Hence we don't want the build to trigger on every check-in, as the other files are mostly untouched. I need to check for a condition prior to building, whether the checked-in item is "X.zip" or not.. if yes, then trigger a build, else don't. We use only CI bui...

Can TFS or Visual Studio remind me about issues that have to be solved before a check in

I'm actually working on a tool that need some configuration before it can be used. To save some time a hard coded some values into the text boxes of the configuration tab, so I don't have to renter them every time I do some testing or debugging. As we're using TFS to manage our solutions I'm wondering if there is a way to mark those ha...

svn commit showing updated files as added

I checked in (modified )some of the files recently . When i'm trying to watch the Logs from my local machine every thing is perfect .(the checked in file shows modified status.) But When i try to watch the Log History from someone else's machine ,the checked in files are showing as newly added . Would someone suggest the reason for th...

How to integrate timereport after checkin in TFS?

We would like to integrate an extra popup/prompt when a user checks in something and associating it with a work item. The prompt should ask the user how much time he spent and how much time is left on the work item. This will work as timesheet material for the timereport and invoice. Has anybody any experience to share in this matter? Is...

SVN how do I check code into a specific branch, when I've checked code out from the trunk?

I need to check in my code changes to a certain branch but im not sure how to do that since my code is from trunk =/ ...

Should developers be forced to check-in before leaving work each day, even if the code does not compile?

During a previous consulting position, the developers where told to check-in code on a nightly basis, regardless if it complied or was complete. Managers were afraid of losing any code and said now we only lose one day at most. The place I'm currently it is investigating whether to implement this. Anyone have any pros/cons on this? Sho...

Subversion. Metrics. Get lines of added/updated code for each file in check-in programmatically

Hi all, I need your advice. In my application I need to get programmatically such metrics for users check-ins as lines of added/updated code for each file in check-in. This app is writed on c# and uses the Subversion as version control system. How can I do it? Offer me your ideas please... Thanks a lot! (: ...

VSTS2010 Addin Development - Check-in hooks

Hi, I've been tipping my toes in Visual Studio Add-In development. I've read some of the tutorials online, and studied some of the sample code provided. Now I actually want to perform custom actions before/after a TFS check-in command is called by the user, but I can't seem to figure out where I can find a hook to start this. Is there s...

Team Foundation Build 2010 - Check-in changed file during the build process

In my build workflow I change the assembly version information in AssemblyInfo.cs for some class libraries. How can I check-in my changes at the end of the build process? From what I see there is no such activity. ...

TFS Disk Structure - and "Add new folder" vs "Add solution"

Our organization recently got TFS 2008 set up ready for our use. I have a practice TeamProject available to play with. To simplify slightly, we previous organized our code on disk like this: -EC - Main - Database - someScript1.sql - someScript2.sql - Documents - ReleaseNotes_V1.doc - Sourc...

Comments vs Check-In Notes in TFS (VSTS)

What's the purpose of the Check-In Notes? Why use them instead of just the "Comment" you enter when you check-in. I see there are four types of Check-In Notes: Code Reviewer, Developer, Security Reviewer, and Performance Reviewer. Is the idea to put in the name of these reviewers or some actualy comments by these people. Does this...

Checking in Shelvesets

I'm a developer and I've made some changes to a solution, which I have saved off to a shelveset. Another developer unshelves my changes and builds the solution on a server. Is there a way for the second developer to check in my shelveset? I know he/she can check in the individual files comprising the shelveset. However, I was thinkin...