Ticket #11121: trac_11121-hgrc.mercurial-spkg.patch

File trac_11121-hgrc.mercurial-spkg.patch, 1.2 KB (added by kini, 2 years ago)

don't use this, I'll upload a full spkg

  • SPKG.txt

    # HG changeset patch
    # User Keshav Kini <kini@member.ams.org>
    # Date 1308023697 25200
    # Node ID d4247ebe65d0f31e1127fe3e3a7cb8cd254461a6
    # Parent 08af52703328259d27b217c298f1ac492b45a8d6
    trac #11121: Set up good defaults for sage's mercurial
    
    diff --git a/SPKG.txt b/SPKG.txt
    a b  
    2626 * Currently none (except one should make sure the patch still applies) 
    2727 
    2828== Changelog == 
     29 
     30=== mercurial-1.6.4.p1  (Keshav Kini, 2011-04-06) === 
     31 * Add some useful default configuration settings 
     32 
    2933=== mercurial-1.7.3  (Ryan Grout, January 11, 2010) === 
    3034 * Updated to Mercurial 1.7.3 
    3135 * Updated posix.py (patched against 1.7.3) 
  • spkg-install

    diff --git a/spkg-install b/spkg-install
    a b  
    3636    exit 1 
    3737fi 
    3838 
     39mkdir -p "$SAGE_LOCAL/etc/mercurial" 
     40cat > "$SAGE_LOCAL/etc/mercurial/hgrc" <<HEREDOC 
     41[trusted] 
     42users = $USER 
     43 
     44[diff] 
     45git = true 
     46 
     47[extensions] 
     48color = 
     49mq = 
     50pager = 
     51rebase = 
     52relink = 
     53 
     54[pager] 
     55pager = less -R 
     56attend = annotate, cat, diff, log, glog, qdiff 
     57HEREDOC 
     58if [ $? -ne 0 ]; then 
     59    echo "Error installing custom hgrc" 
     60fi 
     61 
    3962if [ "$UNAME" = "Darwin" ]; then 
    4063    echo 'Copying custom hgmerge script over to $SAGE_LOCAL/bin/' 
    4164    cd "$CUR"