#8054: roots(algorithm='numpy') does not work in arbitrary precision
-------------------------------+--------------------------------------------
Reporter: zimmerma | Owner: jkantor
Type: defect | Status: needs_work
Priority: major | Milestone: sage-4.6
Component: numerical | Keywords:
Author: Mike Hansen | Upstream: N/A
Reviewer: Paul Zimmermann | Merged:
Work_issues: rebase |
-------------------------------+--------------------------------------------
Changes (by mpatel):
* work_issues: rebas => rebase
Comment:
Replying to [comment:8 zimmerma]:
> by the way, is there a documentation somewhere explaining how to rebase
a patch?
One way is to use [http://wiki.sagemath.org/MercurialQueues Mercurial
queues]:
{{{
#!sh
$ cd SAGE_ROOT/devel/sage
$ hg qimport http://trac.sagemath.org/sage_trac/raw-
attachment/ticket/8054/trac_8054.patch
adding trac_8054.patch to series file
$ hg qpush
applying trac_8054.patch
patching file sage/rings/polynomial/polynomial_element.pyx
Hunk #2 FAILED at 4256
1 out of 4 hunks FAILED -- saving rejects to file
sage/rings/polynomial/polynomial_element.pyx.rej
patch failed, unable to continue (try -v)
patch failed, rejects left in working dir
errors during apply, please fix and refresh trac_8054.patch
}}}
The file `polynomial_element.pyx.rej` is a diff of the changes that
Mercurial was unable to apply. Editing `polynomial_element.pyx` by hand
to incorporate the leftover changes and then doing
{{{
#!sh
$ hg qrefresh
$ hg export qtip > /path/to/trac_8054.2.patch
$ hg qpop
$ hg qdelete trac_8054.patch
}}}
should write out an updated patch and restore the original state of the
repository. If you choose not to delete the patch from the queue, e.g.,
for doctesting, then for convenience you can use
{{{
#!sh
$ hg qrename trac_8054.2.patch
}}}
to rename it in the queue. After this, `hg qseries`, `hg qapplied`, and
`hg qunapplied` will use the updated name (until you `qdelete` the patch).
There's more on using queues in the
[http://www.sagemath.org/doc/developer/walk_through.html#being-more-
efficient-mercurial-queues Developer's Guide], but as far as I can tell,
there's no mention of rebasing patches. Let us know if you have
questions.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8054#comment:9>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.