From d2249e5f44ee4ae22304b4d120c4be43c6ab45d4 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 7 Oct 2011 09:06:49 -0700 Subject: 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. --- bin/repoman | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 = [] -- cgit v1.2.3-1-g7c22