hgext/fix.py
changeset 38590 f068495a1c28
parent 38537 a3be09e277e9
child 38770 260c17eaf3f7
equal deleted inserted replaced
38589:91618801d5c3 38590:f068495a1c28
   383 
   383 
   384 def getbasectxs(repo, opts, revstofix):
   384 def getbasectxs(repo, opts, revstofix):
   385     """Returns a map of the base contexts for each revision
   385     """Returns a map of the base contexts for each revision
   386 
   386 
   387     The base contexts determine which lines are considered modified when we
   387     The base contexts determine which lines are considered modified when we
   388     attempt to fix just the modified lines in a file.
   388     attempt to fix just the modified lines in a file. It also determines which
       
   389     files we attempt to fix, so it is important to compute this even when
       
   390     --whole is used.
   389     """
   391     """
   390     # The --base flag overrides the usual logic, and we give every revision
   392     # The --base flag overrides the usual logic, and we give every revision
   391     # exactly the set of baserevs that the user specified.
   393     # exactly the set of baserevs that the user specified.
   392     if opts.get('base'):
   394     if opts.get('base'):
   393         baserevs = set(scmutil.revrange(repo, opts.get('base')))
   395         baserevs = set(scmutil.revrange(repo, opts.get('base')))