* show path from root.

This commit is contained in:
Faik Uygur
2006-08-28 19:50:53 +00:00
parent a0cb50a5e3
commit 76c540ba7c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -786,7 +786,7 @@ Usage: info <package1> <package2> ... <packagen>
if self.options.files:
print fileinfo
else:
print fileinfo.path
print "/" + fileinfo.path
else:
ctx.ui.warning(_('File information not available'))
if not self.options.short:
+1 -1
View File
@@ -31,7 +31,7 @@ class FileInfo:
t_Permanent = [ autoxml.String, autoxml.optional ]
def __str__(self):
s = "%s, type: %s, size: %s, sha1sum: %s" % (self.path, self.type,
s = "/%s, type: %s, size: %s, sha1sum: %s" % (self.path, self.type,
self.size, self.hash)
return s