diff -r 11b89e636d33 -r 0121b9ab8edb Project/Project.py --- a/Project/Project.py Sun Jan 27 17:05:36 2013 +0100 +++ b/Project/Project.py Mon Jan 28 19:24:14 2013 +0100 @@ -734,7 +734,7 @@ self.otherssubdirs.append(dn) # create hash value, if it doesn't have one - if not self.pdata["HASH"][0]: + if reader.version.startswith("5.") and not self.pdata["HASH"][0]: hash = str(QCryptographicHash.hash( QByteArray(self.ppath.encode("utf-8")), QCryptographicHash.Sha1).toHex(), @@ -759,6 +759,13 @@ self.pdata["VCSOPTIONS"] = [copy.deepcopy(self.vcs.vcsGetOptions())] self.pdata["VCSOTHERDATA"] = [copy.deepcopy(self.vcs.vcsGetOtherData())] + if not self.pdata["HASH"][0]: + hash = str(QCryptographicHash.hash( + QByteArray(self.ppath.encode("utf-8")), + QCryptographicHash.Sha1).toHex(), + encoding="utf-8") + self.pdata["HASH"] = [hash] + if fn is None: fn = self.pfile