Ticket #12288: trac_12288-reviewer.patch

File trac_12288-reviewer.patch, 2.6 KB (added by kcrisman, 17 months ago)

Apply after first solution patch

  • sage/misc/hg.py

    # HG changeset patch
    # User Karl-Dieter Crisman <kcrisman@gmail.com>
    # Date 1326208242 18000
    # Node ID 4f3101664b49586302a8dd26b03d515311603212
    # Parent  85d5104d68b1a43117f055070dbb9ee956ef2dc5
    Trac 12288 - reviewer patch to fix HG doctests
    
    diff --git a/sage/misc/hg.py b/sage/misc/hg.py
    a b  
    286286 
    287287            sage: hg_sage.status() 
    288288            Getting status of modified or unknown files: 
    289             cd ... && hg status 
     289            cd ... && sage --hg status 
    290290            ... 
    291291            sage: hg_sage.status(debug=False) 
    292292            Getting status of modified or unknown files: 
     
    726726 
    727727            sage: hg_sage.add('module_list.pyc', options='--dry-run') 
    728728            Adding file module_list.pyc 
    729             cd ... && hg add --dry-run "module_list.pyc" 
     729            cd ... && sage --hg add --dry-run "module_list.pyc" 
    730730        """ 
    731731        if isinstance(files, str): 
    732732            if ' ' in files: 
     
    789789 
    790790            sage: hg_sage.rename('sage/misc/hg.py', 'sage/misc/hgnew.py', options='--dry-run') 
    791791            Moving sage/misc/hg.py --> sage/misc/hgnew.py 
    792             cd ... && hg mv --dry-run "sage/misc/hg.py" "sage/misc/hgnew.py" 
     792            cd ... && sage --hg mv --dry-run "sage/misc/hg.py" "sage/misc/hgnew.py" 
    793793        """ 
    794794        print "Moving %s --> %s"%(src,dest) 
    795795        self('mv %s "%s" "%s"'%(options, src,dest), debug=debug) 
     
    999999        EXAMPLES:: 
    10001000 
    10011001            sage: hg_sage.revert('sage/misc/hg.py', rev=12000, options='--dry-run') 
    1002             cd ... && hg revert --dry-run -r 12000 sage/misc/hg.py 
     1002            cd ... && sage --hg revert --dry-run -r 12000 sage/misc/hg.py 
    10031003        """ 
    10041004        if not rev is None: 
    10051005            options = options +' -r %s %s'%(rev, files)  
     
    16241624        EXAMPLES:: 
    16251625 
    16261626            sage: hg_sage.qseries() 
    1627             cd ... && hg qseries 
     1627            cd ... && sage --hg qseries 
    16281628        """ 
    16291629        options = "--summary" if verbose else "" 
    16301630        self('qseries %s %s' % (options, color(),), debug=debug) 
     
    16431643        EXAMPLES:: 
    16441644 
    16451645            sage: hg_sage.qapplied() 
    1646             cd ... && hg qapplied 
     1646            cd ... && sage --hg qapplied 
    16471647        """ 
    16481648        options = "--summary" if verbose else "" 
    16491649        self('qapplied %s %s' % (options, color(),), debug=debug) 
     
    16621662        EXAMPLES:: 
    16631663 
    16641664            sage: hg_sage.qunapplied() 
    1665             cd ... && hg qunapplied 
     1665            cd ... && sage --hg qunapplied 
    16661666        """ 
    16671667        options = "--summary" if verbose else "" 
    16681668        self('qunapplied %s %s' % (options, color(),), debug=debug)