Allow repoman to commit files, which have changes only in SVN properties.
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org>
Sat, 23 Oct 2010 16:26:02 +0000 (18:26 +0200)
committerArfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org>
Sat, 23 Oct 2010 16:26:02 +0000 (18:26 +0200)
bin/repoman
pym/repoman/utilities.py

index 4f4c2ecf770c9c674c6e6b999d0cb45d804345b8..ee179c406742292ecc19cfd0206eea9623e68cf4 100755 (executable)
@@ -2151,9 +2151,9 @@ else:
 
        if vcs == "svn":
                svnstatus = os.popen("svn status").readlines()
-               mychanged = [ "./" + elem.split()[-1:][0] for elem in svnstatus if elem and elem[:1] in "MR" ]
-               mynew     = [ "./" + elem.split()[-1:][0] for elem in svnstatus if elem.startswith("A") ]
-               myremoved = [ "./" + elem.split()[-1:][0] for elem in svnstatus if elem.startswith("D") ]
+               mychanged = [ "./" + elem.split()[-1:][0] for elem in svnstatus if elem and (elem[0] in "MR" or elem[1] in "M")]
+               mynew     = [ "./" + elem.split()[-1:][0] for elem in svnstatus if elem.startswith("A")]
+               myremoved = [ "./" + elem.split()[-1:][0] for elem in svnstatus if elem.startswith("D")]
                # in contrast to CVS, SVN expands nothing by default.
                # bin_blobs historically
                # were just there to see what files need to be checked for
index 5d32e0ce9d76ab36d3bfb4951f9005448af7cb88..953c3cd2b43848f6b65fb177cb57202b9130a275 100644 (file)
@@ -1,5 +1,5 @@
 # repoman: Utilities
-# Copyright 2007 Gentoo Foundation
+# Copyright 2007-2010 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 """This module contains utility functions to help repoman find ebuilds to
@@ -75,7 +75,7 @@ def detect_vcs_conflicts(options, vcs):
                for line in mylines:
                        if not line:
                                continue
-                       if line[0] not in "UPMARD": # Updates,Patches,Modified,Added,Removed/Replaced(svn),Deleted(svn)
+                       if line[0] not in " UPMARD": # unmodified(svn),Updates,Patches,Modified,Added,Removed/Replaced(svn),Deleted(svn)
                                # Stray Manifest is fine, we will readd it anyway.
                                if line[0] == '?' and line[1:].lstrip() == 'Manifest':
                                        continue