Revision 441:cbce1fd3b1b7 lib/redmine/scm/adapters/mercurial

View differences:

lib/redmine/scm/adapters/mercurial/.svn/all-wcprops
1 1
K 25
2 2
svn:wc:ra_dav:version-url
3
V 59
4
/svn/!svn/ver/4989/trunk/lib/redmine/scm/adapters/mercurial
5
END
6
hg-template-0.9.5.tmpl
7
K 25
8
svn:wc:ra_dav:version-url
9
V 82
10
/svn/!svn/ver/4633/trunk/lib/redmine/scm/adapters/mercurial/hg-template-0.9.5.tmpl
3
V 73
4
/svn/!svn/ver/5878/branches/1.2-stable/lib/redmine/scm/adapters/mercurial
11 5
END
12 6
redminehelper.py
13 7
K 25
14 8
svn:wc:ra_dav:version-url
15
V 76
16
/svn/!svn/ver/4989/trunk/lib/redmine/scm/adapters/mercurial/redminehelper.py
9
V 90
10
/svn/!svn/ver/5878/branches/1.2-stable/lib/redmine/scm/adapters/mercurial/redminehelper.py
17 11
END
18
hg-template-1.0.tmpl
19
K 25
20
svn:wc:ra_dav:version-url
21
V 80
22
/svn/!svn/ver/4633/trunk/lib/redmine/scm/adapters/mercurial/hg-template-1.0.tmpl
23
END
lib/redmine/scm/adapters/mercurial/.svn/entries
1 1
10
2 2

  
3 3
dir
4
4993
5
http://redmine.rubyforge.org/svn/trunk/lib/redmine/scm/adapters/mercurial
4
6000
5
http://redmine.rubyforge.org/svn/branches/1.2-stable/lib/redmine/scm/adapters/mercurial
6 6
http://redmine.rubyforge.org/svn
7 7

  
8 8

  
9 9

  
10
2011-03-02T10:17:36.526269Z
11
4989
10
2011-03-14T02:23:54.474379Z
11
5112
12 12
tmaruyama
13 13
has-props
14 14

  
......
32 32

  
33 33

  
34 34

  
35
2011-03-03T11:05:14.000000Z
35
2011-06-06T13:15:00.000000Z
36 36
961af0eb6ab17203d985cdeac685937e
37 37
2011-01-05T15:02:24.961855Z
38 38
4633
......
66 66

  
67 67

  
68 68

  
69
2011-03-03T11:40:18.000000Z
70
5bf6790a201bf33c17cae96c6a9d75fc
71
2011-03-02T10:17:36.526269Z
72
4989
69
2011-06-06T13:20:53.000000Z
70
e00d9a9bc9249ea3dca63636370ba377
71
2011-03-14T02:23:54.474379Z
72
5112
73 73
tmaruyama
74 74

  
75 75

  
......
92 92

  
93 93

  
94 94

  
95
6270
95
7856
96 96

97 97
hg-template-1.0.tmpl
98 98
file
......
100 100

  
101 101

  
102 102

  
103
2011-03-03T11:05:14.000000Z
103
2011-06-06T13:15:00.000000Z
104 104
9d5de62ae8cdc141d3f8b970dbba07a0
105 105
2011-01-05T15:02:24.961855Z
106 106
4633
lib/redmine/scm/adapters/mercurial/.svn/text-base/redminehelper.py.svn-base
120 120
    ui.write('</manifest>\n')
121 121

  
122 122
def rhannotate(ui, repo, *pats, **opts):
123
    rev = urllib.unquote_plus(opts.pop('rev', None))
124
    opts['rev'] = rev
123 125
    return commands.annotate(ui, repo, *map(urllib.unquote_plus, pats), **opts)
124 126

  
125 127
def rhcat(ui, repo, file1, *pats, **opts):
128
    rev = urllib.unquote_plus(opts.pop('rev', None))
129
    opts['rev'] = rev
126 130
    return commands.cat(ui, repo, urllib.unquote_plus(file1), *map(urllib.unquote_plus, pats), **opts)
127 131

  
128 132
def rhdiff(ui, repo, *pats, **opts):
......
134 138
    opts['nodates'] = True
135 139
    return commands.diff(ui, repo, *map(urllib.unquote_plus, pats), **opts)
136 140

  
141
def rhlog(ui, repo, *pats, **opts):
142
    rev      = opts.pop('rev')
143
    bra0     = opts.pop('branch')
144
    from_rev = urllib.unquote_plus(opts.pop('from', None))
145
    to_rev   = urllib.unquote_plus(opts.pop('to'  , None))
146
    bra      = urllib.unquote_plus(opts.pop('rhbranch', None))
147
    from_rev = from_rev.replace('"', '\\"')
148
    to_rev   = to_rev.replace('"', '\\"')
149
    opts['rev'] = ['"%s":"%s"' % (from_rev, to_rev)]
150
    opts['branch'] = [bra]
151
    return commands.log(ui, repo, *map(urllib.unquote_plus, pats), **opts)
152

  
137 153
def rhmanifest(ui, repo, path='', **opts):
138 154
    """output the sub-manifest of the specified directory"""
139 155
    ui.write('<?xml version="1.0"?>\n')
......
176 192
               [('r', 'rev', [], 'revision'),
177 193
                ('c', 'change', '', 'change made by revision')],
178 194
               'hg rhdiff ([-c REV] | [-r REV] ...) [FILE]...'),
195
    'rhlog': (rhlog,
196
                   [
197
                    ('r', 'rev', [], 'show the specified revision'),
198
                    ('b', 'branch', [],
199
                       'show changesets within the given named branch', 'BRANCH'),
200
                    ('l', 'limit', '',
201
                         'limit number of changes displayed', 'NUM'),
202
                    ('d', 'date', '',
203
                         'show revisions matching date spec', 'DATE'),
204
                    ('u', 'user', [],
205
                      'revisions committed by user', 'USER'),
206
                    ('', 'from', '',
207
                      '', ''),
208
                    ('', 'to', '',
209
                      '', ''),
210
                    ('', 'rhbranch', '',
211
                      '', ''),
212
                    ('', 'template', '',
213
                       'display with template', 'TEMPLATE')],
214
                   'hg rhlog [OPTION]... [FILE]'),
179 215
    'rhmanifest': (rhmanifest,
180 216
                   [('r', 'rev', '', 'show the specified revision')],
181 217
                   'hg rhmanifest [-r REV] [PATH]'),
lib/redmine/scm/adapters/mercurial/redminehelper.py
120 120
    ui.write('</manifest>\n')
121 121

  
122 122
def rhannotate(ui, repo, *pats, **opts):
123
    rev = urllib.unquote_plus(opts.pop('rev', None))
124
    opts['rev'] = rev
123 125
    return commands.annotate(ui, repo, *map(urllib.unquote_plus, pats), **opts)
124 126

  
125 127
def rhcat(ui, repo, file1, *pats, **opts):
128
    rev = urllib.unquote_plus(opts.pop('rev', None))
129
    opts['rev'] = rev
126 130
    return commands.cat(ui, repo, urllib.unquote_plus(file1), *map(urllib.unquote_plus, pats), **opts)
127 131

  
128 132
def rhdiff(ui, repo, *pats, **opts):
......
134 138
    opts['nodates'] = True
135 139
    return commands.diff(ui, repo, *map(urllib.unquote_plus, pats), **opts)
136 140

  
141
def rhlog(ui, repo, *pats, **opts):
142
    rev      = opts.pop('rev')
143
    bra0     = opts.pop('branch')
144
    from_rev = urllib.unquote_plus(opts.pop('from', None))
145
    to_rev   = urllib.unquote_plus(opts.pop('to'  , None))
146
    bra      = urllib.unquote_plus(opts.pop('rhbranch', None))
147
    from_rev = from_rev.replace('"', '\\"')
148
    to_rev   = to_rev.replace('"', '\\"')
149
    opts['rev'] = ['"%s":"%s"' % (from_rev, to_rev)]
150
    opts['branch'] = [bra]
151
    return commands.log(ui, repo, *map(urllib.unquote_plus, pats), **opts)
152

  
137 153
def rhmanifest(ui, repo, path='', **opts):
138 154
    """output the sub-manifest of the specified directory"""
139 155
    ui.write('<?xml version="1.0"?>\n')
......
176 192
               [('r', 'rev', [], 'revision'),
177 193
                ('c', 'change', '', 'change made by revision')],
178 194
               'hg rhdiff ([-c REV] | [-r REV] ...) [FILE]...'),
195
    'rhlog': (rhlog,
196
                   [
197
                    ('r', 'rev', [], 'show the specified revision'),
198
                    ('b', 'branch', [],
199
                       'show changesets within the given named branch', 'BRANCH'),
200
                    ('l', 'limit', '',
201
                         'limit number of changes displayed', 'NUM'),
202
                    ('d', 'date', '',
203
                         'show revisions matching date spec', 'DATE'),
204
                    ('u', 'user', [],
205
                      'revisions committed by user', 'USER'),
206
                    ('', 'from', '',
207
                      '', ''),
208
                    ('', 'to', '',
209
                      '', ''),
210
                    ('', 'rhbranch', '',
211
                      '', ''),
212
                    ('', 'template', '',
213
                       'display with template', 'TEMPLATE')],
214
                   'hg rhlog [OPTION]... [FILE]'),
179 215
    'rhmanifest': (rhmanifest,
180 216
                   [('r', 'rev', '', 'show the specified revision')],
181 217
                   'hg rhmanifest [-r REV] [PATH]'),

Also available in: Unified diff