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