tests/test-acl.t
changeset 15131 7c26ce9edbd2
parent 14522 5ca61ef6ff00
child 15207 0f7f9f06c759
equal deleted inserted replaced
15130:3d44e68360a6 15131:7c26ce9edbd2
   119   files: 3/3 chunks (100.00%)
   119   files: 3/3 chunks (100.00%)
   120   added 3 changesets with 3 changes to 3 files
   120   added 3 changesets with 3 changes to 3 files
   121   updating the branch cache
   121   updating the branch cache
   122   checking for updated bookmarks
   122   checking for updated bookmarks
   123   repository tip rolled back to revision 0 (undo push)
   123   repository tip rolled back to revision 0 (undo push)
   124   working directory now based on revision 0
       
   125   0:6675d58eff77
   124   0:6675d58eff77
   126   
   125   
   127 
   126 
   128   $ echo '[hooks]' >> $config
   127   $ echo '[hooks]' >> $config
   129   $ echo 'pretxnchangegroup.acl = python:hgext.acl.hook' >> $config
   128   $ echo 'pretxnchangegroup.acl = python:hgext.acl.hook' >> $config
   177   calling hook pretxnchangegroup.acl: hgext.acl.hook
   176   calling hook pretxnchangegroup.acl: hgext.acl.hook
   178   acl: changes have source "push" - skipping
   177   acl: changes have source "push" - skipping
   179   updating the branch cache
   178   updating the branch cache
   180   checking for updated bookmarks
   179   checking for updated bookmarks
   181   repository tip rolled back to revision 0 (undo push)
   180   repository tip rolled back to revision 0 (undo push)
   182   working directory now based on revision 0
       
   183   0:6675d58eff77
   181   0:6675d58eff77
   184   
   182   
   185 
   183 
   186 No [acl.allow]/[acl.deny]
   184 No [acl.allow]/[acl.deny]
   187 
   185 
   245   acl: branch access granted: "911600dab2ae" on branch "default"
   243   acl: branch access granted: "911600dab2ae" on branch "default"
   246   acl: allowing changeset 911600dab2ae
   244   acl: allowing changeset 911600dab2ae
   247   updating the branch cache
   245   updating the branch cache
   248   checking for updated bookmarks
   246   checking for updated bookmarks
   249   repository tip rolled back to revision 0 (undo push)
   247   repository tip rolled back to revision 0 (undo push)
   250   working directory now based on revision 0
       
   251   0:6675d58eff77
   248   0:6675d58eff77
   252   
   249   
   253 
   250 
   254 Empty [acl.allow]
   251 Empty [acl.allow]
   255 
   252 
   727   acl: branch access granted: "911600dab2ae" on branch "default"
   724   acl: branch access granted: "911600dab2ae" on branch "default"
   728   acl: allowing changeset 911600dab2ae
   725   acl: allowing changeset 911600dab2ae
   729   updating the branch cache
   726   updating the branch cache
   730   checking for updated bookmarks
   727   checking for updated bookmarks
   731   repository tip rolled back to revision 0 (undo push)
   728   repository tip rolled back to revision 0 (undo push)
   732   working directory now based on revision 0
       
   733   0:6675d58eff77
   729   0:6675d58eff77
   734   
   730   
   735 
   731 
   736 wilma can change files with a .txt extension
   732 wilma can change files with a .txt extension
   737 
   733 
  1036   acl: branch access granted: "911600dab2ae" on branch "default"
  1032   acl: branch access granted: "911600dab2ae" on branch "default"
  1037   acl: allowing changeset 911600dab2ae
  1033   acl: allowing changeset 911600dab2ae
  1038   updating the branch cache
  1034   updating the branch cache
  1039   checking for updated bookmarks
  1035   checking for updated bookmarks
  1040   repository tip rolled back to revision 0 (undo push)
  1036   repository tip rolled back to revision 0 (undo push)
  1041   working directory now based on revision 0
       
  1042   0:6675d58eff77
  1037   0:6675d58eff77
  1043   
  1038   
  1044 
  1039 
  1045 asterisk
  1040 asterisk
  1046 
  1041 
  1112   acl: branch access granted: "911600dab2ae" on branch "default"
  1107   acl: branch access granted: "911600dab2ae" on branch "default"
  1113   acl: allowing changeset 911600dab2ae
  1108   acl: allowing changeset 911600dab2ae
  1114   updating the branch cache
  1109   updating the branch cache
  1115   checking for updated bookmarks
  1110   checking for updated bookmarks
  1116   repository tip rolled back to revision 0 (undo push)
  1111   repository tip rolled back to revision 0 (undo push)
  1117   working directory now based on revision 0
       
  1118   0:6675d58eff77
  1112   0:6675d58eff77
  1119   
  1113   
  1120 
  1114 
  1121   $ echo '[acl.deny]' >> $config
  1115   $ echo '[acl.deny]' >> $config
  1122   $ echo "foo/Bar/** = *" >> $config
  1116   $ echo "foo/Bar/** = *" >> $config
  1259   acl: branch access granted: "911600dab2ae" on branch "default"
  1253   acl: branch access granted: "911600dab2ae" on branch "default"
  1260   acl: allowing changeset 911600dab2ae
  1254   acl: allowing changeset 911600dab2ae
  1261   updating the branch cache
  1255   updating the branch cache
  1262   checking for updated bookmarks
  1256   checking for updated bookmarks
  1263   repository tip rolled back to revision 0 (undo push)
  1257   repository tip rolled back to revision 0 (undo push)
  1264   working directory now based on revision 0
       
  1265   0:6675d58eff77
  1258   0:6675d58eff77
  1266   
  1259   
  1267 
  1260 
  1268   $ echo '[acl.deny]' >> $config
  1261   $ echo '[acl.deny]' >> $config
  1269   $ echo "foo/Bar/** = @group1" >> $config
  1262   $ echo "foo/Bar/** = @group1" >> $config
  1454   acl: branch access granted: "e8fc755d4d82" on branch "foobar"
  1447   acl: branch access granted: "e8fc755d4d82" on branch "foobar"
  1455   acl: allowing changeset e8fc755d4d82
  1448   acl: allowing changeset e8fc755d4d82
  1456   updating the branch cache
  1449   updating the branch cache
  1457   checking for updated bookmarks
  1450   checking for updated bookmarks
  1458   repository tip rolled back to revision 2 (undo push)
  1451   repository tip rolled back to revision 2 (undo push)
  1459   working directory now based on revision 2
       
  1460   2:fb35475503ef
  1452   2:fb35475503ef
  1461   
  1453   
  1462 
  1454 
  1463 Branch acl deny test
  1455 Branch acl deny test
  1464 
  1456 
  1751   acl: branch access granted: "e8fc755d4d82" on branch "foobar"
  1743   acl: branch access granted: "e8fc755d4d82" on branch "foobar"
  1752   acl: allowing changeset e8fc755d4d82
  1744   acl: allowing changeset e8fc755d4d82
  1753   updating the branch cache
  1745   updating the branch cache
  1754   checking for updated bookmarks
  1746   checking for updated bookmarks
  1755   repository tip rolled back to revision 2 (undo push)
  1747   repository tip rolled back to revision 2 (undo push)
  1756   working directory now based on revision 2
       
  1757   2:fb35475503ef
  1748   2:fb35475503ef
  1758   
  1749   
  1759 
  1750 
  1760 Branch acl conflicting allow
  1751 Branch acl conflicting allow
  1761 asterisk ends up applying to all branches and allowing george to
  1752 asterisk ends up applying to all branches and allowing george to
  1836   acl: branch access granted: "e8fc755d4d82" on branch "foobar"
  1827   acl: branch access granted: "e8fc755d4d82" on branch "foobar"
  1837   acl: allowing changeset e8fc755d4d82
  1828   acl: allowing changeset e8fc755d4d82
  1838   updating the branch cache
  1829   updating the branch cache
  1839   checking for updated bookmarks
  1830   checking for updated bookmarks
  1840   repository tip rolled back to revision 2 (undo push)
  1831   repository tip rolled back to revision 2 (undo push)
  1841   working directory now based on revision 2
       
  1842   2:fb35475503ef
  1832   2:fb35475503ef
  1843   
  1833   
  1844 Branch acl conflicting deny
  1834 Branch acl conflicting deny
  1845 
  1835 
  1846   $ init_config
  1836   $ init_config