equal
deleted
inserted
replaced
118 oldexclude, |
118 oldexclude, |
119 newinclude, |
119 newinclude, |
120 newexclude, |
120 newexclude, |
121 version, |
121 version, |
122 common, |
122 common, |
123 heads, |
|
124 known, |
123 known, |
125 depth, |
124 depth, |
126 ): |
125 ): |
127 newmatch = narrowspec.match( |
126 newmatch = narrowspec.match( |
128 repo.root, include=newinclude, exclude=newexclude |
127 repo.root, include=newinclude, exclude=newexclude |
130 if depth is not None: |
129 if depth is not None: |
131 depth = int(depth) |
130 depth = int(depth) |
132 if depth < 1: |
131 if depth < 1: |
133 raise error.Abort(_(b'depth must be positive, got %d') % depth) |
132 raise error.Abort(_(b'depth must be positive, got %d') % depth) |
134 |
133 |
135 heads = set(heads or repo.heads()) |
|
136 common = set(common or [nullid]) |
134 common = set(common or [nullid]) |
137 # Steps: |
135 # Steps: |
138 # 1. Send kill for "$known & ::common" |
136 # 1. Send kill for "$known & ::common" |
139 # |
137 # |
140 # 2. Send changegroup for ::common |
138 # 2. Send changegroup for ::common |