From: Zac Medico Date: Fri, 7 Oct 2011 16:06:49 +0000 (-0700) Subject: repoman: tweak myupdates/myheaders commit logic X-Git-Tag: v2.2.0_alpha63 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d2249e5f44ee4ae22304b4d120c4be43c6ab45d4;p=portage.git repoman: tweak myupdates/myheaders commit logic If we unconditionally exclude myremoved from myupdates, then removed files will also be excluded from myheaders. This allows us to avoid unnecessary separate manifest commits in cases when "myheaders" only contained files that were being removed. Since our code always uses myupdates + myremoved, this change in logic doesn't break anything. --- diff --git a/bin/repoman b/bin/repoman index ec227ed41..5d2a84c5f 100755 --- a/bin/repoman +++ b/bin/repoman @@ -2323,8 +2323,7 @@ else: mymanifests.add(f) else: myupdates.add(f) - if vcs in ('git', 'hg'): - myupdates.difference_update(myremoved) + myupdates.difference_update(myremoved) myupdates = list(myupdates) mymanifests = list(mymanifests) myheaders = []