mercurial-types: make debug printing of MPath easier to read

Summary: Now both RepoPath and MPath are showing human readable paths when printed

Reviewed By: farnz

Differential Revision: D7112280

fbshipit-source-id: ba7698d2ffa90a125176d70d665cdef669d63b93
This commit is contained in:
Lukas Piatkowski 2018-02-28 14:00:24 -08:00 committed by Facebook Github Bot
parent 22a7f7e523
commit 722eba6c8a

View File

@ -650,7 +650,7 @@ impl fmt::Debug for MPathElement {
impl fmt::Debug for MPath {
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
write!(fmt, "MPath({:?})", self.to_vec())
write!(fmt, "MPath({:?} \"{}\")", self.to_vec(), self)
}
}