Sharepoint 2007 - How to delete a draft page - sharepoint-2007

I've created a page in Sharepoint for test/demonstration purposes. I checked it in so other developers could review it. Now that it's no longer needed I wish to delete the draft. When I select the page in the Version History, I only see an option for View or Restore, but no Delete. How can I delete this page so the latest version is the last published version.
Thanks.

You can't delete a version - you restore a version that becomes the new version. Then you approve and everything is fine.

Related

TFS Repository deleting status after upgrading major version

In the past, we seem to have created a TFS repository that was not part of a project. It seems that this is no longer supported by TFS in recent versions.
After updating TFS 2013 to 2015 and then 2017 we did not immediately notice the problem, but looking in the Collection Management screen on the web portal shows that the "Project" (which is not a project) is marked in a "Deleting" status.
The Microsoft page about this says that if you want to keep the code, no action needs to be taken. That "Deleting" status worries me however.
Is there any way to add an existing repo to a project? I can create a new project. I can add a new repo to a project. Can I add an existing repo to a project?
Alternatively, can I "Un-Deleting" that repo somehow?
That page have described this very clear:
Otherwise, no action is required. Placeholder team projects are
hidden in Web Access and Team Explorer in Visual Studio. Therefore,
they have no significant effect on day-to-day usage. As with any
other deleted item in Version Control, you can still access the
corresponding project in Source Control Explorer if the Show/Hide
Deleted Items button is enabled.
As you said, Placeholder team projects are not real team projects. When you delete a real team project, it will permanently removes data associated with that project from the database. You cannot recover it later.
They are just as deleted folders/items in TFS, you could undelete them in Visual Studio Source Control. Just select the deleted folders and right click it select undelete , and check in pending changes. Then you could get/download all files in the repo to local. Create a new team project, add files to the project, finally delete the particular placeholder project.
Since there is no way to import deleted files to either a existing project or a new project. Above is a safety workaround, the only disadvantage is it will lose the source control history of those folders. Otherwise, you could also take no action as the page suggested, the Placeholder team project will not be deleted. If you encounter any problem about this, you could contact the TFS support.

How to get old version on TFS of c# project and make edits on it and check In the old version with edits?

I'm working on WPF c# project , I need to get specific version and make edits on it then check in the whole old version with my edits .
what I'm do is that I'm get Specific Version from TFS then make my edit then when check in i found that latest files before check In come again on my check In version , I didn't need them I just need the full old version with my edits.Please Advise..
You need to do a branch! get specific version will not help.
You need to make a branch for the customer, then fix the issue in the customer branch and the main branch
Seems you want to change the existing changeset, unfortunately you cannot do that.
If you want to get the old version sources, you can Rollback the changeset, you may need to resolve the conflicts during the rollback. (Rollback Command)
If you want to get back and edit the sources based on the old version, then you can create a new branch as Siraf mentioned (eg : Branch from specific changeset). Then you can track the later changes on this new branch ( edit and check in the changes into the new branch.)

Delete link from a changeset from a code review in TFS 2013?

Is it possible to delete the link between a code review and a changeset in TFS 2013? We are on TFS 2013 Update 3 and are using Visual Studio 2013 Update 4.
A colleague checked in a code change but mistakenly typed in the wrong work item ID, thus associating his changeset with the wrong work item number. We were able to link the correct work item (a bug in this case) to the changeset, but we can't seem to figure out how to remove the link from the code review, which is totally unrelated. Unlike bugs, user stories, and other work item types, code reviews appear in the Team Explorer window, and the only options available are Open Work Item, New Linked Work Item, Create a Copy of Work Item, and Link to An Existing Item. What am I missing?
If you open the code review request from the TFS web portal then you'll be able to remove the changeset link to it.

Get or download Shelf Code in Team Foundation Server (TFS)

I am fairly new to TFS, like Mel from this post:
https://softwareengineering.stackexchange.com/q/142977/27650
I had a project on another PC, but I have been issued another PC.
Yes, I could go to management, and bug them with all of the various steps involved with finding and then getting my shelf project that I was working on last week, but I would rather find the information on my own.
I found MSDN's article on Shelve and Unshelve Pending Changes, but it did not cover how to get my shelf item. Perhaps there is a special term that I am unfamiliar with.
Likewise, I read over the article What's New in Visual Studio TFS 2012, since we are using VS2012. It appears to go over the changes that have occurred since the newest release.
How do I find my shelf items, so that I can continue working on them?
your question is answered under "Unshelving" on the page you referred to (Shelve and Unshelve Pending Changes). You click on unshelve and first step you do is finding your sehlveset. However please remember it works only if you shelved your changes before you lost your PC.
I got this resolved, but I did not like the way I found to do it.
In Team Explorer, I opened my last successful shelf item, did a Right-Click and selected View Shelfset Details:
From there, I went to each file listed in the Changes to Unshelf list.
I selected Open for that file, and then physically copied the text from that file to the corresponding file on my PC.
Again, I did this for each file that had changed in my Shelfset Details.
For whatever reason, Team Foundation Server does not pull that data back into my project whenever I select the "Unshelve Changes" option.

TFS 2010: GetThisVersion works but files don't show in View Pending Changes

Using TFS 2010
I am going back to the previous versions of several files across various projects(all of these were previously rolled back)
To do this, I View History on the project, and choose GetThisVersion.
This works fine.
I now want to see a list of all the files for which I have a previous version.
I expected these to show up in the View Pending Changes. But they don't. Why is that?
Do I have to explicitly check out the file first, and then go to a previous version?
Getting a file from the server (whichever version - latest or specific) doesn't check out the file. You have to check it out explicitely.
Depending on the options you have switched on ("Get latest version of item on checkout"), checking out a file may get the latest version at the same time. In this case, you may have to:
get a specific version first,
copy the files locally outside of TFS folders,
check out files and replace with the specific version.

Resources