#11121: Set up good defaults for sage's mercurial
---------------------------+------------------------------------------------
   Reporter:  kini         |       Owner:  tbd                          
       Type:  enhancement  |      Status:  needs_work                   
   Priority:  major        |   Milestone:  sage-4.7                     
  Component:  packages     |    Keywords:  mercurial, git, diff, patches
     Author:               |    Upstream:  N/A                          
   Reviewer:               |      Merged:                               
Work_issues:               |  
---------------------------+------------------------------------------------

Comment(by jhpalmieri):

 I'm a little wary of changing the default behavior in so many ways.  In
 general, wouldn't it be good enough to point to the
 [http://mercurial.selenic.com/wiki/UsingExtensions Mercurial extensions
 page] and let people pick for themselves?  Or we could recommend some good
 choices.  We could do this in the developer's guide, when we discuss using
 Mercurial.  I guess it seems that enabling these extensions reflects the
 opinions of a few people, and it might be safer to just implement a few
 important changes (like git=true).  Anyway, here are some of my questions
 and opinions:
 {{{
 [trusted]
 users = $USER     is this necessary?  what happens if we leave this out?

 [diff]
 git = true        seems like a good idea

 [extensions]
 color =           innocuous
 graphlog =        innocuous, but should it be "hgext.graphlog="?  That's
 what the docs say.
 mq =              useful, keep it
 pager =           see my comments below.
 progress =        innocuous
 purge =           should this be "hgext.purge="?  provides a potentially
 useful, but potentially dangerous, command
 rebase =          seems okay, but I've never used it
 record =          "hgext.record="?
 relink =          seems okay, but never used it
 transplant =      seems okay, but never used it
 }}}
 Regarding "pager": first, should we follow the
 [http://mercurial.selenic.com/wiki/PagerExtension Mercurial suggestions]
 and do
 {{{
 [pager]
 pager = LESS='FSRX' less
 }}}
 Second, if we use the pager extension, will it interfere with Sage
 functions like {{{hg_sage.diff()}}}?  These are defined in
 SAGE_ROOT/devel/sage/sage/misc/hg.py, and they call a pager already, a
 different one depending on whether working from the command-line or in the
 notebook.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11121#comment:18>
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