{extends "manage/manage.tpl.html"} {block "javascripts"} {/block} {block "manage_content"}
{t}SCM Integration{/t}
{t escape=no}SCM
Integration{/t}: {include file="help_link.tpl.html" topic="scm_integration"}
  

{t escape=no 1=$scm_ping_url}The SCM ping endpoint url is: %1{/t}

{t escape=no}To add scm backends, add to your setup.php like{/t}: {literal}
  'scm' => array(
    'cvs' => array(
      // viewvc urls
      'name' => 'cvs',
      'checkout_url' => 'https://cvs.example.org/{FILE}?view=markup&revision={NEW_VERSION}',
      'diff_url' => 'https://cvs.example.org/{FILE}?r1={OLD_VERSION}&r2={NEW_VERSION}&f=h',
      'log_url' => 'https://cvs.example.org/{FILE}?r1={NEW_VERSION}#rev{NEW_VERSION}',
    ),
    'svn' => array(
      // trac urls
      'name' => 'svn',
      'checkout_url' => 'https://trac.example.org/browser/{FILE}?rev={CHANGESET}',
      'diff_url' => 'https://trac.example.org/changeset/{CHANGESET}/{FILE}',
      'log_url' => 'https://trac.example.org/log/{FILE}?rev={CHANGESET}',
      'changeset_url' => 'https://trac.example.org/changeset/{CHANGESET}',
    ),
    'git' => array(
      // gitweb urls
      'name' => 'git',
      'checkout_url' => 'https://git.example.org/?p={PROJECT}.git;a=blob;f={FILE};hb={CHANGESET}',
      'diff_url' => 'https://git.example.org/?p={PROJECT}.git;a=commitdiff;h={CHANGESET}',
      'log_url' => 'https://git.example.org/?p={PROJECT}.git;a=history;f={FILE};hb={CHANGESET}',
      'changeset_url' => 'https://git.example.org/?p={PROJECT}.git;a=commitdiff;h={CHANGESET}',
      'project_url' => 'https://git.example.org/?p={PROJECT}.git;a=summary',
    ),
    'gitlab' => array(
      // gitlab urls
      'name' => 'gitlab',
      'checkout_url' => 'https://gitlab.example.org/{PROJECT}/blob/{CHANGESET}/{FILE}',
      'diff_url' => 'https://gitlab.example.org/{PROJECT}/commit/{CHANGESET}#{FILE}',
      'log_url' => 'https://gitlab.example.org/{PROJECT}/commits/{CHANGESET}/{FILE}',
      'changeset_url' => 'https://gitlab.example.org/{PROJECT}/commit/{CHANGESET}',
      'branch_url' => 'https://gitlab.example.org/{PROJECT}/tree/{BRANCH}',
      'project_url' => 'https://gitlab.example.org/{PROJECT}',
      // push urls to identify this instance
      'urls' => array(
          'git@gitlab.example.net',
          'gitlab@gitlab.local'
      ),
      // branch filtering
      'only' => array(
          'master',
      ),
      'except' => array(
      ),
    ),
  )
{/literal}
{/block}