##// END OF EJS Templates
rewrite revert command. fix issues 93, 123, 147....
rewrite revert command. fix issues 93, 123, 147. new version does these things: - saves backup copies of modified files (issue 147) - prints output like other commands, and errors when files not found (issue 123) - marks files added/removed (issue 93)

File last commit:

r2029:d436b21b default
r2029:d436b21b default
Show More
test-revert.out
38 lines | 686 B | text/plain | TextLexer
Benoit Boissinot
fix handling of files of unsupported type in the walk code...
r1487 %% should show b unknown
Benoit Boissinot
revert added and removed files to their normal state before reverting...
r1447 ? b
Benoit Boissinot
fix handling of files of unsupported type in the walk code...
r1487 %% should show b unknown and c modified
Benoit Boissinot
revert added and removed files to their normal state before reverting...
r1447 M c
? b
Benoit Boissinot
fix handling of files of unsupported type in the walk code...
r1487 %% should show b added and c modified
Benoit Boissinot
revert added and removed files to their normal state before reverting...
r1447 M c
A b
Benoit Boissinot
fix handling of files of unsupported type in the walk code...
r1487 %% should show a removed, b added and c modified
Benoit Boissinot
revert added and removed files to their normal state before reverting...
r1447 M c
A b
R a
Vadim Gelfer
rewrite revert command. fix issues 93, 123, 147....
r2029 %% should show b added, copy saved, and c modified
Benoit Boissinot
revert added and removed files to their normal state before reverting...
r1447 M c
A b
Vadim Gelfer
rewrite revert command. fix issues 93, 123, 147....
r2029 saving current version of b as b.bak
%% should show b unknown, b.bak unknown, and c modified
Benoit Boissinot
revert added and removed files to their normal state before reverting...
r1447 M c
? b
Vadim Gelfer
rewrite revert command. fix issues 93, 123, 147....
r2029 ? b.bak
%% should show unknown: b b.bak
Benoit Boissinot
revert added and removed files to their normal state before reverting...
r1447 ? b
Vadim Gelfer
rewrite revert command. fix issues 93, 123, 147....
r2029 ? b.bak
%% should show a b b.bak c e
Benoit Boissinot
revert added and removed files to their normal state before reverting...
r1447 a
b
Vadim Gelfer
rewrite revert command. fix issues 93, 123, 147....
r2029 b.bak
Benoit Boissinot
revert added and removed files to their normal state before reverting...
r1447 c
Vadim Gelfer
rewrite revert command. fix issues 93, 123, 147....
r2029 e
%% should save backup to e.0
saving current version of e as e.0
reverting e
%% should say no changes needed
no changes needed to a
%% should say file not managed
file not managed: q
%% should say file not found
notfound: No such file or directory