* show path from root.
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user