Show More
@@ -239,3 +239,26 b' following URL: ``{instance-URL}/_admin/p' | |||
|
239 | 239 | |
|
240 | 240 | .. _Markdown: http://daringfireball.net/projects/markdown/ |
|
241 | 241 | .. _reStructured Text: http://docutils.sourceforge.net/docs/index.html |
|
242 | ||
|
243 | ||
|
244 | Unarchiving a repository | |
|
245 | ^^^^^^^^^^^^^^^^^^^^^^^^^ | |
|
246 | ||
|
247 | Archive operation for the repository is similar as delete. Archive keeps the data for future references | |
|
248 | but makes the repository read-only. After archiving the repository it shouldn't be modified in any way. | |
|
249 | This is why repository settings are disabled for an archived repository. | |
|
250 | ||
|
251 | If there's a need for unarchiving a repository for some reasons, the interactive | |
|
252 | ishell interface should be used. | |
|
253 | ||
|
254 | .. code-block:: bash | |
|
255 | ||
|
256 | # Open iShell from the terminal | |
|
257 | $ rccontrol ishell enterprise-1/community-1 | |
|
258 | ||
|
259 | .. code-block:: python | |
|
260 | ||
|
261 | # Set repository as un-archived | |
|
262 | In [1]: repo = Repository.get_by_repo_name('SOME_REPO_NAME') | |
|
263 | In [2]: repo.archived = False | |
|
264 | In [3]: Session().add(repo);Session().commit() |
General Comments 0
You need to be logged in to leave comments.
Login now