Commits

ZyX_I committed df38907

Make it sort values in drivers-bazaar test

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

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, ...)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.