mercurial/context.py
changeset 42101 f4b1f5537d4c
parent 42100 b63b8b7ca5fa
child 42102 976f069e0ad6
equal deleted inserted replaced
42100:b63b8b7ca5fa 42101:f4b1f5537d4c
  1952             if component in self:
  1952             if component in self:
  1953                 fail(path, component)
  1953                 fail(path, component)
  1954 
  1954 
  1955         # Test the other direction -- that this path from p2 isn't a directory
  1955         # Test the other direction -- that this path from p2 isn't a directory
  1956         # in p1 (test that p1 doesn't have any paths matching `path/*`).
  1956         # in p1 (test that p1 doesn't have any paths matching `path/*`).
  1957         match = self.match(include=[path + '/'], default=b'path')
  1957         match = self.match([path + '/'], default=b'path')
  1958         matches = self.p1().manifest().matches(match)
  1958         matches = self.p1().manifest().matches(match)
  1959         mfiles = matches.keys()
  1959         mfiles = matches.keys()
  1960         if len(mfiles) > 0:
  1960         if len(mfiles) > 0:
  1961             if len(mfiles) == 1 and mfiles[0] == path:
  1961             if len(mfiles) == 1 and mfiles[0] == path:
  1962                 return
  1962                 return