id	summary	reporter	owner	description	type	status	priority	milestone	component	resolution	keywords	cc	work_issues	upstream	reviewer	author	merged	dependencies	stopgaps
11142	clean up sage/misc/hg.py	jhpalmieri	jason	"The attached patch cleans up hg.py in a few ways:

 - it adds a few doctests, although many of them are marked ""not tested"", since otherwise it would try to import or export non-existent patches, etc.

 - the function ""pager"" is rewritten, to use the Mercurial pager extension.  This way, any highlighting is preserved when you use ""hg_sage.diff()"" or ""hg_sage.log()"" with the color extension enabled.

 - the function ""color"" was added, to disable the Mercurial color extension in the notebook.  Otherwise it produces some bad output: try putting 
    {{{
[extensions]
color =
    }}}
 in your .hgrc file, modify some files in the Sage library, and type ""hg_sage.status()"" in      the command line vs. the notebook.

------

Apply
 1. [attachment:trac_11142-sage-hg.v3.patch]
 1. [attachment:trac_11142-reviewer.patch]
to the Sage library.

"	enhancement	closed	minor	sage-4.7.2	misc	fixed	sd31	kini		N/A	Karl-Dieter Crisman, Keshav Kini	John Palmieri	sage-4.7.2.alpha3	#10594	
