Ticket #11121: trac_11121-hgrc.data-extcode.patch

File trac_11121-hgrc.data-extcode.patch, 624 bytes (added by kini, 2 years ago)

apply to $SAGE_ROOT/data/extcode

  • spkg-install

    # HG changeset patch
    # Date 1301990806 -28800
    # User Keshav Kini <kini@member.ams.org>
    # Parent b01332b92f7e894e2e70a9cc00e40a0e35bb066c
    trac #11121: Set up good defaults for sage's mercurial
    
    diff --git a/spkg-install b/spkg-install
    a b  
    11#!/bin/sh 
     2# This is the spkg-install script which will be emplaced within the SPKG for 
     3# the extcode repository whenever it is packaged. 
    24 
    35CUR=`pwd` 
    46DIR="$SAGE_ROOT"/data/extcode 
     
    2729   hg update 
    2830fi 
    2931 
     32# Create an appropriate hgrc file for the target 
     33cat > "$DIR/.hg/hgrc" <<"HEREDOC" 
     34[diff] 
     35git = true 
     36HEREDOC