#12128: "hg verify" is not a proper way to check whether there is an hg repo
------------------------+---------------------------------------------------
   Reporter:  jdemeyer  |          Owner:  GeorgSWeber
       Type:  defect    |         Status:  new        
   Priority:  blocker   |      Milestone:  sage-4.8   
  Component:  build     |       Keywords:             
Work_issues:            |       Upstream:  N/A        
   Reviewer:            |         Author:             
     Merged:            |   Dependencies:             
------------------------+---------------------------------------------------
 From the root `spkg-install`:
 {{{
 # see if there is a valid Mercurial repository in $SAGE_ROOT
 hg verify 1>/dev/null 2>/dev/null
 }}}

 Unfortunately, this is a bad way to check for Mercurial repository because
 this can succeed even if there is no `SAGE_ROOT/.hg` but a `.hg` in some
 parent directory.

 I propose to change this to
 {{{
 if [ -d .hg ]; then
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12128>
Sage <http://www.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