Show More
@@ -74,6 +74,9 class statichttprepository(localrepo.loc | |||||
74 | def local(self): |
|
74 | def local(self): | |
75 | return False |
|
75 | return False | |
76 |
|
76 | |||
|
77 | def lock(self, wait=True): | |||
|
78 | raise util.Abort(_('cannot lock static-http repository')) | |||
|
79 | ||||
77 | def instance(ui, path, create): |
|
80 | def instance(ui, path, create): | |
78 | if create: |
|
81 | if create: | |
79 | raise util.Abort(_('cannot create new static-http repository')) |
|
82 | raise util.Abort(_('cannot create new static-http repository')) |
@@ -49,6 +49,12 echo '[hooks]' >> .hg/hgrc | |||||
49 | echo 'changegroup = python ../printenv.py changegroup' >> .hg/hgrc |
|
49 | echo 'changegroup = python ../printenv.py changegroup' >> .hg/hgrc | |
50 | http_proxy= hg pull | sed -e 's,:[0-9][0-9]*/,/,' |
|
50 | http_proxy= hg pull | sed -e 's,:[0-9][0-9]*/,/,' | |
51 |
|
51 | |||
|
52 | echo '% trying to push' | |||
|
53 | hg update | |||
|
54 | echo more foo >> bar | |||
|
55 | hg commit -m"test" -d "100000000 0" | |||
|
56 | http_proxy= hg push | sed -e 's,:[0-9][0-9]*/,/,' | |||
|
57 | ||||
52 | echo '% test with "/" URI (issue 747)' |
|
58 | echo '% test with "/" URI (issue 747)' | |
53 | cd .. |
|
59 | cd .. | |
54 | hg init |
|
60 | hg init |
@@ -29,6 +29,10 adding manifests | |||||
29 | adding file changes |
|
29 | adding file changes | |
30 | added 1 changesets with 1 changes to 1 files |
|
30 | added 1 changesets with 1 changes to 1 files | |
31 | (run 'hg update' to get a working copy) |
|
31 | (run 'hg update' to get a working copy) | |
|
32 | % trying to push | |||
|
33 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |||
|
34 | abort: cannot lock static-http repository | |||
|
35 | pushing to static-http://localhost/remote | |||
32 | % test with "/" URI (issue 747) |
|
36 | % test with "/" URI (issue 747) | |
33 | requesting all changes |
|
37 | requesting all changes | |
34 | adding changesets |
|
38 | adding changesets |
General Comments 0
You need to be logged in to leave comments.
Login now