0

i want to undelete these files

[root@localhost sn_dev]# svn log -v --xml | grep 'action="[D]"' 
   action="D"
   action="D">/branches/sn_dev/mob/assets</path>
   action="D">/branches/sn_dev/mob/javascripts</path>
   action="D">/branches/sn_dev/mob/json</path>
   action="D"

i have done

svn revert --recursive mob
svn commit -m "readded files"

however the files still shows deleted status on SVN...

any help?

krisdigitx
  • 7,068
  • 20
  • 61
  • 97

1 Answers1

1

The svn revert command only undoes local edits (i.e. changes that have not yet been committed). Since you show the files were already committed, you cannot use that command.

You'll need to merge the reverse of the revision in which they were committed. If, for example, the files were deleted in revision 89, you'd do the following:

svn merge -c -89 .

The -c option is shorthand, in this case, for -r 88:89, and the dash before the 89 will reverse the range to give you -r 89:88. This command means, "merge the changes it would take to get revision 89 to revision 88, into my working copy." The period at the end is the working copy, and should be the directory those files will be restored to.

Community
  • 1
  • 1
Patrick Quirk
  • 23,334
  • 2
  • 57
  • 88