|
Size: 1644
Comment:
|
Size: 2242
Comment: Not only open, sometimes we have to create the file ".hgrc"
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 2: | Line 2: |
| Line 5: | Line 4: |
| For advanced usage of the patch server, see [combinat/Mercurial]. | For advanced usage of the patch server, see http:/combinat/Mercurial. |
| Line 7: | Line 6: |
| [[TableOfContents(2)]] | <<TableOfContents(2)>> |
| Line 9: | Line 8: |
| == Install the Sage-combinat patches == | == Download and install the Sage-combinat patches == We assume that: * Sage is already installed (say in /opt/sage) * Mercurial is already installed (sudo apt-get install Mercurial on Debian) * The user has write access on the Sage installation tree * The user has access to: http://sage.math.washington.edu:2144/ It can be possible that the Mercurial configuration file hasn't being created during the installation of Mercurial, you will have to create it and edit it before to install Sage-combinat. Open your Mercurial configuration file (~/.hgrc in your home directory), insert the following, and edit the username: |
| Line 11: | Line 17: |
| We assume sage is already installed (say in /opt/sage), and that the user has write access on the installation tree. Edit your Mercurial configuration file (~/.hgrc in your home directory), and insert the following (if not yet there): |
|
| Line 16: | Line 19: |
| username = YourFirstName YourLastName <YourEmail> |
username = Simon Cussonnet <Simon.Cussonnet at lycee-technique.torrez.eure.fr> |
| Line 22: | Line 24: |
| Line 25: | Line 26: |
| Line 28: | Line 28: |
[extdiff] |
[extdiff] |
| Line 32: | Line 31: |
| Download the [[attachment:sage-combinat]] script, and run it from anywhere to download and install the Sage-combinat patches: | |
| Line 33: | Line 33: |
| Download the attachment:sage-combinat script, and run from anywhere: | |
| Line 37: | Line 36: |
| In case Sage or python is not in the user's path, you may have to specify where they are, as in: | |
| Line 38: | Line 38: |
| In case Sage or python is not in the user's path, you may have to specify where they are, as in: | |
| Line 42: | Line 41: |
| Note: starting from sage 3.1.3, the sage-combinat script is readily included in the sage distribution, and you can run it with: | |
| Line 43: | Line 43: |
| Note: starting from sage 3.1.3, the sage-combinat script is readily included in the sage distribution, and you can run it with: |
|
| Line 48: | Line 46: |
| Some help is available with: | |
| Line 49: | Line 48: |
| Some help is available with: | |
| Line 53: | Line 51: |
| Line 56: | Line 52: |
| Line 60: | Line 55: |
| Line 62: | Line 56: |
| Line 66: | Line 59: |
| == Uninstall the Sage-combinat patches == {{{ sage -b main }}} Now, you may destroy {{{.../sage/devel/sage-combinat/}}} (after checking that you do not have local changes!) |
The Sage-combinat patch server: basic instructions
This page describes how to install and update the Sage-combinat experimental patches.
For advanced usage of the patch server, see http:/combinat/Mercurial.
Contents
Download and install the Sage-combinat patches
We assume that:
- Sage is already installed (say in /opt/sage)
- Mercurial is already installed (sudo apt-get install Mercurial on Debian)
- The user has write access on the Sage installation tree
The user has access to: http://sage.math.washington.edu:2144/
It can be possible that the Mercurial configuration file hasn't being created during the installation of Mercurial, you will have to create it and edit it before to install Sage-combinat. Open your Mercurial configuration file (~/.hgrc in your home directory), insert the following, and edit the username:
[ui] username = Simon Cussonnet <Simon.Cussonnet at lycee-technique.torrez.eure.fr> [extensions] hgext.mq = extdiff = alias = [alias] qstatus = status --rev -2:. [hooks] pre-qrefresh = (echo "Are you sure you want to refresh the following changes:"; sage -hg status; echo -n "into the patch: "; hg qtop; read -p "(y/n)" answer; test "$answer" = "y" ) [extdiff] cmd.interdiff = hg-interdiff
Download the sage-combinat script, and run it from anywhere to download and install the Sage-combinat patches:
python sage-combinat install
In case Sage or python is not in the user's path, you may have to specify where they are, as in:
/opt/sage/sage-python sage-combinat install --sage=/opt/sage/sage
Note: starting from sage 3.1.3, the sage-combinat script is readily included in the sage distribution, and you can run it with:
sage -combinat install
Some help is available with:
/opt/sage/sage-python sage-combinat --help
Update the Sage-combinat patches
python sage-combinat update
Upgrade Sage and update the Sage-combinat patches
python sage-combinat upgrade
Uninstall the Sage-combinat patches
sage -b main
Now, you may destroy .../sage/devel/sage-combinat/ (after checking that you do not have local changes!)
