From 3b1483aef27133491ec7390b9d2be814df83923c Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Sun, 27 Jul 2008 14:54:44 +0000 Subject: [PATCH] Improve svn properties reading, thanks to Arfrever in #-portage. svn path=/main/branches/prefix/; revision=11225 --- bin/repoman | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/bin/repoman b/bin/repoman index e3336b5e1..a164b4c3f 100755 --- a/bin/repoman +++ b/bin/repoman @@ -1753,13 +1753,14 @@ else: mychanged = [ elem.rstrip()[7:] for elem in svnstatus if elem.startswith("M") ] 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, but of - # course proplist's output is horrible. bin_blobs historically + # in contrast to CVS, SVN expands nothing by default. + # bin_blobs historically # were just there to see what files need to be checked for # keyword expansion, which is exactly what we do here, so - # slightly change the semantic meaning of "bin_blob"... - props = os.popen("svn proplist -R").readlines() - expansion = [ prop[15:-3] for prop in props if prop.startswith("Properties on '") ] + # slightly change the semantic meaning of "bin_blob"... In the + # future we could store which keyword is expanded. + props = os.popen("svn propget -R svn:keywords").readlines() + expansion = [ prop.split("-")[0].strip() for prop in props ] if vcs: if not (mychanged or mynew or myremoved): -- 2.26.2