Show More
@@ -151,6 +151,10 b' class hgweb(object):' | |||||
151 | if args: |
|
151 | if args: | |
152 | req.form['file'] = args |
|
152 | req.form['file'] = args | |
153 |
|
153 | |||
|
154 | ua = req.env.get('HTTP_USER_AGENT', '') | |||
|
155 | if cmd == 'rev' and 'mercurial' in ua: | |||
|
156 | req.form['style'] = ['raw'] | |||
|
157 | ||||
154 | if cmd == 'archive': |
|
158 | if cmd == 'archive': | |
155 | fn = req.form['node'][0] |
|
159 | fn = req.form['node'][0] | |
156 | for type_, spec in self.archive_specs.iteritems(): |
|
160 | for type_, spec in self.archive_specs.iteritems(): |
@@ -38,5 +38,11 b' echo % revision' | |||||
38 | echo % diff removed file |
|
38 | echo % diff removed file | |
39 | "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/diff/tip/a' |
|
39 | "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/diff/tip/a' | |
40 |
|
40 | |||
|
41 | cd .. | |||
|
42 | echo % test import rev as raw-rev | |||
|
43 | hg clone -r0 test test1 | |||
|
44 | cd test1 | |||
|
45 | hg import --exact http://localhost:$HGPORT/rev/1 | |||
|
46 | ||||
41 | echo % errors |
|
47 | echo % errors | |
42 | cat errors.log |
|
48 | cat ../test/errors.log |
@@ -417,4 +417,13 b' files, or words in the commit message</d' | |||||
417 | </body> |
|
417 | </body> | |
418 | </html> |
|
418 | </html> | |
419 |
|
419 | |||
|
420 | % test import rev as raw-rev | |||
|
421 | requesting all changes | |||
|
422 | adding changesets | |||
|
423 | adding manifests | |||
|
424 | adding file changes | |||
|
425 | added 1 changesets with 2 changes to 2 files | |||
|
426 | updating to branch default | |||
|
427 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |||
|
428 | applying http://localhost:20059/rev/1 | |||
420 | % errors |
|
429 | % errors |
General Comments 0
You need to be logged in to leave comments.
Login now