Mercurial > public > mercurial-scm > hg
diff mercurial/dirstate.py @ 32772:7ad95626f6a7
filestat: move __init__ to frompath constructor
We're going to add a `fromfp` constructor soon, and this also allows a filestat
object for a non-existent file to be created.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Sat, 10 Jun 2017 14:09:54 -0700 |
parents | b698921ee137 |
children | b7f6885cb055 |
line wrap: on
line diff
--- a/mercurial/dirstate.py Sat Jun 10 14:07:31 2017 -0700 +++ b/mercurial/dirstate.py Sat Jun 10 14:09:54 2017 -0700 @@ -432,7 +432,8 @@ self._map = {} self._copymap = {} # ignore HG_PENDING because identity is used only for writing - self._identity = util.filestat(self._opener.join(self._filename)) + self._identity = util.filestat.frompath( + self._opener.join(self._filename)) try: fp = self._opendirstatefile() try: