diff tests/test-inhibit.t @ 1748:83cf722eafc3 mercurial-3.7

merge with future 5.5 No extra new change are needed from the one needed from the 3.8 branch and previous version.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Fri, 28 Oct 2016 16:26:25 +0200
parents 898dfca94433 4565b046b850
children
line wrap: on
line diff
--- a/tests/test-inhibit.t	Fri May 06 00:23:25 2016 +0200
+++ b/tests/test-inhibit.t	Fri Oct 28 16:26:25 2016 +0200
@@ -375,6 +375,21 @@
   cf5c4f4554ce
   2db36d8066ff
 
+Test directaccess only takes hashes
+
+  $ HOOKPATH=$TESTTMP/printexplicitaccess.py
+  $ cat >> $HOOKPATH <<EOF
+  > def hook(ui, repo, **kwds):
+  >     for i in sorted(repo._explicitaccess):
+  >         ui.write('directaccess: %s\n' % i)
+  > EOF
+
+  $ hg log -r 1 -r 2 -r 2db36d8066f -T '{rev}\n' --config hooks.post-log=python:$HOOKPATH:hook
+  1
+  2
+  3
+  directaccess: 3
+
 With severals hidden sha, rebase of one hidden stack onto another one:
   $ hg update -C 0
   0 files updated, 0 files merged, 4 files removed, 0 files unresolved