mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 15:35:49 +01:00
fix fileview command since it was using a deprecated api which is no longer available in newer mercurial versions (<= 4.7)
This commit is contained in:
@@ -34,7 +34,7 @@ Prints date, size and last message of files.
|
||||
"""
|
||||
|
||||
from collections import defaultdict
|
||||
from mercurial import cmdutil,util
|
||||
from mercurial import scmutil
|
||||
|
||||
cmdtable = {}
|
||||
|
||||
@@ -273,7 +273,7 @@ class File_Viewer:
|
||||
('t', 'transport', False, 'format the output for command server'),
|
||||
])
|
||||
def fileview(ui, repo, **opts):
|
||||
revCtx = repo[opts["revision"]]
|
||||
revCtx = scmutil.revsingle(repo, opts["revision"])
|
||||
subrepos = {}
|
||||
if not opts["disableSubRepositoryDetection"]:
|
||||
subrepos = collect_sub_repositories(revCtx)
|
||||
|
||||
Reference in New Issue
Block a user