Poser une questionPoser une question
 

TraitéeHow to Update the comment after check in

Réponses

  • mercredi 26 juillet 2006 17:23Adam Singer - MSFT Médailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateur
     Traitée

    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

  • mercredi 16 août 2006 18:44Adam Singer - MSFT Médailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateur
     Traitée

    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

Toutes les réponses

  • mercredi 26 juillet 2006 17:23Adam Singer - MSFT Médailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateur
     Traitée

    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

  • mercredi 16 août 2006 17:08Mamatha Médailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateur
     

    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.

  • mercredi 16 août 2006 18:44Adam Singer - MSFT Médailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateur
     Traitée

    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