[PATCH] rename 'non-changeable URL' into 'permanent repository URL'

Thomas De Schampheleire patrickdepinguin at gmail.com
Mon Apr 6 15:36:24 EDT 2015


# HG changeset patch
# User Thomas De Schampheleire <thomas.de.schampheleire at gmail.com>
# Date 1428348597 -7200
#      Mon Apr 06 21:29:57 2015 +0200
# Node ID 716d962a28347aa682ed0be9a0a3f1cf2035ed57
# Parent  3ad9caafab3cb0c2706e65d569ba65b1f1eadbff
rename 'non-changeable URL' into 'permanent repository URL'

As suggested by Mads Kiilerich on IRC, rename the Kallithea concept
'non-changeable URL' into 'permanent repository URL'.

diff --git a/docs/usage/general.rst b/docs/usage/general.rst
--- a/docs/usage/general.rst
+++ b/docs/usage/general.rst
@@ -70,8 +70,8 @@
   (and its ancestors) by selecting it and clicking the ``Open new pull request
   for selected changesets`` button.
 
-Non-changeable repository URLs
-------------------------------
+Permanent repository URLs
+-------------------------
 
 Due to the complicated nature of repository grouping, URLs of repositories
 can often change. For example, a repository originally accessible from::
@@ -84,7 +84,7 @@
 
 Such moving of a repository to a group can be an issue for build systems and
 other scripts where the repository paths are hardcoded.  To overcome this,
-Kallithea introduces a non-changeable replacement URL, based on a repository ID
+Kallithea introduces permanent repository URLs, based on a repository ID
 prefixed with an underscore. In all Kallithea URLs, for example those for the
 changelog and the file view, a repository name can be replaced by this ``_ID``
 string.  Since IDs are always the same, moving the repository to a different
diff --git a/kallithea/lib/base.py b/kallithea/lib/base.py
--- a/kallithea/lib/base.py
+++ b/kallithea/lib/base.py
@@ -153,8 +153,8 @@
 
     def _get_by_id(self, repo_name):
         """
-        Gets a special pattern _<ID> from clone url and tries to replace it
-        with a repository_name for support of _<ID> non changeable urls
+        Gets a special pattern _<ID> from clone URL and tries to replace it
+        with a repository_name for support of _<ID> permanent URLs
 
         :param repo_name:
         """
diff --git a/kallithea/templates/admin/repos/repo_edit_settings.html b/kallithea/templates/admin/repos/repo_edit_settings.html
--- a/kallithea/templates/admin/repos/repo_edit_settings.html
+++ b/kallithea/templates/admin/repos/repo_edit_settings.html
@@ -8,12 +8,12 @@
                 </div>
                 <div class="input">
                     ${h.text('repo_name',class_="medium")}
-                    <span class="help-block">${_('Non-changeable id')}: `_${c.repo_info.repo_id}` <span><a id="show_more_clone_id" href="#">${_('What is that?')}</a></span></span>
+                    <span class="help-block">${_('Permanent repository ID')}: `_${c.repo_info.repo_id}` <span><a id="show_more_clone_id" href="#">${_('What is that?')}</a></span></span>
                     <span id="clone_id" class="help-block" style="display: none">
-                        ${_('URL by id')}: `${c.repo_info.clone_url(with_id=True)}` </br>
+                        ${_('URL by ID')}: `${c.repo_info.clone_url(with_id=True)}` </br>
                         ${_('''In case this repository is renamed or moved into another group the repository URL changes.
-                               Using the above URL guarantees that this repository will always be accessible under such URL.
-                               Useful for CI systems, or any other cases that you need to hardcode the URL into 3rd party service.''')}</span>
+                               Using the above permanent URL guarantees that this repository will always be accessible under such URL.
+                               Useful for CI systems, or any other cases that you need to hardcode the URL into a 3rd party service.''')}</span>
                 </div>
            </div>
            <div class="field">


More information about the kallithea-general mailing list