Differences between revisions 1 and 7 (spanning 6 versions)
Revision 1 as of 2008-10-13 10:41:49
Size: 1609
Comment: New page with basic instructions on the patch server
Revision 7 as of 2008-10-14 13:04:04
Size: 1949
Comment:
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:
== Install the Sage-combinat patches [[TableOfContents(2)]]
Line 9: Line 8:
We assume sage is already installed (say in /opt/sage), and that the user has write access on the installation tree. == Download and install the Sage-combinat patches ==
We assume that
Line 11: Line 11:
 . * Sage is already installed (say in /opt/sage)
  * The user has write access on the Sage installation tree
  * The user has access to: http://sage.math.washington.edu:2144/
Line 12: Line 15:
Line 15: Line 19:
Line 20: Line 23:
Line 23: Line 25:
Line 26: Line 27:

[extdiff] 
[extdiff]
Line 30: Line 30:
Download the attachment:sage-combinat script, and run it from anywhere to download and install the Sage-combinat patches:
Line 31: Line 32:
Download the attachment:sage-combinat script, and run from anywhere:
Line 35: Line 35:
In case Sage or python is not in the user's path, you may have to specify where they are, as in:
Line 36: Line 37:
In case Sage or python is not in the user's path, you may have to specify where they are, as in:
Line 40: Line 40:
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 41: Line 42:
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 46: Line 45:
Some help is available with:
Line 47: Line 47:
Some help is available with:
Line 51: Line 50:


== Update the Sage-combinat patches
== Update the Sage-combinat patches ==
Line 58: Line 54:

== Upgrade Sage and update the Sage-combinat patches
== Upgrade Sage and update the Sage-combinat patches ==
Line 64: Line 58:
== 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.

TableOfContents(2)

Download and install the Sage-combinat patches

We assume that

Edit your Mercurial configuration file (~/.hgrc in your home directory), and insert the following (if not yet there):

[ui]
username = YourFirstName YourLastName <YourEmail>
[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 attachment: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!)