##// END OF EJS Templates
run-tests: use difflib.diff_bytes on Python 3...
run-tests: use difflib.diff_bytes on Python 3 This method was introduced in Python 3.5 to satisfy our diffing-strings-of-bytes needs.

File last commit:

r22046:7a9cbb31 default
r25045:8a425c2e default
Show More
test-revert-flags.t
23 lines | 312 B | text/troff | Tads3Lexer
#require execbit
$ hg init repo
$ cd repo
$ echo foo > foo
$ chmod 644 foo
$ hg ci -qAm '644'
$ chmod 755 foo
$ hg ci -qAm '755'
reverting to rev 0
$ hg revert -a -r 0
reverting foo
$ hg st
M foo
$ hg diff --git
diff --git a/foo b/foo
old mode 100755
new mode 100644
$ cd ..