Menu

Commit [r278]  Maximize  Restore  History

Fix issue #1341: Change 'svn revert' to 'svn undo', to avoid confusion

with 'svn resolve'.

* subversion/libsvn_wc/adm_ops.c
(error_in_undo): Replaces revert_error.
(undo_admin_things): Replaces revert_admin_things.
(svn_wc_add): Fix comments.
(svn_wc_undo): Replaces svn_wc_revert. Adjust for above changes.

* subversion/include/svn_wc.h
(svn_wc_undo): Replaces svn_wc_revert.
(svn_wc_notify_action_t): Use svn_wc_notify_undo instead of
svn_wc_notify_revert now. All callers changed.

* subversion/clients/cmdline/feedback.c
(notify): Adjust for new notifications.

* subversion/libsvn_client/revert.c: Renamed to below.

* subversion/libsvn_client/undo.c: New file, replaces revert.c.
(svn_client_undo): Replaces svn_client_revert. Call svn_wc_undo
now, not svn_wc_revert.

* subversion/include/svn_client.h
(svn_client_undo): Replaces svn_client_revert.

* subversion/clients/cmdline/main.c
(svn_cl__cmd_table): Use "undo" instead of "revert".

* subversion/clients/cmdline/revert-cmd.c: Renamed to below.

* subversion/clients/cmdline/undo-cmd.c: New file, replaces
revert-cmd.c.
(svn_cl__undo): Replaces svn_cl__revert.

* subversion/clients/cmdline/cl.h: Declare svn_cl__undo.

Tests:

* subversion/tests/clients/cmdline/basic_tests.py
(basic_undo): Replaces basic_revert.
(test_list): Adjust for above.

* subversion/tests/clients/cmdline/copy_tests.py
(mv_and_undo_directory): Replaces mv_and_revert_directory.
(repos_to_wc): Call undo instead of revert.
(test_list): Adjust for above.

* subversion/tests/clients/cmdline/merge_tests.py
(textual_merges_galore, simple_property_merges, merge_one_file):
Call undo instead of revert.

* subversion/tests/clients/cmdline/prop_tests.py
(undo_replacement_props): Replaces revert_replacement_props.
(test_list): Adjust for above.

* subversion/tests/clients/cmdline/schedule_tests.py
(undo_add_files, undo_add_directories, undo_nested_adds,
undo_add_executable, undo_delete_files, undo_delete_dirs):
Replace revert_add_files, revert_add_directories,
revert_nested_adds, revert_add_executable, revert_delete_files,
and revert_delete_dirs respectively.
(test_list): Adjust for above.

* subversion/tests/clients/cmdline/switch_tests.py
(commit_routine_switching): Use undo instead of revert.

* subversion/tests/clients/cmdline/trans_tests.py: Adjust comment.

* subversion/tests/clients/cmdline/update_tests.py
(update_to_resolve_text_conflicts): Replaces
update_to_revert_text_conflicts. No comment.
(test_list): Adjust.

* subversion/tests/clients/cmdline/getopt_tests_data/svn--help_stdout,
subversion/tests/clients/cmdline/getopt_tests_data/svn_help_stdout:
Adjust.

Documentation and notes:

* doc/book/book/appa.xml, doc/book/book/ch03.xml,
doc/book/book/ch04.xml, doc/book/book/ch08.xml,
doc/book/book/ch06.xml: Adjust accordingly.

* doc/translations/french/appendices.texi: Adjust.

* doc/book/outline.txt: Adjust.

* doc/user/svn-ref.tex: Adjust.

* subversion/clients/cmdline/man/svn.1: Adjust.

* notes/autoversioning-strategy.txt: Adjust

* www/project_faq.html
(undo): Replaces "revert" question.

* CHANGES: Mention that it's 'svn undo' now.

Interfaces:

* tools/client-side/bash_completion: Adjust completions.

* tools/client-side/psvn/psvn.el
(svn-status-undo-file): Replaces svn-status-revert-file.
Keybinding also changed, but see comment about narrowing keyspace.

* tools/client-side/vc-svn.el
(vc-svn-undo): Replaces vc-svn-revert.

* tools/dev/svn-dev.el
(svn-undo): Replaces svn-revert.

Bindings:

* subversion/bindings/ruby/wc.c
(wc_undo): Replaces wc_revert. Call svn_wc_undo now.
(svn_ruby_init_wc): Change wc_revert to wc_undo, although the whole
thing is commented out so this is just cosmetic.

* subversion/bindings/ruby/client.c
(cl_undo): Replaces cl_revert. Call svn_client_undo now.
(svn_ruby_init_client): Map "undo" to cl_undo, instead of "revert"
to cl_revert.

* subversion/bindings/java/javahl/native/SVNClient.h
(class SVNClient): It's undo, not revert.

* subversion/bindings/java/javahl/native/Notify.cpp
(Notify::onNotify): Use undo instead of revert.

* subversion/bindings/java/javahl/native/SVNClient.cpp
(SVNClient::undo): Replaces SVNClient::revert. Call svn_client_undo.

* subversion/bindings/java/javahl/native/org_tigris_subversion_javahl_SVNClient.cpp
(Java_org_tigris_subversion_javahl_SVNClient_undo): Replace
Java_org_tigris_subversion_javahl_SVNClient_revert, etc.

* subversion/bindings/java/javahl/src/org/tigris/subversion/javahl/Notify.java
(Notify.Action): Use undo instead of revert.

* subversion/bindings/java/javahl/src/org/tigris/subversion/javahl/SVNClient.java
(SVNClient.undo): Replaces revert.

kfogel 2003-06-09

changed /trunk/src/book/book/appa.xml
changed /trunk/src/book/book/ch03.xml
changed /trunk/src/book/book/ch04.xml
changed /trunk/src/book/book/ch06.xml
changed /trunk/src/book/book/ch08.xml
changed /trunk/src/book/outline.txt
/trunk/src/book/book/appa.xml Diff Switch to side-by-side view
Loading...
/trunk/src/book/book/ch03.xml Diff Switch to side-by-side view
Loading...
/trunk/src/book/book/ch04.xml Diff Switch to side-by-side view
Loading...
/trunk/src/book/book/ch06.xml Diff Switch to side-by-side view
Loading...
/trunk/src/book/book/ch08.xml Diff Switch to side-by-side view
Loading...
/trunk/src/book/outline.txt Diff Switch to side-by-side view
Loading...
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.