tests/test-glog.t
changeset 17180 ae0629161090
parent 17120 01d847e0fdc9
child 17207 62c56c94c77e
equal deleted inserted replaced
17179:0849d725e2f9 17180:ae0629161090
    80   >   echo $rev > a
    80   >   echo $rev > a
    81   >   hg commit -Aqd "$rev 0" -m "($rev) $msg"
    81   >   hg commit -Aqd "$rev 0" -m "($rev) $msg"
    82   > }
    82   > }
    83 
    83 
    84   $ cat > printrevset.py <<EOF
    84   $ cat > printrevset.py <<EOF
    85   > from mercurial import extensions, revset, commands
    85   > from mercurial import extensions, revset, commands, cmdutil
    86   > from hgext import graphlog
       
    87   >  
    86   >  
    88   > def uisetup(ui):
    87   > def uisetup(ui):
    89   >     def printrevset(orig, ui, repo, *pats, **opts):
    88   >     def printrevset(orig, ui, repo, *pats, **opts):
    90   >         if opts.get('print_revset'):
    89   >         if opts.get('print_revset'):
    91   >             expr = graphlog.getlogrevs(repo, pats, opts)[1]
    90   >             expr = cmdutil.getgraphlogrevs(repo, pats, opts)[1]
    92   >             if expr:
    91   >             if expr:
    93   >                 tree = revset.parse(expr)[0]
    92   >                 tree = revset.parse(expr)[0]
    94   >             else:
    93   >             else:
    95   >                 tree = []
    94   >                 tree = []
    96   >             ui.write('%r\n' % (opts.get('rev', []),))
    95   >             ui.write('%r\n' % (opts.get('rev', []),))