On Sunday, August 14, 2011 12:26:29 PM UTC-7, davidp wrote:
>
> Unfortunately, when I applied the patch, the subdirectory media/ 
> sandpile does not appear even after having added each file 
> individually with hg_sage.add.  Also, before and after adding the 
> files individually, 
>
>    >> sage: hg_sage.add('doc/en/thematic_tutorials/media/sandpile/') 
>
> does not add the subdirectory.  (Leaving out the forward-slash at the 
> end of sandpile makes no difference.) 
>
> The patch, itself, has lines of the form 
>
>        diff -r f44320c0a0fb -r 09b006e85edf doc/en/thematic_tutorials/ 
> media/sandpile/C_6-parallel.png 
>        Binary file doc/en/thematic_tutorials/media/sandpile/C_6- 
> parallel.png has changed 
>
> (although from the size of the patch file, I don't think it has 
> actually attached any png files). 
>
> Why doesn't hg notice the new subdirectory, 'sandpile', or attach the 
> png files? 


 In your .hgrc file, add the lines

[diff]
git=1

This will allow you to save binary files (like png files) as part of patch 
files.

-- 
John

-- 
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
URL: http://www.sagemath.org

Reply via email to