hgext/narrow/narrowbundle2.py
changeset 43246 0fd47eb508c6
parent 43245 c320887c8e1c
child 43247 599e0e62b597
equal deleted inserted replaced
43245:c320887c8e1c 43246:0fd47eb508c6
   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