Get the code

Browse TeamForge to find the code you want to work on, then check out the code.

You can view the contents of each file in a repository, plus additional information about each file such as revision history, comments, date and time of submission, and branch and tag information. You can also view differences (diffs) between any two files.
Restriction: You can see only those paths in the repository that the repository administrator has given you access to.
Note: If you're getting code from a Subversion replica repository, the TeamForge account used while setting up the replica determines what's available to be checked out. This account could have been provided total access to the master repository, or restricted access using path-based permissions.
  1. Click SOURCE CODE in the project navigation bar.
  2. On the list of project repositories, click the name of the repository in which you want to view code. For each file, the revision number, time since check-in, author, and last log entry appear in the Repository Browser.
    • To view a file, or to view the diffs between two files, click the file name.
    • To view a specific version of the file, click Download.
    • To view the differences between two files, do either of these:
      • Click [select for diffs] next to each of the two files that you want to compare.
      • Enter the file revision numbers in the Diffs between boxes at the bottom of the page.
  3. If you need to diff files, choose a display from the Type of Diff menu, then click Get Diffs. The differences between the two files are displayed.
  4. Use your source control client to check out the code to your local machine.

Internal code browser

For Subversion and Git repositories, you have the option to use the TeamForge code browser which is turned on by default while integrating the source code server. Fore more information, see Integrate a source code server.

  1. On the list of project repositories, click the name of a Subversion or a Git repository in which you want to view code. On the top right of code browser, you can select the branch/tag (for Git) or specify the revision (for SVN) you want to browse.
    • View: This tab allows you to do the following:
      • Browse through the folder hierarchy of the repository and view the content of specific files. For any folder or file you are viewing within a branch (Git) or revision (SVN), you can obtain the commit information pertaining to its last update.
      • While viewing a single specific commit or a file, you can see the paths that were modified in that commit, the associations including JIRA such as builds, code reviews and so on (from Orchestrate events) for the specific commit and the differences between files in that commit.
        Important: To view the associations, you must have installed Orchestrate and must have RBAC (role-based access control) permissions to use the Reporting API of TeamForge Orchestrate. If either of these requirements is not met, this section will not show up at all.
      • While viewing a folder, if there is a file named readme, readme.txt or readme.md that file will automatically be rendered beneath the list of files in the folder. If the file contains markdown formatting, it will be rendered as rich text.
    • Changes: This tab lets you view all of the commits that touched a specific path you are browsing within a branch or revision. Click a commit to view its details.
    • Download: This tab allows you to download a copy of the required file.
    • Branches (for Git): This allows you to see all of the branches in the repository in their relation to the default (master) one. Using Compare Branch you can see the commits in the branch that do not exist in the default branch.