Exemplo n.º 1
0
 def _assert_index_entries(self, entries, trees):
     index = IndexFile.from_tree(
         self.rorepo, *[self.rorepo.tree(bin_to_hex(t)) for t in trees])
     assert entries
     assert len(index.entries) == len(entries)
     for entry in entries:
         assert (entry.path, entry.stage) in index.entries
Exemplo n.º 2
0
 def _assert_index_entries(self, entries, trees):
     index = IndexFile.from_tree(self.rorepo, *[self.rorepo.tree(bin_to_hex(t)) for t in trees])
     assert entries
     assert len(index.entries) == len(entries)
     for entry in entries:
         assert (entry.path, entry.stage) in index.entries
Exemplo n.º 3
0
 def index(self):
     """:return: IndexFile representing this repository's index."""
     return IndexFile(self)
Exemplo n.º 4
0
 def index(self):
     """:return: IndexFile representing this repository's index.
     :note: This property can be expensive, as the returned ``IndexFile`` will be
      reinitialized. It's recommended to re-use the object."""
     return IndexFile(self)