After fixing #2914, there will be no use case of get_mtime_and_size without a *Tree object.
Need to move get_mtime_and_size method to be tree function. Probably it will need to be CleanTree(we need to use .dvcignore during metadata gathering) though, there should probably be the mechanism of checking that we are trying to obtain the metadata from WorkingTree because this method does not make sense for GitTree
After fixing #2914, there will be no use case of
get_mtime_and_sizewithout a*Treeobject.Need to move
get_mtime_and_sizemethod to be tree function. Probably it will need to beCleanTree(we need to use.dvcignoreduring metadata gathering) though, there should probably be the mechanism of checking that we are trying to obtain the metadata from WorkingTree because this method does not make sense forGitTree