mirror of
https://github.com/facebook/sapling.git
synced 2024-12-29 16:12:23 +03:00
75a8173a10
Summary: Add `#chg-compatible` to 572 tests that seem to pass with chg enabled. This should make them run faster. Reviewed By: xavierd Differential Revision: D18870507 fbshipit-source-id: fe895e733efffc9286cd3d17c7a156c803124395
36 lines
743 B
Perl
36 lines
743 B
Perl
#chg-compatible
|
|
|
|
$ newrepo
|
|
$ setconfig ui.allowemptycommit=1
|
|
$ enable amend
|
|
|
|
$ HGEDITOR=true hg commit -m 1 -e
|
|
$ HGEDITOR=true hg commit --amend -m 2 -e
|
|
$ HGEDITOR='echo 3 >' hg metaedit
|
|
|
|
All 3 files are here:
|
|
|
|
$ python << EOF
|
|
> import os
|
|
> names = os.listdir('.hg/edit-tmp')
|
|
> print(names)
|
|
> for name in names:
|
|
> os.utime(os.path.join('.hg/edit-tmp', name), (0, 0))
|
|
> EOF
|
|
['*', '*', '*'] (glob)
|
|
|
|
$ HGEDITOR=true hg commit -m 4 -e
|
|
|
|
Those files will be cleaned up since they have ancient mtime:
|
|
|
|
$ python << EOF
|
|
> import os
|
|
> print(os.listdir('.hg/edit-tmp'))
|
|
> EOF
|
|
['*'] (glob)
|
|
|
|
Verify that a folder in .hg/edit-tmp doesn't crash hg:
|
|
|
|
$ mkdir .hg/edit-tmp/foo
|
|
$ HGEDITOR=true hg commit -m 5 -e
|