@@ -134,6 +134,18 def rhdiff(ui, repo, *pats, **opts): | |||
|
134 | 134 | opts['nodates'] = True |
|
135 | 135 | return commands.diff(ui, repo, *map(urllib.unquote_plus, pats), **opts) |
|
136 | 136 | |
|
137 | def rhlog(ui, repo, *pats, **opts): | |
|
138 | rev = opts.pop('rev') | |
|
139 | bra0 = opts.pop('branch') | |
|
140 | from_rev = urllib.unquote_plus(opts.pop('from', None)) | |
|
141 | to_rev = urllib.unquote_plus(opts.pop('to' , None)) | |
|
142 | bra = urllib.unquote_plus(opts.pop('rhbranch', None)) | |
|
143 | from_rev = from_rev.replace('"', '\\"') | |
|
144 | to_rev = to_rev.replace('"', '\\"') | |
|
145 | opts['rev'] = ['"%s":"%s"' % (from_rev, to_rev)] | |
|
146 | opts['branch'] = [bra] | |
|
147 | return commands.log(ui, repo, *map(urllib.unquote_plus, pats), **opts) | |
|
148 | ||
|
137 | 149 | def rhmanifest(ui, repo, path='', **opts): |
|
138 | 150 | """output the sub-manifest of the specified directory""" |
|
139 | 151 | ui.write('<?xml version="1.0"?>\n') |
@@ -176,6 +188,26 cmdtable = { | |||
|
176 | 188 | [('r', 'rev', [], 'revision'), |
|
177 | 189 | ('c', 'change', '', 'change made by revision')], |
|
178 | 190 | 'hg rhdiff ([-c REV] | [-r REV] ...) [FILE]...'), |
|
191 | 'rhlog': (rhlog, | |
|
192 | [ | |
|
193 | ('r', 'rev', [], 'show the specified revision'), | |
|
194 | ('b', 'branch', [], | |
|
195 | 'show changesets within the given named branch', 'BRANCH'), | |
|
196 | ('l', 'limit', '', | |
|
197 | 'limit number of changes displayed', 'NUM'), | |
|
198 | ('d', 'date', '', | |
|
199 | 'show revisions matching date spec', 'DATE'), | |
|
200 | ('u', 'user', [], | |
|
201 | 'revisions committed by user', 'USER'), | |
|
202 | ('', 'from', '', | |
|
203 | '', ''), | |
|
204 | ('', 'to', '', | |
|
205 | '', ''), | |
|
206 | ('', 'rhbranch', '', | |
|
207 | '', ''), | |
|
208 | ('', 'template', '', | |
|
209 | 'display with template', 'TEMPLATE')], | |
|
210 | 'hg rhlog [OPTION]... [FILE]'), | |
|
179 | 211 | 'rhmanifest': (rhmanifest, |
|
180 | 212 | [('r', 'rev', '', 'show the specified revision')], |
|
181 | 213 | 'hg rhmanifest [-r REV] [PATH]'), |
General Comments 0
You need to be logged in to leave comments.
Login now