Commits

ZyX_I  committed 3c9cd81

Fixed :AuGlog `limit' option, added explicit -onlystrings everywhere

  • Participants
  • Parent commits 3b10a0c

Comments (0)

Files changed (2)

File ftplugin/aurumgraphlog.vim

                     \'bvar.repo.changesets['.
                     \   'bvar.repo.functions.getrevhex(bvar.repo, v:val)].rev')
     elseif get(bvar.opts, 'limit', 0)>0
-        let bvar.opts.revs=[bvar.repo.csnum-limit, -1]
+        let bvar.opts.revs=[bvar.repo.csnum-bvar.opts.limit-1, -1]
     else
         let bvar.opts.revs=[0, bvar.repo.csnum-1]
     endif

File plugin/aurum.vim

                 \                  '@/python': '0.0',
                 \            '@/autocommands': '0.0',
                 \               '@/resources': '0.0',
-                \                     '@/fwc': '0.0',
+                \                     '@/fwc': '0.3',
                 \                 '@/options': '0.0',}, 0)
     call map(['hg', 'comm', 'rec'], 'extend(s:F, {v:val : {}})')
     lockvar 1 s:F
     endif
 endfunction
 let s:_augroups+=['AuRecordStatus']
-let s:recfunc['@FWC']=['{ repo '.s:repoarg.
+let s:recfunc['@FWC']=['-onlystrings '.
+            \          '{ repo '.s:repoarg.
             \          ' !addremove   :=(0)'.
             \          ' ?message           type ""'.
             \          ' ?date              type ""'.
     setlocal filetype=aurumgraphlog bufhidden=wipe
     runtime ftplugin/aurumgraphlog.vim
 endfunction
-" FIXME Check :AuGlog stats
-let s:glogfunc['@FWC']=['['.s:repoarg.']'.
+" FIXME Check :AuGlog stats, :AuGlog repo testrepo
+let s:glogfunc['@FWC']=['-onlystrings '.
+            \           '['.s:repoarg.']'.
             \           '{ *?files    (type "")'.
             \           '  *?ignfiles in [patch renames diff] ~start'.
             \           '   ?date     match /\v%(\d\d?|\*)'.
     execute 'new' fnameescape('aurum://status:'.escape(a:repo.path, '\:').':'.
                 \             join(opts, ','))
 endfunction
-let s:statfunc['@FWC']=['['.s:repoarg.']'.
+let s:statfunc['@FWC']=['-onlystrings '.
+            \           '['.s:repoarg.']'.
             \           '{ *?files     (type "")'.
             \           '   ?rev1      (type "")'.
             \           '   ?rev2      (type "")'.
                     \                  ';')
     endif
 endfunction
-let s:comfunc['@FWC']=['{  repo '.s:repoarg.
+let s:comfunc['@FWC']=['-onlystrings '.
+            \          '{  repo '.s:repoarg.
             \          ' *?type      (in [modified added removed deleted '.
             \                            'uknown ignored] ~start)'.
             \          '  ?message   (type "")'.