Beispiel #1
0
 def get_vcs_id_with_type(self, commit, dir_type):
     '''Return the vcs id from the base directories of the given dir_type.'''
     tracer.debug("called: commit [%s] directory type [%s]" %
                  (commit, dir_type))
     result = []
     for directory in self.__dirs[dir_type]:
         dir_split = directory.split("/")
         ltree = self.__get_tree(commit.tree, dir_split)
         result.append(ltree.hexsha)
     return ObjectCache.create_hashable(result)
Beispiel #2
0
 def get_vcs_id_with_type(self, commit, dir_type):
     '''Return the vcs id from the base directories of the given dir_type.'''
     tracer.debug("called: commit [%s] directory type [%s]"
                  % (commit, dir_type))
     result = []
     for directory in self.__dirs[dir_type]:
         dir_split = directory.split("/")
         ltree = self.__get_tree(commit.tree, dir_split)
         result.append(ltree.hexsha)
     return ObjectCache.create_hashable(result)
Beispiel #3
0
 def get_vcs_id_with_type(self, commit, dir_type):
     '''Return the filename of the given dir_type.'''
     assert commit == None
     tracer.debug("called: directory type [%s]" % dir_type)
     return ObjectCache.create_hashable(self.__dirs[dir_type])