Freigeben über


Extra! Extra! Get the latest news!

Every now and again, some feature or other of our source control code strikes me in a "wow, that's smart" sort of way. For example, one feature of our "changeset" command I didn't know until fairly recently is the "/latest" option. If you don't know what the most recent changeset number is but want to find out and see what changed, run "h changeset /latest". The latest option cannot be used with a changeset number (i.e. "h changeset /latest 15" is not supported), though I'm not sure what I would even expect that to do.

Another nice shortcut is the tilde syntax to specify versions of an item. Suppose you want to compare the version of Program.cs from changeset 10 with the version from changeset 15. You could write "h diff Program.cs;C10 Program.cs;C15". However, you could also take a shortcut and use "h diff Program.cs;C10~C15". In fact, the subject of versionspecs is a large enough topic that it probably deserves its own post; more on that soon, then.

Other shortcuts include single character equivalents for command options, such as "/s" instead of "/server", "/r" instead of "/recursive", and "/i" instead of "/noprompt", among others. You can also use the shortest unique set of characters to identify a command (though shouldn't bank on any particular combination going forward in case other commands are added, I'm told-- in other words, don't build massive scripts with comand name shortcuts). So, you can currently use "h de" for delete, "h hi" for history, or even "h a" for add.

Are there any other similar shortcuts you'd like to see? Any already there you found particularly useful?

Comments

  • Anonymous
    June 15, 2005
    VSTS Quality Tools - Running Tests with Code Coverage
    David Williamson and Dominic Hopton do a great...
  • Anonymous
    June 29, 2005
    For those interested, the full list of option shortcuts (or aliases) is available at http://msdn2.microsoft.com/library/4y2ash30(en-us,vs.80).aspx.

    Buck
  • Anonymous
    July 03, 2005
    VSTS Quality Tools - Running Tests with Code Coverage
    David Williamson and Dominic Hopton do a great...
  • Anonymous
    July 04, 2005

    Abhinaba Basu on marking required fields in work items ⊕ and build types ⊕
    Adam Singer on the latest...