ZyX_I avatar ZyX_I committed c71bb30

Fix svn.status

Fixes #95

Comments (0)

Files changed (2)

autoload/aurum/drivers/subversion.vim

             let reverse=(a:2<a:1)
             let s=a:repo.functions.getcs(a:repo, ''.max([+a:1, +a:2])).status
             if a:0>2 && !empty(a:3)
-                call map(copy(s), 'filter(copy(v:val), "index(a:3,v:val)!=-1")')
+                let s=map(deepcopy(s), 'filter(v:val, "index(a:3,v:val)!=-1")')
             endif
-            let revs=s:F.statreverse(s)
             if requiresclean
+                let revs=s:F.statreverse(s)
                 call filter(allfiles, '!has_key(revs, v:val)')
             endif
             call extend(r, s)

test/drivers-subversion.ok

 | $  subdir/pqr             | 1 0
 | $  subdir2/stu            | 1 0
 | $6 files changed, 6 insertions, 0 deletions
-| :Index: ghi
-| :===================================================================
-| :--- ghi	(revision 0)
-| :+++ ghi	(revision 4)
-| :@@ -0,0 +1 @@
-| :+Def
-| :Index: subdir/pqr
-| :===================================================================
-| :--- subdir/pqr	(revision 0)
-| :+++ subdir/pqr	(revision 4)
-| :@@ -0,0 +1 @@
-| :+Mno
 | :Index: mno
 | :===================================================================
 | :--- mno	(revision 0)
 | :+++ def	(revision 4)
 | :@@ -0,0 +1 @@
 | :+Abc
+| :Index: ghi
+| :===================================================================
+| :--- ghi	(revision 0)
+| :+++ ghi	(revision 4)
+| :@@ -0,0 +1 @@
+| :+Def
+| :Index: subdir/pqr
+| :===================================================================
+| :--- subdir/pqr	(revision 0)
+| :+++ subdir/pqr	(revision 4)
+| :@@ -0,0 +1 @@
+| :+Mno
 o Changeset 3:3
 | Commited 08 Jan 2012 20:45 by zyx
 R def
 ? unknown-file
 {{{1 Status: relative to other (1)
+A subdir2/stu
 A ghi
 A mno
-A subdir2/stu
 A subdir/pqr
 A subdir/file-2
 A .
 R ghi
 R mno
 R subdir2/stu
+R subdir/file-2
 R subdir/pqr
-R subdir/file-2
 R .
 R new-file
 {{{1 Status: between two revisions
 M file-under-svn-control
 R ghi
 R --force
+R subdir/file-2
 R subdir/pqr
-R subdir/file-2
 R mno
 R subdir2/stu
 R def
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.