aurum / test / cmd-other.in

:let g:r={'-': g:curtest.'repo', '^': 'hgtestbranchedrepo'}
:function R(s)
    return get(g:r, a:s, 'cmd-other-'.a:s)
 endfunction
:function S(s)
    return substitute(a:s, '@[\^\-A-Z]', '\=R(submatch(0)[1])', 'g')
 endfunction
:command -nargs=1       AL  :execute "W{{{1 ".<q-args>.": initial state\nRun! AuLog ".R(<q-args>) | bwipeout
:command -nargs=1 -bang AO  :let a=<q-args> | execute "AuOther<bang> ".S(a[2:]) | execute "Run! AuLog ".R(a[0]) | bwipeout
:command -nargs=1 -bang AOa :let a=<q-args> | execute "cd ".R(a[0])."\nAuOther<bang> ".S(a[2:]) | execute "Run! AuLog" | bwipeout | cd -
:command -nargs=1 -bang AOb :let a=<q-args> | execute "cd ".R(a[0])."\nAuOther<bang> ".S(a[4:]) | cd - | execute "Run! AuLog ".R(a[2]) | bwipeout
:AL A
:AL B
:AL C
:AL -
:AL ^
:W{{{1 A: default push C from B
:AOb B A push C
:W{{{1 A: default push from B
:AOb B A push
:W{{{1 A: default pull E from ^
:AOa A pull E
:W{{{1 A: default pull from ^
:AOa A pull
:W{{{1 B: push E from ^
:AOb ^ B push E ../@B
:W{{{1 B: push from ^
:AOb ^ B push : ../@B
:W{{{1 C: pull E from ^
:AOa C pull E ../@^
:W{{{1 C: pull from ^
:AOa C pull : ../@^
:W{{{1 A: pull from -
:AOa A pull : ../@-
:W{{{1 A: forced pull from -
:AOa!A pull : ../@-
:W{{{1 B: push from -
:AOb - B push : ../@B
:W{{{1 B: forced push from -
:AOb!- B push : ../@B
:W{{{1 C: forced pull from - to C
:AO! C pull : @- @C
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.