##// END OF EJS Templates
do not pretend to lock static-http repositories (issue994)
Martin Geisler -
r7005:7739b618 default
parent child Browse files
Show More
@@ -74,6 +74,9 class statichttprepository(localrepo.loc
74 74 def local(self):
75 75 return False
76 76
77 def lock(self, wait=True):
78 raise util.Abort(_('cannot lock static-http repository'))
79
77 80 def instance(ui, path, create):
78 81 if create:
79 82 raise util.Abort(_('cannot create new static-http repository'))
@@ -49,6 +49,12 echo '[hooks]' >> .hg/hgrc
49 49 echo 'changegroup = python ../printenv.py changegroup' >> .hg/hgrc
50 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 58 echo '% test with "/" URI (issue 747)'
53 59 cd ..
54 60 hg init
@@ -29,6 +29,10 adding manifests
29 29 adding file changes
30 30 added 1 changesets with 1 changes to 1 files
31 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 36 % test with "/" URI (issue 747)
33 37 requesting all changes
34 38 adding changesets
General Comments 0
You need to be logged in to leave comments. Login now