Commits

ZyX_I committed df38907

Make it sort values in drivers-bazaar test

  • Participants
  • Parent commits 8e1f8c4

Comments (0)

Files changed (3)

test/cmd-branch.in

 :R silent AuCommit type ? message Added\ jklfile jklfile
 :WT
 :source addmessages.vim
+:" The following is enough for extended-funcref bug: 
+:" :W{{{1 D
+:" :runtime plugin/frawor.vim

test/drivers-bazaar.ok

Binary file modified.

test/drivers-bazaar.vim

     endfor
 endfunction
 let skippednewcsprops=['hex', 'time', 'user', 'parents']
+function SortedString(l)
+    if type(a:l)==type([])
+        return string(sort(copy(a:l)))
+    elseif type(a:l)==type({}) && len(keys(a:l))>1
+        return '{'.join(sort(map(items(a:l),
+                    \            'string(v:val[0]).": ".string(v:val[1])')),
+                    \   ', ').
+                    \'}'
+    else
+        return string(a:l)
+    endif
+endfunction
 function FormatCS(repo, cs, ...)
     let g:r+=[' >> Changeset']
     let maxlen=len('description')
             continue
         endif
         let g:r+=['  '.printf('%-*s', maxlen, p).':'.
-                    \string(a:repo.functions.getcsprop(a:repo, a:cs, p))]
+                    \SortedString(a:repo.functions.getcsprop(a:repo, a:cs, p))]
     endfor
 endfunction
 function FormatStatus(repo, args, ...)