Thank you for your help. Two remarks : Since I work with a clone, I have to be in the directory SAGE_DIRECTORY/devel/sage-test/. sage -hg diff doesn't show anything but the patch seems to contain the file I added. I uploaded my patch in trac so if anyone is interested, he can tell me if it works! Matthieu
Le dimanche 21 juillet 2013 16:53:02 UTC+2, Frédéric Chapoton a écrit : > > Bonjour Matthieu, je vais essayer d'expliquer comment je fais. > > you can also work from a terminal, using "sage -hg" instead of "hg_sage" > inside sage. You have to be in your SAGE_DIRECTORY/devel/sage-main/ > > first step: create a patch > > sage -hg qnew trac_14914_stuffle.patch > > second step: create or modify files > > sage -hg add name_of_file (if you have created a new file) > > third step > > sage -hg qrefresh > > (this put your changes in your patch) > > then go to second step until things are ready. > > use sage -hg diff to check that everythinig is included in the patch > > fourth step: sage -hg qrefresh -m "trac 14914 patch for stuffle algebras" > (for the commit message) > > 5th step: sage -hg export tip > name_of_file.patch (to export the patch > into a file) > > 6th step: upload the patch in trac > > I hope this is clear.. > > > > Le dimanche 21 juillet 2013 16:19:37 UTC+2, Matthieu Deneufchâtel a écrit : >> >> I am trying to produce a patch with a new file (stuffle_algebra.py) >> following this tutorial: >> >> http://www.sagemath.org/doc/developer/walk_through.html#section-create-sandbox >> When I run the command hg_sage.diff(), I get a blank file; moreover, I >> can not save the commit message: when I answer Trac XXXX: stuffle algebra >> to hg_sage.commit(), I don't see the result with hg_sage.log()... When I >> run the >> command >> hg_sage.export(14914,"/home/matthieu/Téléchargements/trac_14914_stuffle_algebra.patch") >> >> where 14914 is the number of the ticket I created on the Trac server, the >> output is a patch which has nothing to do with my modifications. >> >> I might be wrong but I think it is due to the fact that I created a new >> file instead of just modifying already existing files. What should I do? >> >> Matthieu >> > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/groups/opt_out.