#6187: After making a clone, the reference manual (and other docs) should not 
have
to be completely rebuilt.
---------------------------+------------------------------------------------
 Reporter:  jhpalmieri     |       Owner:  tba       
     Type:  enhancement    |      Status:  new       
 Priority:  major          |   Milestone:  sage-4.0.2
Component:  documentation  |    Keywords:            
 Reviewer:                 |      Author:            
   Merged:                 |  
---------------------------+------------------------------------------------

Comment(by jhpalmieri):

 This is kind of brutal, but we can replace the cloning part of sage-clone
 with a single line like
 {{{
 cmd = 'cp -pr sage %s'%branch
 }}}
 (This is with the BSD version of cp on Mac OS X; it might be more portable
 to use a python equivalent, like shutil.copytree.)

 This has the disadvantage that some crap gets copied along with the good
 stuff. This is probably a bad idea from other points of view, too; what
 else goes wrong?

 It has the advantage that modification times are preserved, while they are
 not (as far as I can tell) when you use 'hg clone' to copy the repository.

 By the way, the 'clone' section of the hg man page says:
 {{{
 In some cases, you can clone repositories and checked out files
 using full hardlinks with
 $ cp -al REPO REPOCLONE
 This is the fastest way to clone, but it is not always safe. The
 operation is not atomic (making sure REPO is not modified during
 the operation is up to you) and you have to make sure your editor
 breaks hardlinks (Emacs and most Linux Kernel tools do so). Also,
 this is not compatible with certain extensions that place their
 metadata under the .hg directory, such as mq.
 }}}
 This is where I got the idea, although their version creates hard links,
 which I suppose is why it would be "the fastest way"...

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6187#comment:4>
Sage <http://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
-~----------~----~----~----~------~----~------~--~---

Reply via email to