tests/test-obsolete-tag-cache.t
changeset 28025 ab6468270b83
parent 26185 e8f9dffca36f
child 28242 e8ad56d95fbb
equal deleted inserted replaced
28024:142891ab6e89 28025:ab6468270b83
    65   $ cat .hg/cache/tags2-visible
    65   $ cat .hg/cache/tags2-visible
    66   5 2942a772f72a444bef4bef13874d515f50fa27b6 f34fbc9a9769ba9eff5aff3d008a6b49f85c08b1
    66   5 2942a772f72a444bef4bef13874d515f50fa27b6 f34fbc9a9769ba9eff5aff3d008a6b49f85c08b1
    67   042eb6bfcc4909bad84a1cbf6eb1ddf0ab587d41 head2
    67   042eb6bfcc4909bad84a1cbf6eb1ddf0ab587d41 head2
    68   55482a6fb4b1881fa8f746fd52cf6f096bb21c89 test1
    68   55482a6fb4b1881fa8f746fd52cf6f096bb21c89 test1
    69 
    69 
    70   $ hg blackbox -l 4
    70   $ hg blackbox -l 5
    71   1970/01/01 00:00:00 bob (*)> tags (glob)
    71   1970/01/01 00:00:00 bob (*)> tags (glob)
    72   1970/01/01 00:00:00 bob (*)> 2/2 cache hits/lookups in * seconds (glob)
    72   1970/01/01 00:00:00 bob (*)> 2/2 cache hits/lookups in * seconds (glob)
    73   1970/01/01 00:00:00 bob (*)> writing .hg/cache/tags2-visible with 2 tags (glob)
    73   1970/01/01 00:00:00 bob (*)> writing .hg/cache/tags2-visible with 2 tags (glob)
    74   1970/01/01 00:00:00 bob (*)> tags exited 0 after * seconds (glob)
    74   1970/01/01 00:00:00 bob (*)> tags exited 0 after * seconds (glob)
       
    75   1970/01/01 00:00:00 bob (*)> blackbox -l 5 (glob)
    75 
    76 
    76 Hiding another changeset should cause the filtered hash to change
    77 Hiding another changeset should cause the filtered hash to change
    77 
    78 
    78   $ hg debugobsolete -d '0 0' d75775ffbc6bca1794d300f5571272879bd280da -u dummyuser
    79   $ hg debugobsolete -d '0 0' d75775ffbc6bca1794d300f5571272879bd280da -u dummyuser
    79   $ hg debugobsolete -d '0 0' 5f97d42da03fd56f3b228b03dfe48af5c0adf75b -u dummyuser
    80   $ hg debugobsolete -d '0 0' 5f97d42da03fd56f3b228b03dfe48af5c0adf75b -u dummyuser
    84 
    85 
    85   $ cat .hg/cache/tags2-visible
    86   $ cat .hg/cache/tags2-visible
    86   5 2942a772f72a444bef4bef13874d515f50fa27b6 2fce1eec33263d08a4d04293960fc73a555230e4
    87   5 2942a772f72a444bef4bef13874d515f50fa27b6 2fce1eec33263d08a4d04293960fc73a555230e4
    87   042eb6bfcc4909bad84a1cbf6eb1ddf0ab587d41 head2
    88   042eb6bfcc4909bad84a1cbf6eb1ddf0ab587d41 head2
    88 
    89 
    89   $ hg blackbox -l 4
    90   $ hg blackbox -l 5
    90   1970/01/01 00:00:00 bob (*)> tags (glob)
    91   1970/01/01 00:00:00 bob (*)> tags (glob)
    91   1970/01/01 00:00:00 bob (*)> 1/1 cache hits/lookups in * seconds (glob)
    92   1970/01/01 00:00:00 bob (*)> 1/1 cache hits/lookups in * seconds (glob)
    92   1970/01/01 00:00:00 bob (*)> writing .hg/cache/tags2-visible with 1 tags (glob)
    93   1970/01/01 00:00:00 bob (*)> writing .hg/cache/tags2-visible with 1 tags (glob)
    93   1970/01/01 00:00:00 bob (*)> tags exited 0 after * seconds (glob)
    94   1970/01/01 00:00:00 bob (*)> tags exited 0 after * seconds (glob)
       
    95   1970/01/01 00:00:00 bob (*)> blackbox -l 5 (glob)
    94 
    96 
    95 Resolving tags on an unfiltered repo writes a separate tags cache
    97 Resolving tags on an unfiltered repo writes a separate tags cache
    96 
    98 
    97   $ hg --hidden tags
    99   $ hg --hidden tags
    98   tip                                5:2942a772f72a
   100   tip                                5:2942a772f72a
   104   5 2942a772f72a444bef4bef13874d515f50fa27b6
   106   5 2942a772f72a444bef4bef13874d515f50fa27b6
   105   042eb6bfcc4909bad84a1cbf6eb1ddf0ab587d41 head2
   107   042eb6bfcc4909bad84a1cbf6eb1ddf0ab587d41 head2
   106   55482a6fb4b1881fa8f746fd52cf6f096bb21c89 test1
   108   55482a6fb4b1881fa8f746fd52cf6f096bb21c89 test1
   107   d75775ffbc6bca1794d300f5571272879bd280da test2
   109   d75775ffbc6bca1794d300f5571272879bd280da test2
   108 
   110 
   109   $ hg blackbox -l 4
   111   $ hg blackbox -l 5
   110   1970/01/01 00:00:00 bob (*)> --hidden tags (glob)
   112   1970/01/01 00:00:00 bob (*)> --hidden tags (glob)
   111   1970/01/01 00:00:00 bob (*)> 2/2 cache hits/lookups in * seconds (glob)
   113   1970/01/01 00:00:00 bob (*)> 2/2 cache hits/lookups in * seconds (glob)
   112   1970/01/01 00:00:00 bob (*)> writing .hg/cache/tags2 with 3 tags (glob)
   114   1970/01/01 00:00:00 bob (*)> writing .hg/cache/tags2 with 3 tags (glob)
   113   1970/01/01 00:00:00 bob (*)> --hidden tags exited 0 after * seconds (glob)
   115   1970/01/01 00:00:00 bob (*)> --hidden tags exited 0 after * seconds (glob)
       
   116   1970/01/01 00:00:00 bob (*)> blackbox -l 5 (glob)