Web Linking values for Visual SVN Server / SVN Viewer

XMLWordPrintable

    • 0
    • 5

      NOTE: This suggestion is for JIRA Server. Using JIRA Cloud? See the corresponding suggestion.

      Problem Definition

      There is no documentation to configure the web linking for Visual SVN Server or have the the default URLs included from SVN SVNViewer

      Suggested Solution

      Have some default urls included for SVNViewer

      Workaround

      A quick google shows this: (https://groups.google.com/forum/#!topic/visualsvn/UpGBXVZ_Amo) another: https://answers.atlassian.com/questions/86133/svn-subversion-plug-in-configuration

      The functional behaviours below are:

      "View Format" - the URL used to view the file.
      "Changeset Format" - The url used to show the revision (changes).
      "File Added Format" - The url used to display the added files.
      "File Modified Format" - the url used to display the modified files.
      "File Replaced Format" - the url used to display the replaced files.
      "File Deleted Format" - the url used to display the deleted files. 
      

      The 'wildcard' values that can be used are:

      # ${path} - Path to the changed file or directory
      # ${rev} - Subversion revision of the change
      # ${rev-1} - Subversion revision of the change, minus 1
      
      Changeset Format: http://localhost/svn/main/${path}?p=${rev}
      File Added Format: http://localhost/svn/main/${path}?p=${rev}
      File Modified Format: http://localhost/svn/main/${path}?p=${rev}
      File Replaced Format: http://localhost/svn/main/${path}?p=${rev}
      File Deleted Format: http://localhost/svn/main/${path}?p=${rev}
      

      We can also get some format samples from FishEye:

      #---------------------------------
      # FishEye
      #---------------------------------
      linkformat.changeset=http://svn.atlassian.com/fisheye/changelog/${repository}?cs=${rev}
      linkformat.file.added=http://svn.atlassian.com/fisheye/browse${path}?r=${rev}
      linkformat.file.modified=http://svn.atlassian.com/fisheye/browse${path}?r=${rev}
      linkformat.file.replaced=http://svn.atlassian.com/fisheye/browse${path}?r=${rev}
      linkformat.file.deleted= http://svn.atlassian.com/fisheye/browse${path}?r=${rev}
      linkformat.copyfrom=http://svn.atlassian.com/fisheye/browse${path}?r=${rev}
      
      File Added Format: https://1.2.3.4/!/#ProjectName/view/r$
      {rev}${path}
      File Modified Format: https://1.2.3.4/!/#ProjectName/commit/r${rev}
      /r$
      {rev}${path}
      File Replaced Format: https://1.2.3.4/!/#ProjectName/commit/r${rev}
      /r$
      {rev}
      $
      {path}
      File Deleted Format: https://1.2.3.4/!/#ProjectName/view/r${rev-1}${path}
      

            Assignee:
            Unassigned
            Reporter:
            Adrian Stephen (Inactive)
            Votes:
            6 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: