mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
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:
parent
22a7f7e523
commit
722eba6c8a
@ -650,7 +650,7 @@ impl fmt::Debug for MPathElement {
|
|||||||
|
|
||||||
impl fmt::Debug for MPath {
|
impl fmt::Debug for MPath {
|
||||||
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
|
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
|
||||||
write!(fmt, "MPath({:?})", self.to_vec())
|
write!(fmt, "MPath({:?} \"{}\")", self.to_vec(), self)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user