Source

aurum / autoload / aurum.vim

Diff from to

autoload/aurum.vim

     return s:_r.cache.get('cs', repo.functions.getwork, [repo], {})
 endfunction
 let s:_functions+=['aurum#changeset']
+"▶1 aurum#currev
+function aurum#currev(ret)
+    let [repo, rev] = s:_r.cmdutils.getrrf({}, 'norev', 'getrr')[1:2]
+    if rev is 0
+        let rev=repo.functions.getworkhex(repo)
+    endif
+    if a:ret is# 'hex'
+        return repo.functions.getrevhex(repo, rev)
+    elseif a:ret is# 'rev'
+        return repo.functions.getcs(repo, rev).rev
+    elseif a:ret is# 'cs'
+        return repo.functions.getcs(repo, rev)
+    endif
+endfunction
+let s:_functions+=['aurum#currev']
 "▶1 filestatus
 function s:F.filestatus(status)
     return get(keys(filter(copy(a:status), '!empty(v:val)')), 0, '')
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.