by Brian Ensink
20. October 2009 21:58
Yipes! Don't ever accidentally click "Unshelve" a shelf set in TFS containing code you already checked in weeks ago. I wanted to delete an old shelf set but absent mindedly unshelved it instead, I even cancelled it half way through but the damage was already done. This completely hid the fact that I had already checked in those files. TFS showed the unshelved files as "Added" or "Edited" making me doubt whether I ever checked them in weeks ago. Only after confirming with another coworker whose TFS was not obscured with my shelf set did I trust that I had in fact checked in those files weeks ago and not made some other brain dead mistake. As penance I got to spend the next half hour or so undoing checkouts, getting latest, merging conflicts, overwriting readonly files, again and again, file by file, and gently reassuring TFS that I was not intentionally trying to violate the space-time continuum. So the moral of the story is don't accidently unshelve ancient code! Click with care.