Show More
@@ -102,7 +102,7 b' o (0) root' | |||
|
102 | 102 | > def uisetup(ui): |
|
103 | 103 | > def printrevset(orig, repo, pats, opts): |
|
104 | 104 | > revs, filematcher = orig(repo, pats, opts) |
|
105 | > if opts.get('print_revset'): | |
|
105 | > if opts.get(b'print_revset'): | |
|
106 | 106 | > expr = logrevset(repo, pats, opts) |
|
107 | 107 | > if expr: |
|
108 | 108 | > tree = revsetlang.parse(expr) |
@@ -110,15 +110,15 b' o (0) root' | |||
|
110 | 110 | > else: |
|
111 | 111 | > tree = [] |
|
112 | 112 | > ui = repo.ui |
|
113 | > ui.write('%r\n' % (opts.get('rev', []),)) | |
|
114 | > ui.write(revsetlang.prettyformat(tree) + '\n') | |
|
115 | > ui.write(smartset.prettyformat(revs) + '\n') | |
|
113 | > ui.write(b'%r\n' % (opts.get(b'rev', []),)) | |
|
114 | > ui.write(revsetlang.prettyformat(tree) + b'\n') | |
|
115 | > ui.write(smartset.prettyformat(revs) + b'\n') | |
|
116 | 116 | > revs = smartset.baseset() # display no revisions |
|
117 | 117 | > return revs, filematcher |
|
118 | 118 | > extensions.wrapfunction(logcmdutil, 'getrevs', printrevset) |
|
119 | > aliases, entry = cmdutil.findcmd('log', commands.table) | |
|
120 | > entry[1].append(('', 'print-revset', False, | |
|
121 | > 'print generated revset and exit (DEPRECATED)')) | |
|
119 | > aliases, entry = cmdutil.findcmd(b'log', commands.table) | |
|
120 | > entry[1].append((b'', b'print-revset', False, | |
|
121 | > b'print generated revset and exit (DEPRECATED)')) | |
|
122 | 122 | > EOF |
|
123 | 123 | |
|
124 | 124 | $ echo "[extensions]" >> $HGRCPATH |
General Comments 0
You need to be logged in to leave comments.
Login now