[sysadmin-bin: 166/168] gnome-post-receive-email: handle pushing branch creations and other changes



commit 97521030ec00cfc2593b6b6db6b332117f1d172e
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Mon Mar 5 15:34:52 2012 -0500

    gnome-post-receive-email: handle pushing branch creations and other changes
    
    If we pushed a branch creation and other changes in the same commit,
    we'd hit a problem because we were trying to exclude changes older
    than the 'oldrev' of the newly created branch.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=636088

 gnome-post-receive-email |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gnome-post-receive-email b/gnome-post-receive-email
index 4eac9d9..c89226c 100755
--- a/gnome-post-receive-email
+++ b/gnome-post-receive-email
@@ -218,7 +218,8 @@ class BranchChange(RefChange):
             elif branch in all_changes and not branch in processed_changes:
                 # For branches that were updated in this push but we haven't processed
                 # yet, exclude commits before their old revisions
-                detailed_commit_args.append("^" + all_changes[branch].oldrev)
+                if all_changes[branch].change_type != CREATE:
+                    detailed_commit_args.append("^" + all_changes[branch].oldrev)
             else:
                 # Exclude commits that are ancestors of all other branches
                 detailed_commit_args.append("^" + branch)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]