Show More
@@ -14,6 +14,7 from mercurial import ( | |||
|
14 | 14 | lock as lockmod, |
|
15 | 15 | merge, |
|
16 | 16 | node as nodemod, |
|
17 | pycompat, | |
|
17 | 18 | registrar, |
|
18 | 19 | repair, |
|
19 | 20 | scmutil, |
@@ -133,6 +134,7 def stripcmd(ui, repo, *revs, **opts): | |||
|
133 | 134 | |
|
134 | 135 | Return 0 on success. |
|
135 | 136 | """ |
|
137 | opts = pycompat.byteskwargs(opts) | |
|
136 | 138 | backup = True |
|
137 | 139 | if opts.get('no_backup') or opts.get('nobackup'): |
|
138 | 140 | backup = False |
@@ -354,6 +354,7 class templateformatter(baseformatter): | |||
|
354 | 354 | self._cache = {} # for templatekw/funcs to store reusable data |
|
355 | 355 | def context(self, **ctxs): |
|
356 | 356 | '''insert context objects to be used to render template keywords''' |
|
357 | ctxs = pycompat.byteskwargs(ctxs) | |
|
357 | 358 | assert all(k == 'ctx' for k in ctxs) |
|
358 | 359 | self._item.update(ctxs) |
|
359 | 360 | def _showitem(self): |
General Comments 0
You need to be logged in to leave comments.
Login now