Hey,
The first step in editing Sage code is to create your own branch from the main branch.
$ sage -b main
$ sage -clone my-branch
Changes should be made to $SAGE_ROOT/devel/sage-my-branch/sage/****. It
is highly recommended that you make a Mercurial mq patch[1] to ease
patch management. This can be done by cd'ing to the branch folder and
running `sage -hg qnew "my-patch-name.patch"`.
$ cd $SAGE_ROOT/devel/sage-my-branch/
$ sage -hg qnew "my-patch-name.patch"
After implementing your changes, run the build script
$ sage -b
to propagate changes to the build folder, and to the site-packages
folder. If you feel that your patch is satisfactory, simply refresh
your patch, and add your commit message:
$ sage -hg qrefresh -m "#1234 My patch message."
The patch can then be found at
$SAGE_ROOT/devel/sage-my-branch/.hg/patches, and this can be uploaded
to the Sage Trac at
http://sagemath.org. Alternatively, you can export
it to a folder you want.
$ sage -hg export qtip -o ~/my-patch.patch
Hope this helps!
--
Tim Joseph Dumol <tim (at) timdumol (dot) com>
http://timdumol.com