Commit ea020cb
git-svn: exclude already merged tips using one rev-list call
The old function would have to check all mentioned merge tips, every time
that the mergeinfo ticket changed. This involved 1-2 rev-list operation
for each listed mergeinfo line. If there are a lot of feature branches
being merged into a trunk, this makes for a very expensive operation for
detecting the new parents on every merge.
This new version first uses a single 'rev-list' to figure out which commit
ranges are already reachable from the parents. This is used to eliminate
the already merged branches from the list.
Signed-off-by: Sam Vilain <[email protected]>
Acked-by: Eric Wong <[email protected]>1 parent 33973a5 commit ea020cb
1 file changed
+48
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3038 | 3038 | | |
3039 | 3039 | | |
3040 | 3040 | | |
| 3041 | + | |
| 3042 | + | |
| 3043 | + | |
| 3044 | + | |
| 3045 | + | |
| 3046 | + | |
| 3047 | + | |
| 3048 | + | |
| 3049 | + | |
| 3050 | + | |
| 3051 | + | |
| 3052 | + | |
| 3053 | + | |
| 3054 | + | |
| 3055 | + | |
| 3056 | + | |
| 3057 | + | |
| 3058 | + | |
| 3059 | + | |
| 3060 | + | |
| 3061 | + | |
| 3062 | + | |
| 3063 | + | |
| 3064 | + | |
| 3065 | + | |
| 3066 | + | |
| 3067 | + | |
| 3068 | + | |
| 3069 | + | |
| 3070 | + | |
| 3071 | + | |
| 3072 | + | |
| 3073 | + | |
| 3074 | + | |
| 3075 | + | |
3041 | 3076 | | |
3042 | 3077 | | |
3043 | 3078 | | |
| |||
3050 | 3085 | | |
3051 | 3086 | | |
3052 | 3087 | | |
3053 | | - | |
3054 | 3088 | | |
3055 | 3089 | | |
| 3090 | + | |
3056 | 3091 | | |
3057 | 3092 | | |
3058 | 3093 | | |
3059 | | - | |
3060 | 3094 | | |
3061 | 3095 | | |
3062 | 3096 | | |
| 3097 | + | |
3063 | 3098 | | |
3064 | 3099 | | |
3065 | 3100 | | |
3066 | 3101 | | |
| 3102 | + | |
| 3103 | + | |
| 3104 | + | |
| 3105 | + | |
| 3106 | + | |
| 3107 | + | |
3067 | 3108 | | |
3068 | 3109 | | |
3069 | | - | |
| 3110 | + | |
| 3111 | + | |
| 3112 | + | |
| 3113 | + | |
3070 | 3114 | | |
3071 | 3115 | | |
3072 | 3116 | | |
| |||
3076 | 3120 | | |
3077 | 3121 | | |
3078 | 3122 | | |
3079 | | - | |
| 3123 | + | |
3080 | 3124 | | |
3081 | 3125 | | |
3082 | 3126 | | |
| |||
0 commit comments