Paul Hacker

Hi,

I am try to do a PendRename via the TFS API. I am basically iterating through a list of changesets and checking them in as I go. When I come on to a ChangeType of Rename, I cannot seem to get the PendRename to recognize any changes. I have the old local path and the new local path, but it never seems to return a value other than "0". Can anyone explain to me what exactly the PendRename is doing, or what I may be failing to do.

-paul



Re: Team Foundation Server - Version Control PendRename issue

Eugene Zakhareyev

Paul,

As far as I understand it, you supposed to call pend rename when you rename version control item, so the sequence would be

1. PendRename(oldName, newName) (on your current workspace)

2. Check in the changes with CheckIn method

Frankly, I do not remember ever using return value on any of pend methods; I always used VersionControlServer NewPendingChange event or workspace QueryPendingSets for the changesets (I had some troubles with checkIn before that - trying to figure out what Buck Hodges later explained in his post)

Cheers, Eugene






Re: Team Foundation Server - Version Control PendRename issue

Paul Hacker

Thanks for that. I was working in two different workspaces and just could not see where the issued lied. Sometimes its better to step back for a few. Thats for the reply it works like a charm now.

-paul