mercurial/context.py
changeset 44050 2ecbc4ec87d8
parent 44039 f652b7ddc1d4
child 44051 436d106de670
equal deleted inserted replaced
44049:6cfaebb625d3 44050:2ecbc4ec87d8
  2443             else:
  2443             else:
  2444                 # Returning None, but including the path in `files`, is
  2444                 # Returning None, but including the path in `files`, is
  2445                 # necessary for memctx to register a deletion.
  2445                 # necessary for memctx to register a deletion.
  2446                 return None
  2446                 return None
  2447 
  2447 
       
  2448         if branch is None:
       
  2449             branch = self._wrappedctx.branch()
       
  2450 
  2448         return memctx(
  2451         return memctx(
  2449             self._repo,
  2452             self._repo,
  2450             parents,
  2453             parents,
  2451             text,
  2454             text,
  2452             files,
  2455             files,