Constructing Team System Web Access 2005 URL to a file in version control

24 08 2007

So the story goes like this – I query our internal Readify brains trust on how to generate a team system web access URL, as the encoding seemed quite strange.

Minutes later, Grant Holliday posts back a reply, letting me know that he had queried the team.

Shortly after, he sends the response from the team back to me.

http://[TeamSystemWebAccessSite]/UI/Pages/Scc/ViewSource.aspx?scc-item=[ItemData]

ItemData is the HtmlEncoded form of the query string, such as “id=10&cs=-1″

  • id: the item ID of the item in source control (you need to know this instead of the file path)
  • cs: changeset number (-1: latest)

For example, if the file id is 151611,

    HtmlEncode(“id=151611&cs=-1″) -> “id%3D151611%26cs%3D-1″

So the URL would then be

    http://tswa.domain.com/UI/Pages/Scc/ViewSource.aspx?scc-item=id%3D151611%26cs%3D-1

Fantastic.

Not long after that, Buck Hodges posts a blog entry about it!

Man – I love working for this Company!

I also love being connected to so many smart, wonderful people such as Grant, and the rest of our guys.


Actions

Information

Leave a comment