Fix `svn status` output parsing to account for "replaced" files indicated
authorZac Medico <zmedico@gentoo.org>
Wed, 6 Aug 2008 03:30:32 +0000 (03:30 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 6 Aug 2008 03:30:32 +0000 (03:30 -0000)
by "R". Thanks to Arfrever.

svn path=/main/trunk/; revision=11337

bin/repoman

index 04eff733f56f6a9465feaf053b7197f58b37755d..68f94a30d61a3ea0c65a38791bc80b7a88df2273 100755 (executable)
@@ -1725,7 +1725,7 @@ else:
 
        if vcs == "svn":
                svnstatus = os.popen("svn status").readlines()
-               mychanged = [ elem.rstrip()[7:] for elem in svnstatus if elem.startswith("M") ]
+               mychanged = [ elem.rstrip()[7:] for elem in svnstatus if elem[:1] in "MR" ]
                mynew     = [ elem.rstrip()[7:] for elem in svnstatus if elem.startswith("A") ]
                myremoved = [ elem.rstrip()[7:] for elem in svnstatus if elem.startswith("D") ]
                # in contrast to CVS, SVN expands nothing by default.