Commit Briefs

a46b9f33fb Stefan Sperling

fix a bug where 'got revert -R' failed on added subtrees

The command could fail with "got: no such entry found in tree". This problem is reproduced by the regression test added in this commit. This happened because file index entries were processed in the wrong order by diff_fileindex_dir(). To fix this, keep removed entries in the RB tree and skip them when the file index is written out, rather than removing entries from the RB tree immediately causing side-effects for RB_NEXT and friends.


fb9704afe0 Stefan Sperling

do not display unversioned files during 'got revert -R'



3d69ad8dfb Sebastien Marie

make 'got revert' to ignore unversioned files instead of aborting with 'bad path'

and add a regress to check the revert isn't aborted anymore


6c6b73bb41 Stefan Sperling

fix race condition in test_revert_patch_one_change



ce2b05c76c Stefan Sperling

test reverting the first hunk only with revert -p


33aa809d4f Stefan Sperling

implement 'revert -p'


0f6d741505 Stefan Sperling

implement got revert -R



a9fa2909b9 Stefan Sperling

fix 'got revert' on files in newly added subdirectories


e20a8b6f0d Stefan Sperling

allow multiple file path arguments for 'got revert'


5e54fb308c Stefan Sperling

test and fix 'got revert' with a path in a sub-directory

Relax input path requirements of got_object_id_by_path() to make things easier to callers. Allows the revert code to pass a path from the file index in lieu of a repository path.


8d301dd94c Stefan Sperling

use cmp -s, instead of cmp, in all command line tests


a129376b6f Stefan Sperling

add initial implementation of 'got revert'