ZyX_I avatar ZyX_I committed 20896c1

@aurum/drivers/mercurial: Added “hg_useshell” option (untested). Closes #5

Comments (0)

Files changed (2)

     List of label types supported by |aurum-rf-label|. First type will be 
     default used by |:AuName|.
 requires_sort :: Bool                               *aurum-repo.requires_sort*
-    Determines whether it is necessary to run sort_in_topological_order 
-    function on commit list returned by |aurum-rf-revrange| when it is about 
-    to be displayed in |aurum://log| buffer. If it is false, then this list 
-    will only be reversed (|reverse()|).
+    Determines whether it is necessary to run sort_in_topological_order function 
+    on commit lists returned by |aurum-rf-revrange| and |aurum-rf-getchangesets| 
+    when it is about to be displayed in |aurum://log| buffer. If it is false, 
+    then this list will only be reversed (|reverse()|).
+    See |aurum-rf-getchangesets| for the description of what “topological order” 
+    is.
     This key is optional, default value: true.
 has_octopus_merges :: Bool                     *aurum-repo.has_octopus_merges*
     Determines whether repository has merges containing more then two parents. 
     Pull all changesets contained in repository into |aurum-repo.changesets| 
     dictionary. If this function is not called, then |aurum-repo.changesets| 
     dictionary contains only changesets that were used at least ones. Returns 
-    list of changesets as contained in |aurum-repo.cslist|. Return value is 
-    ignored (|aurum-rf-revrange| function is now used instead).
+    list of pulled changesets. This list should be sorted in topological order 
+    (thus meaning that every changeset appears before every its parent) or 
+    |aurum-repo.requires_sort| should be set to true.
   revrange :: hex, hex -> [ cs ]                           *aurum-rf-revrange*
     Get revision range (inclusive). Numbers are to be treated specially, like 
     it is done by |list-index|, but it is up to driver what it thinks is “last 

plugin/aurum/drivers/mercurial.vim

 "▶1 hg.getchangesets :: repo → changesets + repo.changesets
 function s:hg.getchangesets(repo)
     call a:repo.functions.updatechangesets(a:repo)
-    return a:repo.cslist
+    return a:repo.cslist[:-2]
 endfunction
 "▶1 hg.revrange :: repo, rev, rev → [cs]
 function s:F.getrev(repo, rev, cslist)
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.