Bypass full repo update to revert files

33 views
Skip to first unread message

Kieren

unread,
Jun 12, 2023, 8:06:59 PM6/12/23
to TortoiseSVN
Hey,

Is there a way to revert specific files without having to do a full repo update?

ie. I can update certain files, but then if I try revert commits done on them specifically I often get the error "E195020: Cannot reverse-merge a range from a path's own future history; try updating first", then have to do a full update on the main repo folder and revert again.

The hinderance here is it's quite a large repository and takes a long time to update, and sometimes the situation calls for an urgent revert on a commit. So wondered if there's any arguments or way to skip needing to do a full update that doesn't seem necessary.

Thanks.

Daniel Sahlberg

unread,
Jun 20, 2023, 7:48:32 AM6/20/23
to TortoiseSVN
tisdag 13 juni 2023 kl. 02:06:59 UTC+2 skrev Kieren:
Hey,

Is there a way to revert specific files without having to do a full repo update?

ie. I can update certain files, but then if I try revert commits done on them specifically I often get the error "E195020: Cannot reverse-merge a range from a path's own future history; try updating first", then have to do a full update on the main repo folder and revert again.

You can update a single file by right-clicking that specific file and select Update. You can also multiselect several files and/or directories to update all at once. This will give you a "mixed revision working copy"

The hinderance here is it's quite a large repository and takes a long time to update, and sometimes the situation calls for an urgent revert on a commit. So wondered if there's any arguments or way to skip needing to do a full update that doesn't seem necessary.

Not sure how the "revert changes from this revision" from the Log dialog works, but in general Subversion doesn't approve of merging into a "mixed revision working copy". In the general Merge dialog you can select an option to allow merging into a mixed revision working copy.
 
Kind regards,
Daniel

Reply all
Reply to author
Forward
0 new messages