Commits

Simon Williams committed 2e6c0d9

Fixed bug causing parents to be ignored

Comments (0)

Files changed (1)

         for key in rev.keys():
             self.__setattr__(key, unquote(rev[key]))
         self.rev = int(self.rev)
-        if not hasattr(self, "parent"):
+        if not self.parents:
             self.parents = [int(self.rev)-1]
         else:
             self.parents = [int(p) for p in self.parents.split()]