>From the sage prompt use hg_sage.status() to see which files have
changed, hg_sage.diff() to see the diffs, hg_sage.ci() to check them
in (which will show you the diffs again) and hg_sage.export() to
export the patch.

Before the last step amke sure that you have a (small) .hgrc file in
your home directory -- for example, mine says

[ui]
username = John Cremona <john.crem...@gmail.com>
[extensions]
hgext.mq =

-- where after [ui] you give your name and email address since that
goes into the patch and hence into The Record.

John

On 4 February 2010 16:44, Dr. David Kirkby <david.kir...@onetel.net> wrote:
> I've noted there is some numerical noise on
>
> sage/calculus/functional.py
>
> when run on a couple of SPARCs.
>
> File
> "/export/home/drkirkby/sage-4.3.0.1/devel/sage-main/build/sage/calculus/functional.py",
> line 195:
>    sage: float(area)
> Expected:
>    0.85914091422952255
> Got:
>    0.85914091422952277
>
>
> I believe I've fixed this
>
> sage subshell$ diff -u functional.py.orig functional.py
> --- functional.py.orig  Thu Feb  4 16:06:57 2010
> +++ functional.py       Thu Feb  4 16:08:18 2010
> @@ -193,7 +193,7 @@
>         sage: area = integral(integral(exp(y^2),x,0,y),y,0,1); area
>         1/2*e - 1/2
>         sage: float(area)
> -        0.85914091422952255
> +        0.85914091422952...
>
>     We compute the line integral of `\sin(x)` along the arc of
>     the curve `x=y^4` from `(1,-1)` to
>
>
> but want to produce a proper Mercurial patch, rather than one using 'diff'.
> What directory should I be in when I try to use Mercurial? (I'm using it
> from inside Sage this time, rather than a copy of Mercurial installed on the
> machine).
>
> The problem is, 'hg status' is showing no changes, so I expect I'm in the
> wrong directory.
>
> Dave
>
> --
> To post to this group, send an email to sage-devel@googlegroups.com
> To unsubscribe from this group, send an email to
> sage-devel+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/sage-devel
> URL: http://www.sagemath.org
>

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to