##// END OF EJS Templates
children: migrate `opts` to native kwargs
Matt Harbison -
r51764:0c76520e default
parent child Browse files
Show More
@@ -67,8 +67,7 b' def children(ui, repo, file_=None, **opt'
67 See :hg:`help log` and :hg:`help revsets.children`.
67 See :hg:`help log` and :hg:`help revsets.children`.
68
68
69 """
69 """
70 opts = pycompat.byteskwargs(opts)
70 rev = opts.get('rev')
71 rev = opts.get(b'rev')
72 ctx = logcmdutil.revsingle(repo, rev)
71 ctx = logcmdutil.revsingle(repo, rev)
73 if file_:
72 if file_:
74 fctx = repo.filectx(file_, changeid=ctx.rev())
73 fctx = repo.filectx(file_, changeid=ctx.rev())
@@ -76,7 +75,9 b' def children(ui, repo, file_=None, **opt'
76 else:
75 else:
77 childctxs = ctx.children()
76 childctxs = ctx.children()
78
77
79 displayer = logcmdutil.changesetdisplayer(ui, repo, opts)
78 displayer = logcmdutil.changesetdisplayer(
79 ui, repo, pycompat.byteskwargs(opts)
80 )
80 for cctx in childctxs:
81 for cctx in childctxs:
81 displayer.show(cctx)
82 displayer.show(cctx)
82 displayer.close()
83 displayer.close()
General Comments 0
You need to be logged in to leave comments. Login now