On Fri, Feb 26, 2010 at 4:02 PM, D. Monarres <[email protected]> wrote: > Hello all, > > I am having a bit of trouble exporting a patch with mercurial. The > patch doesn't seem to pick up the empty __init__.py file that is > necessary for sage to recognize the module. I am using a mercurial > queue and am wondering how I can add this empty file to the patch. > Here is what I have tried so far.
Make your __init__.py not empty -- put in a comment or something. > > First I cd into $SAGE_ROOT/devel/sage, then I empty the queue with > > galois:sage ayeq$ hg qpop > > so that I have pristine sources. I then import the patch that contains > all of the changes except for the __init__.py. > > galois:sage ayeq$ hg qimport ~/Desktop/nets-02262010.patch > > Then I apply the patch > > galois:sage ayeq$ hg qpush > > > I then create the __init__.py and add it to mercurial > > galois:sage ayeq$ touch sage/nets/__init__.py > galois:sage ayeq$ hg add sage/nets/__init__.py > > Then I refresh the patch > > galois:sage ayeq$ hg qrefresh > > Then I export the changes > > galois: sage ayeq$ hg export qtip >~/Desktop/nets.patch > > > The patch still doesn't contain the changes. I am sure that I am > missing something obvious. Thanks for your help. > > > > > > > > > -- > 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-support > URL: http://www.sagemath.org > -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org -- 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-support URL: http://www.sagemath.org
