On Wed, Aug 26, 2009 at 2:09 PM, kcrisman<[email protected]> wrote:
>
>
>
> On Aug 26, 11:06 am, David Joyner <[email protected]> wrote:
>> The way I do this (which may not be the best way) is
>>
>> 1. cd to the SAGE_ROOT directory
>> 2. ./sage -b main    (this assures you are starting from the main
>> branch and not cloning form a clone)
>> 3. ./sage -clone ABCDx (where ABCD is the trac number you are
>> applying the patch from and x=a for the first clone,
>> x=b for the second clone, if needed, and so on)
>> 4. ./sage (start sage)
>> 5. type hg_sage.apply("/path/to/the/patch/trac_ABCD_blahblah.patch")
>
> It is worth pointing out that if one uses
>
> hg_sage.import_patch("/path/.../blah.patch",options="--no-commit")
>
> it is MUCH easier to remove the patch after you test it.  That means
> no more needing to make a new clone for each test, and allows people
> like me to avoid using queues just a little bit longer.

You don't have to do that.  You can do:


  sage: hg_sage.apply('... url ...')
  sage: quit

./sage -br

  sage: <try it out>
  This needs work! Argh.
  sage: hg_sage.rollback()
  sage: hg_sage.revert('--all')
  sage: quit

Now your repo is as if you never applied the patch.

You can only rollback one time though, so you can't apply multiple
patches -- if you want to to that you need to clone or use queues.

William

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to