Fazer uma PerguntaFazer uma Pergunta
 

RespondidoHow to Update the comment after check in

  • quarta-feira, 26 de julho de 2006 16:17RNilesh Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     

    How to edit a comment that was added during the code check in. I want to update the comment which was added during the check in.

     

Respostas

  • quarta-feira, 26 de julho de 2006 17:23Adam Singer - MSFT Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     Respondido

    I assume you mean the contents of the "Comment" field in the checkin dialog?

    You can modify any checkin which you either created or have "ReviseOther" permission to all the items in the changeset. Suppose you want to update changeset 10. From the a Visual Studio Command Prompt, you can type "tf changeset 10" from within working folder of your workspace and then modify and save the changeset. From the IDE, you can open the changeset one of several ways- get the history of an item modified in the changeset and then right-click and select "Details" on the changeset you wish to update; select a item modified in the changeset and select the menu "Edit" -> "Go to..." to bring up the "Find Changesets" dialog and then search for the changeset, etc. No matter how you bring up the dialog in the IDE, it should give you the option to update the comment and checkin notes.

    Hope this helps-

    Cheers,
    Adam

  • quarta-feira, 16 de agosto de 2006 18:44Adam Singer - MSFT Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     Respondido

    How did you open the changeset? In the Beta3 and Beta3 Refresh versions, the Changeset dialog would not always open in "editable" state. However, in the RTM version, it always will. Please consider upgrading- there were many bug fixes and updates between Beta3 Refresh and RTM, including a fix for the issue you mention with changes not being uploaded.

    To work around that, you can specify "tf changeset <number> /server:<servername> /comment:<new comment>". Then, add one space to the comment in the window and click save. This will update the comment you specified on the command line. If you have a very long comment, you can type it into a text file (e.g. "comment.txt") and then use the command option "/comment:@comment.txt".

    Hope this helps-

    Cheers,
    Adam

Todas as Respostas

  • quarta-feira, 26 de julho de 2006 17:23Adam Singer - MSFT Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     Respondido

    I assume you mean the contents of the "Comment" field in the checkin dialog?

    You can modify any checkin which you either created or have "ReviseOther" permission to all the items in the changeset. Suppose you want to update changeset 10. From the a Visual Studio Command Prompt, you can type "tf changeset 10" from within working folder of your workspace and then modify and save the changeset. From the IDE, you can open the changeset one of several ways- get the history of an item modified in the changeset and then right-click and select "Details" on the changeset you wish to update; select a item modified in the changeset and select the menu "Edit" -> "Go to..." to bring up the "Find Changesets" dialog and then search for the changeset, etc. No matter how you bring up the dialog in the IDE, it should give you the option to update the comment and checkin notes.

    Hope this helps-

    Cheers,
    Adam

  • quarta-feira, 16 de agosto de 2006 17:08Mamatha Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     

    I had to update a comment on a changeset, but I have the changeset comment (created by me) as a read-only text.

    I am using beta3 Refresh with Contributor user rights on the project.

    AlsoI tried to update it from the command-line using the tf changeset <changesetnumber> /server:<servername>, which brings the changeset dialog with editable comment window. I change the comment and click "Save" , but my changes are not published on the server.

    Any inputs/thoughts to this.

  • quarta-feira, 16 de agosto de 2006 18:44Adam Singer - MSFT Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     Respondido

    How did you open the changeset? In the Beta3 and Beta3 Refresh versions, the Changeset dialog would not always open in "editable" state. However, in the RTM version, it always will. Please consider upgrading- there were many bug fixes and updates between Beta3 Refresh and RTM, including a fix for the issue you mention with changes not being uploaded.

    To work around that, you can specify "tf changeset <number> /server:<servername> /comment:<new comment>". Then, add one space to the comment in the window and click save. This will update the comment you specified on the command line. If you have a very long comment, you can type it into a text file (e.g. "comment.txt") and then use the command option "/comment:@comment.txt".

    Hope this helps-

    Cheers,
    Adam