Uploaded image for project: 'Sourcetree For Mac'
  1. Sourcetree For Mac
  2. SRCTREE-1179

Extract and Save any revision of file from a repository

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Fixed
    • 1.5.4
    • None
    • None
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      At the command line, using "hg cat" (not sure about git, maybe "git show"), I can extract a given revision of a file from my repository. A common use is to save a copy of the particular file revision outside of the working directory or to a different name within the working directory.

      e.g. hg cat -o outputfile.c -r revision somefile.c

      Though this could probably be scripted to a "Custom Action", I think it may be useful enough to see as an option in the Log and Branch views. When one right-clicks on a file (branch view) or log entry (log view) the pop-up menu contains an option to Save that revision of the file somewhere via a standard file Save dialogue.

      Attachments

        Activity

          People

            Unassigned Unassigned
            729863eb504a kpowick
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: