Show More
@@ -4,7 +4,7 b'' | |||||
4 | > shift |
|
4 | > shift | |
5 | > echo "Pushing as user $user" |
|
5 | > echo "Pushing as user $user" | |
6 | > echo 'hgrc = """' |
|
6 | > echo 'hgrc = """' | |
7 |
> sed - |
|
7 | > sed -n '/\[[ha]/,$p' b/.hg/hgrc | grep -v fakegroups.py | |
8 | > echo '"""' |
|
8 | > echo '"""' | |
9 | > if test -f acl.config; then |
|
9 | > if test -f acl.config; then | |
10 | > echo 'acl.config = """' |
|
10 | > echo 'acl.config = """' | |
@@ -1122,6 +1122,8 b' fred is always allowed' | |||||
1122 | $ do_push fred |
|
1122 | $ do_push fred | |
1123 | Pushing as user fred |
|
1123 | Pushing as user fred | |
1124 | hgrc = """ |
|
1124 | hgrc = """ | |
|
1125 | [hooks] | |||
|
1126 | pretxnchangegroup.acl = python:hgext.acl.hook | |||
1125 | [acl] |
|
1127 | [acl] | |
1126 | sources = push |
|
1128 | sources = push | |
1127 | [extensions] |
|
1129 | [extensions] | |
@@ -1197,6 +1199,8 b' no one is allowed inside foo/Bar/' | |||||
1197 | $ do_push fred |
|
1199 | $ do_push fred | |
1198 | Pushing as user fred |
|
1200 | Pushing as user fred | |
1199 | hgrc = """ |
|
1201 | hgrc = """ | |
|
1202 | [hooks] | |||
|
1203 | pretxnchangegroup.acl = python:hgext.acl.hook | |||
1200 | [acl] |
|
1204 | [acl] | |
1201 | sources = push |
|
1205 | sources = push | |
1202 | [extensions] |
|
1206 | [extensions] | |
@@ -1278,6 +1282,8 b' OS-level groups' | |||||
1278 | $ do_push fred |
|
1282 | $ do_push fred | |
1279 | Pushing as user fred |
|
1283 | Pushing as user fred | |
1280 | hgrc = """ |
|
1284 | hgrc = """ | |
|
1285 | [hooks] | |||
|
1286 | pretxnchangegroup.acl = python:hgext.acl.hook | |||
1281 | [acl] |
|
1287 | [acl] | |
1282 | sources = push |
|
1288 | sources = push | |
1283 | [extensions] |
|
1289 | [extensions] | |
@@ -1354,6 +1360,8 b' OS-level groups' | |||||
1354 | $ do_push fred |
|
1360 | $ do_push fred | |
1355 | Pushing as user fred |
|
1361 | Pushing as user fred | |
1356 | hgrc = """ |
|
1362 | hgrc = """ | |
|
1363 | [hooks] | |||
|
1364 | pretxnchangegroup.acl = python:hgext.acl.hook | |||
1357 | [acl] |
|
1365 | [acl] | |
1358 | sources = push |
|
1366 | sources = push | |
1359 | [extensions] |
|
1367 | [extensions] | |
@@ -1476,6 +1484,8 b' No branch acls specified' | |||||
1476 | $ do_push astro |
|
1484 | $ do_push astro | |
1477 | Pushing as user astro |
|
1485 | Pushing as user astro | |
1478 | hgrc = """ |
|
1486 | hgrc = """ | |
|
1487 | [hooks] | |||
|
1488 | pretxnchangegroup.acl = python:hgext.acl.hook | |||
1479 | [acl] |
|
1489 | [acl] | |
1480 | sources = push |
|
1490 | sources = push | |
1481 | [extensions] |
|
1491 | [extensions] | |
@@ -1558,6 +1568,8 b' Branch acl deny test' | |||||
1558 | $ do_push astro |
|
1568 | $ do_push astro | |
1559 | Pushing as user astro |
|
1569 | Pushing as user astro | |
1560 | hgrc = """ |
|
1570 | hgrc = """ | |
|
1571 | [hooks] | |||
|
1572 | pretxnchangegroup.acl = python:hgext.acl.hook | |||
1561 | [acl] |
|
1573 | [acl] | |
1562 | sources = push |
|
1574 | sources = push | |
1563 | [extensions] |
|
1575 | [extensions] | |
@@ -1641,6 +1653,8 b' Branch acl empty allow test' | |||||
1641 | $ do_push astro |
|
1653 | $ do_push astro | |
1642 | Pushing as user astro |
|
1654 | Pushing as user astro | |
1643 | hgrc = """ |
|
1655 | hgrc = """ | |
|
1656 | [hooks] | |||
|
1657 | pretxnchangegroup.acl = python:hgext.acl.hook | |||
1644 | [acl] |
|
1658 | [acl] | |
1645 | sources = push |
|
1659 | sources = push | |
1646 | [extensions] |
|
1660 | [extensions] | |
@@ -1718,6 +1732,8 b' Branch acl allow other' | |||||
1718 | $ do_push astro |
|
1732 | $ do_push astro | |
1719 | Pushing as user astro |
|
1733 | Pushing as user astro | |
1720 | hgrc = """ |
|
1734 | hgrc = """ | |
|
1735 | [hooks] | |||
|
1736 | pretxnchangegroup.acl = python:hgext.acl.hook | |||
1721 | [acl] |
|
1737 | [acl] | |
1722 | sources = push |
|
1738 | sources = push | |
1723 | [extensions] |
|
1739 | [extensions] | |
@@ -1790,6 +1806,8 b' Branch acl allow other' | |||||
1790 | $ do_push george |
|
1806 | $ do_push george | |
1791 | Pushing as user george |
|
1807 | Pushing as user george | |
1792 | hgrc = """ |
|
1808 | hgrc = """ | |
|
1809 | [hooks] | |||
|
1810 | pretxnchangegroup.acl = python:hgext.acl.hook | |||
1793 | [acl] |
|
1811 | [acl] | |
1794 | sources = push |
|
1812 | sources = push | |
1795 | [extensions] |
|
1813 | [extensions] | |
@@ -1878,6 +1896,8 b' push foobar into the remote' | |||||
1878 | $ do_push george |
|
1896 | $ do_push george | |
1879 | Pushing as user george |
|
1897 | Pushing as user george | |
1880 | hgrc = """ |
|
1898 | hgrc = """ | |
|
1899 | [hooks] | |||
|
1900 | pretxnchangegroup.acl = python:hgext.acl.hook | |||
1881 | [acl] |
|
1901 | [acl] | |
1882 | sources = push |
|
1902 | sources = push | |
1883 | [extensions] |
|
1903 | [extensions] | |
@@ -1965,6 +1985,8 b' Branch acl conflicting deny' | |||||
1965 | $ do_push george |
|
1985 | $ do_push george | |
1966 | Pushing as user george |
|
1986 | Pushing as user george | |
1967 | hgrc = """ |
|
1987 | hgrc = """ | |
|
1988 | [hooks] | |||
|
1989 | pretxnchangegroup.acl = python:hgext.acl.hook | |||
1968 | [acl] |
|
1990 | [acl] | |
1969 | sources = push |
|
1991 | sources = push | |
1970 | [extensions] |
|
1992 | [extensions] | |
@@ -2044,6 +2066,8 b" User 'astro' must not be denied" | |||||
2044 | $ do_push astro |
|
2066 | $ do_push astro | |
2045 | Pushing as user astro |
|
2067 | Pushing as user astro | |
2046 | hgrc = """ |
|
2068 | hgrc = """ | |
|
2069 | [hooks] | |||
|
2070 | pretxnchangegroup.acl = python:hgext.acl.hook | |||
2047 | [acl] |
|
2071 | [acl] | |
2048 | sources = push |
|
2072 | sources = push | |
2049 | [extensions] |
|
2073 | [extensions] | |
@@ -2126,6 +2150,8 b' Non-astro users must be denied' | |||||
2126 | $ do_push george |
|
2150 | $ do_push george | |
2127 | Pushing as user george |
|
2151 | Pushing as user george | |
2128 | hgrc = """ |
|
2152 | hgrc = """ | |
|
2153 | [hooks] | |||
|
2154 | pretxnchangegroup.acl = python:hgext.acl.hook | |||
2129 | [acl] |
|
2155 | [acl] | |
2130 | sources = push |
|
2156 | sources = push | |
2131 | [extensions] |
|
2157 | [extensions] |
General Comments 0
You need to be logged in to leave comments.
Login now