Top 100 SVN Interview Questions And Answers

SVN Interview Questions

Contents show

1. What is SVN (Subversion)?

SVN, or Subversion, is a version control system that helps manage changes to source code over time. It allows multiple developers to collaborate on a project while tracking changes, providing version history, and facilitating code management.

Code Snippet:

svn checkout https://example.com/svn/myproject/

2. How do you create a new repository in SVN?

To create a new repository in SVN, you use the svnadmin command-line tool.

Code Snippet:

svnadmin create /path/to/repository

3. What is a working copy in SVN?

A working copy is a local copy of a repositoryโ€™s contents on a developerโ€™s machine. Developers make changes in the working copy and then commit those changes back to the repository.

Explanation:
A working copy is a sandbox where developers can work on files, make changes, and experiment without affecting the repository until they are ready to commit.


4. How do you check the status of your working copy?

To check the status of your working copy, use the svn status command.

Code Snippet:

svn status

Explanation:
The svn status command shows the status of each file in your working copy, indicating if a file has been modified, added, deleted, or is up-to-date.


5. What is the purpose of the svn commit command?

The svn commit command is used to send your changes from your working copy to the repository, making them part of the version history.

Code Snippet:

svn commit -m "Added new feature"

Explanation:
After making changes to your working copy, you use svn commit to make those changes permanent and shareable with other developers.


6. How do you revert changes made to a file in your working copy?

To revert changes made to a file in your working copy, use the svn revert command.

Code Snippet:

svn revert filename.ext

Explanation:
The svn revert command undoes local modifications, restoring the file to its last committed state.


7. What is the purpose of branching in SVN?

Branching in SVN allows developers to create a copy of the codebase, isolating new features or bug fixes from the main code. This helps in parallel development without affecting the main code.

Explanation:
Branches provide a way to work on different features independently and later merge them back into the main codebase.


8. How do you create a new branch in SVN?

To create a new branch in SVN, use the svn copy command.

Code Snippet:

svn copy ^/trunk ^/branches/myfeature -m "Creating a feature branch"

Explanation:
This command copies the content of the trunk to a new branch named โ€œmyfeature.โ€


9. How can you merge changes from one branch to another in SVN?

To merge changes from one branch to another, use the svn merge command.

Code Snippet:

svn merge ^/branches/source-branch

Explanation:
The svn merge command integrates changes from the source branch into the current working copy.


10. What is the purpose of tagging in SVN?

Tagging is used in SVN to mark a specific point in time within the version history, typically to indicate a release or a stable state of the code.

Explanation:
Tags provide a way to refer to a specific version of the code for future reference without affecting ongoing development.


11. How do you create a new tag in SVN?

To create a new tag in SVN, use the svn copy command similar to branching.

Code Snippet:

svn copy ^/trunk ^/tags/release-1.0 -m "Creating a release tag"

Explanation:
This command creates a tag named โ€œrelease-1.0โ€ based on the current state of the trunk.


12. What is the purpose of the svn checkout command?

The svn checkout command is used to create a working copy of a repository or a specific directory from a repository.

Code Snippet:

bashCopy codesvn checkout https://example.com/svn/myproject/

Explanation: This command downloads the specified repository or directory to your local machine, allowing you to work on it.


13. What is the purpose of the svn diff command?

The svn diff command is used to view the differences between your working copy and the repository or between two different revisions.

Code Snippet:

svn diff filename.ext

Explanation:
This command helps you identify changes youโ€™ve made and review differences before committing.


14. How do you update your working copy to the latest version?

To update your working copy to the latest version in the repository, use the svn update command.

Code Snippet:

svn update

Explanation:
The svn update command synchronizes your working copy with the latest changes from the repository.


15. What is the purpose of the svn switch command?

The svn switch command is used to switch your working copy to a different branch or tag.

Code Snippet:

svn switch ^/branches/myfeature

Explanation:
This command allows you to move your working copy to a different location within the repository.


16. How do you delete a file from the repository using SVN?

To delete a file from the repository, use the svn delete command and then commit the deletion.

Code Snippet:

svn delete ^/path/to/file.txt -m "Deleted file"
svn commit -m "Deleted file"

Explanation:
The svn delete command marks the file for deletion, and svn commit makes the deletion permanent.


17. What is the purpose of the svn info command?

The svn info command provides detailed information about a working copy or repository URL.

Code Snippet:

svn info

Explanation:
This command displays information such as the repository URL, the latest revision, and the last modified date.


18. How do you ignore files in SVN?

To ignore files in SVN, create a file named .svnignore in your working copy directory and list the filenames or patterns to ignore.

Explanation:
Files listed in .svnignore wonโ€™t be tracked by SVN, making it useful for ignoring build artifacts or temporary files.


19. How do you revert a specific revision in SVN?

To revert to a specific revision, use the svn merge command with the -c option.

Code Snippet:

svn merge -c -1234 ^/trunk

Explanation:
This command undoes the changes made in revision 1234 from the trunk.


20. What is the purpose of the svnadmin dump command?

The svnadmin dump command is used to create a text file containing a dump of a repositoryโ€™s revision history.

Code Snippet:

svnadmin dump /path/to/repository > repository-dumpfile

Explanation:
This command is useful for migrating or backing up repositories.


21. How do you restore a repository using a dump file?

To restore a repository using a dump file, use the svnadmin load command.

Code Snippet:

svnadmin load /path/to/new/repository < repository-dumpfile

Explanation:
This command rebuilds the repository using the data from the dump file.


22. What is the purpose of the svn blame command?

The svn blame command shows who last changed each line of a file and in which revision.

Code Snippet:

svn blame filename.ext

Explanation:
This command is useful for identifying authors and revisions associated with specific lines.


23. How do you resolve conflicts in SVN?

To resolve conflicts in SVN, use the svn resolve command after manually resolving conflicts in conflicted files.

Code Snippet:

svn resolve filename.ext

Explanation:
This command marks conflicts as resolved after youโ€™ve manually resolved conflicts in conflicted files.


24. What is the purpose of the svn export command?

The svn export command creates a clean directory tree from a working copy or repository URL without the .svn metadata.

Code Snippet:

svn export ^/trunk /path/to/export-directory

Explanation:
This command is used to create a copy of the source code without any version control metadata.


25. How do you set properties on files in SVN?

To set properties on files in SVN, use the svn propset command.

Code Snippet:

svn propset svn:keywords "Author Date" filename.ext

Explanation:
This command sets properties like keywords or custom metadata on files.


26. What is the purpose of the svnadmin hotcopy command?

The svnadmin hotcopy command creates a backup of a repository, including its configuration files and hooks.

Code Snippet:

svnadmin hotcopy /path/to/repository /backup/path

Explanation:
This command is used to create a copy of a repository that can be backed up or used for migration.


27. How do you lock and unlock files in SVN?

To lock a file in SVN, use the svn lock command, and to unlock, use svn unlock.

Code Snippet:

svn lock filename.ext -m "Locking file for edits"
svn unlock filename.ext -m "Unlocking file"

Explanation:
File locking prevents others from modifying a file until itโ€™s unlocked.


28. What is the purpose of the svn log command?

The svn log command displays the commit history and associated messages for a file or repository.

Code Snippet:

svn log filename.ext

Explanation:
This command provides insight into the history of changes made to a file or repository.


29. How do you create a patch file in SVN?

To create a patch file in SVN, use the svn diff command and redirect the output to a .patch file.

Code Snippet:

svn diff > mychanges.patch

Explanation:
A patch file contains the differences between revisions and can be used to apply changes to another working copy.


30. How do you apply a patch file in SVN?

To apply a patch file in SVN, use the patch command.

Code Snippet:

patch -p0 < mychanges.patch

Explanation:
The patch command uses a patch file to modify files in your working copy.


31. What is the purpose of the svn propget command?

The svn propget command retrieves the value of a specified property on a file or directory.

Code Snippet:

svn propget svn:ignore .

Explanation:
This command is useful for checking properties like svn:ignore that specify ignored files or directories.


32. How do you list all properties of a file in SVN?

To list all properties of a file in SVN, use the svn proplist command.

Code Snippet:

svn proplist filename.ext

Explanation:
This command displays all properties associated with a file or directory.


33. What is the purpose of the svn cleanup command?

The svn cleanup command is used to clean up the working copy by removing any temporary files or locks.

Code Snippet:

svn cleanup

Explanation:
This command helps in resolving issues that might arise due to interrupted operations.


34. How do you configure the username and password for SVN operations?

To configure the username and password for SVN operations, use the --username and --password options with the command.

Code Snippet:

svn update --username myuser --password mypassword

Explanation:
These options allow you to provide authentication credentials without being prompted.


35. What is the purpose of the svn relocate command?

The svn relocate command is used to relocate a working copy to a new URL.

Code Snippet:

svn relocate https://new-repo-url/

Explanation:
This command updates the repository URL if the repository has moved to a new location.


36. How do you find all occurrences of a string in the repository history?

To find all occurrences of a string in the repository history, use the svn log command with the --search option.

Code Snippet:

svn log --search "search-string"

Explanation:
This command searches for the specified string in the commit messages.


37. What is the purpose of the svn import command?

The svn import command is used to add an unversioned directory or file to the repository.

Code Snippet:

svn import /path/to/local-dir ^/repository/trunk -m "Importing initial code"

Explanation:
This command uploads a local directory to the repository for versioning.


38. How do you apply vendor branches in SVN?

To apply vendor branches in SVN, use the svn merge command with the --ignore-ancestry option.

Code Snippet:

svn merge --ignore-ancestry ^/vendor/branch

Explanation:
This command applies changes from a vendor branch to your working copy while ignoring ancestry.


39. What is the purpose of the svn mergeinfo command?

The svn mergeinfo command displays information about merge history.

Code Snippet:

svn mergeinfo --show-revs eligible ^/trunk ^/branches/myfeature

Explanation:
This command helps in understanding which revisions are eligible for merging between two branches.


40. How do you create a sparse working copy in SVN?

To create a sparse working copy in SVN, use the --depth option with the svn checkout command.

Code Snippet:

svn checkout --depth empty https://example.com/svn/myproject/

Explanation:
This command creates a working copy with an empty directory structure, allowing you to selectively update specific directories.


41. What is the purpose of the svnadmin verify command?

The svnadmin verify command is used to verify the integrity of a repository.

Code Snippet:

svnadmin verify /path/to/repository

Explanation:
This command checks for repository corruption and ensures data consistency.


42. How do you use externals in SVN?

To use externals in SVN, define an svn:externals property on a directory, referencing another repository URL.

Code Snippet:

svn propset svn:externals "^/lib/external-lib" mydirectory

Explanation:
Externals allow you to include content from other repositories within your working copy.


43. What is the purpose of the svn propdel command?

The svn propdel command is used to delete a property from a file or directory.

Code Snippet:

svn propdel svn:keywords filename.ext

Explanation:
This command removes the specified property from the file.


44. How do you list all available commands in SVN?

To list all available commands in SVN, use the svn help command.

Code Snippet:

svn help

Explanation:
This command displays a list of available subcommands and provides brief descriptions.


45. What is the purpose of the svn cleanup command?

The svn cleanup command is used to clean up the working copy by removing any temporary files or locks.

Code Snippet:

svn cleanup

Explanation:
This command helps in resolving issues that might arise due to interrupted operations.


46. How do you configure the username and password for SVN operations?

To configure the username and password for SVN operations, use the --username and --password options with the command.

Code Snippet:

svn update --username myuser --password mypassword

Explanation:
These options allow you to provide authentication credentials without being prompted.


47. What is the purpose of the svn relocate command?

The svn relocate command is used to relocate a working copy to a new URL.

Code Snippet:

svn relocate https://new-repo-url/

Explanation:
This command updates the repository URL if the repository has moved to a new location.


48. How do you find all occurrences of a string in the repository history?

To find all occurrences of a string in the repository history, use the svn log command with the --search option.

Code Snippet:

svn log --search "search-string"

Explanation:
This command searches for the specified string in the commit messages.


49. What is the purpose of the svn import command?

The svn import command is used to add an unversioned directory or file to the repository.

Code Snippet:

svn import /path/to/local-dir ^/repository/trunk -m "Importing initial code"

Explanation:
This command uploads a local directory to the repository for versioning.


50. How do you apply vendor branches in SVN?

To apply vendor branches in SVN, use the svn merge command with the --ignore-ancestry option.

Code Snippet:

svn merge --ignore-ancestry ^/vendor/branch

Explanation:
This command applies changes from a vendor branch to your working copy while ignoring ancestry.


51. What is the purpose of the svn mergeinfo command?

The svn mergeinfo command displays information about merge history.

Code Snippet:

svn mergeinfo --show-revs eligible ^/trunk ^/branches/myfeature

Explanation:
This command helps in understanding which revisions are eligible for merging between two branches.


52. How do you create a sparse working copy in SVN?

To create a sparse working copy in SVN, use the --depth option with the svn checkout command.

Code Snippet:

svn checkout --depth empty https://example.com

/svn/myproject/

Explanation:
This command creates a working copy with an empty directory structure, allowing you to selectively update specific directories.


53. What is the purpose of the svnadmin verify command?

The svnadmin verify command is used to verify the integrity of a repository.

Code Snippet:

svnadmin verify /path/to/repository

Explanation:
This command checks for repository corruption and ensures data consistency.


54. How do you use externals in SVN?

To use externals in SVN, define an svn:externals property on a directory, referencing another repository URL.

Code Snippet:

svn propset svn:externals "^/lib/external-lib" mydirectory

Explanation:
Externals allow you to include content from other repositories within your working copy.


55. What is the purpose of the svn propdel command?

The svn propdel command is used to delete a property from a file or directory.

Code Snippet:

svn propdel svn:keywords filename.ext

Explanation:
This command removes the specified property from the file.


56. How do you list all available commands in SVN?

To list all available commands in SVN, use the svn help command.

Code Snippet:

svn help

Explanation:
This command displays a list of available subcommands and provides brief descriptions.


57. What is the purpose of the svnadmin verify command?

The svnadmin verify command is used to verify the integrity of a repository.

Code Snippet:

svnadmin verify /path/to/repository

Explanation:
This command checks for repository corruption and ensures data consistency.


58. How do you use the svnadmin dump and svnadmin load commands for repository migration?

To migrate a repository, first, use svnadmin dump to create a dump file, then use svnadmin load to import the dump file into a new repository.

Code Snippet (Dump):

svnadmin dump /path/to/repository > repository-dumpfile

Code Snippet (Load):

svnadmin load /path/to/new/repository < repository-dumpfile

Explanation:
These commands help in safely transferring repository data to a new location.


59. How do you perform a reverse merge in SVN?

To perform a reverse merge in SVN, use the -c option with negative revision numbers.

Code Snippet:

svn merge -c -1234 ^/trunk

Explanation:
This command undoes changes made in revision 1234 from the trunk.


60. What is the purpose of the svn export command?

The svn export command creates a clean directory tree from a working copy or repository URL without the .svn metadata.

Code Snippet:

svn export ^/trunk /path/to/export-directory

Explanation:
This command is used to create a copy of the source code without any version control metadata.


61. How do you revert a specific revision in SVN?

To revert a specific revision in SVN, use the svn merge command with the -c option.

Code Snippet:

svn merge -c -1234 ^/trunk

Explanation:
This command undoes changes made in revision 1234 from the trunk.


62. What is the purpose of the svn copy command?

The svn copy command is used to create a copy of a file or directory within the repository.

Code Snippet:

svn copy ^/trunk ^/branches/myfeature -m "Creating a feature branch"

Explanation:
This command creates a branch named โ€œmyfeatureโ€ based on the current trunk content.


63. How do you show differences between two branches in SVN?

To show differences between two branches, use the svn diff command with the branch URLs.

Code Snippet:

svn diff ^/trunk ^/branches/myfeature

Explanation:
This command displays the differences between the trunk and the myfeature branch.


64. What is the purpose of the svn lock command?

The svn lock command is used to lock a file in the repository to prevent others from modifying it.

Code Snippet:

svn lock filename.ext -m "Locking file for edits"

Explanation:
This command prevents other users from making changes to the locked file.


65. How do you list locked files in SVN?

To list locked files in SVN, use the svn status command with the -u option.

**

Code Snippet:**

svn status -u

Explanation:
This command displays the status of locked files and the users who locked them.


66. What is the purpose of the svn propset command?

The svn propset command is used to set a property on a file or directory.

Code Snippet:

svn propset svn:keywords "Author Date" filename.ext

Explanation:
This command sets properties like keywords or custom metadata on files.


67. How do you list all properties of a file in SVN?

To list all properties of a file in SVN, use the svn proplist command.

Code Snippet:

svn proplist filename.ext

Explanation:
This command displays all properties associated with a file or directory.


68. What is the purpose of the svn propget command?

The svn propget command retrieves the value of a specified property on a file or directory.

Code Snippet:

svn propget svn:ignore .

Explanation:
This command is useful for checking properties like svn:ignore that specify ignored files or directories.


69. How do you apply a patch file in SVN?

To apply a patch file in SVN, use the patch command.

Code Snippet:

patch -p0 < mychanges.patch

Explanation:
The patch command uses a patch file to modify files in your working copy.


70. What is the purpose of the svn commit command?

The svn commit command is used to send your changes from your working copy to the repository.

Code Snippet:

svn commit -m "Added new feature"

Explanation:
After making changes to your working copy, you use svn commit to make those changes permanent and shareable with other developers.


71. How do you resolve conflicts in SVN?

To resolve conflicts in SVN, use the svn resolve command after manually resolving conflicts in conflicted files.

Code Snippet:

svn resolve filename.ext

Explanation:
This command marks conflicts as resolved after youโ€™ve manually resolved conflicts in conflicted files.


72. What is the purpose of the svn revert command?

The svn revert command undoes local modifications in your working copy.

Code Snippet:

svn revert filename.ext

Explanation:
This command restores files to their last committed state, discarding local changes.


73. How do you find uncommitted changes in your working copy?

To find uncommitted changes in your working copy, use the svn status command.

Code Snippet:

svn status

Explanation:
This command displays files with uncommitted changes, helping you review your modifications.


74. What is the purpose of the svn switch command?

The svn switch command is used to move your working copy to a different branch or tag.

Code Snippet:

svn switch ^/branches/myfeature

Explanation:
This command allows you to move your working copy to a different location within the repository.


75. How do you ignore files in SVN?

To ignore files in SVN, create a file named .svnignore in your working copy directory and list filenames or patterns to ignore.

Explanation:
Files listed in .svnignore wonโ€™t be tracked by SVN, useful for ignoring build artifacts or temporary files.


76. What is the purpose of the svn update command?

The svn update command synchronizes your working copy with the latest changes from the repository.

Code Snippet:

svn update

Explanation:
This command updates your working copy with changes made by other developers.


77. How do you apply vendor branches in SVN?

To apply vendor branches in SVN, use the svn merge command with the --ignore-ancestry option.

Code Snippet:

svn merge --ignore-ancestry ^/vendor/branch

Explanation:
This command applies changes from a vendor branch to your working copy while ignoring ancestry.


78. What is the purpose of the svn mergeinfo command?

The svn mergeinfo command displays information about merge history.

Code Snippet:

svn mergeinfo --show-revs eligible ^/trunk ^/branches/myfeature

Explanation:
This command helps in understanding which revisions are eligible for merging between two branches.


79. How do you create a sparse working copy in SVN?

To create a sparse working copy in SVN, use the --depth option with the svn checkout command.

Code Snippet:

svn checkout --depth empty https://example.com/svn/myproject/

Explanation:
This command creates a working copy with an empty directory structure, allowing you to selectively update specific directories.


80. What is the purpose of the svnadmin verify command?

The svnadmin verify command is used to verify the integrity of a repository.

Code Snippet:

bashCopy codesvnadmin verify /path/to/repository

Explanation: This command checks for repository corruption and ensures data consistency.


81. How do you use externals in SVN?

To use externals in SVN, define an svn:externals property on a directory, referencing another repository URL.

Code Snippet:

bashCopy codesvn propset svn:externals "^/lib/external-lib" mydirectory

Explanation: Externals allow you to include content from other repositories within your working copy.


82. What is the purpose of the svn propdel command?

The svn propdel command is used to delete a property from a file or directory.

Code Snippet:

bashCopy codesvn propdel svn:keywords filename.ext

Explanation: This command removes the specified property from the file.


83. How do you list all available commands in SVN?

To list all available commands in SVN, use the svn help command.

Code Snippet:

bashCopy codesvn help

Explanation: This command displays a list of available subcommands and provides brief descriptions.


84. What is the purpose of the svn import command?

The svn import command is used to add an unversioned directory or file to the repository.

Code Snippet:

bashCopy codesvn import /path/to/local-dir ^/repository/trunk -m "Importing initial code"

Explanation: This command uploads a local directory to the repository for versioning.


85. How do you apply vendor branches in SVN?

To apply vendor branches in SVN, use the svn merge command with the --ignore-ancestry option.

Code Snippet:

bashCopy codesvn merge --ignore-ancestry ^/vendor/branch

Explanation: This command applies changes from a vendor branch to your working copy while ignoring ancestry.


86. What is the purpose of the svn mergeinfo command?

The svn mergeinfo command displays information about merge history.

Code Snippet:

bashCopy codesvn mergeinfo --show-revs eligible ^/trunk ^/branches/myfeature

Explanation: This command helps in understanding which revisions are eligible for merging between two branches.


87. How do you create a sparse working copy in SVN?

To create a sparse working copy in SVN, use the --depth option with the svn checkout command.

Code Snippet:

bashCopy codesvn checkout --depth empty https://example.com/svn/myproject/

Explanation: This command creates a working copy with an empty directory structure, allowing you to selectively update specific directories.


88. What is the purpose of the svnadmin verify command?

The svnadmin verify command is used to verify the integrity of a repository.

Code Snippet:

bashCopy codesvnadmin verify /path/to/repository

Explanation: This command checks for repository corruption and ensures data consistency.


89. How do you use externals in SVN?

To use externals in SVN, define an svn:externals property on a directory, referencing another repository URL.

Code Snippet:

bashCopy codesvn propset svn:externals "^/lib/external-lib" mydirectory

Explanation: Externals allow you to include content from other repositories within your working copy.


90. What is the purpose of the svn propdel command?

The svn propdel command is used to delete a property from a file or directory.

Code Snippet:

bashCopy codesvn propdel svn:keywords filename.ext

Explanation: This command removes the specified property from the file.


91. How do you list all available commands in SVN?

To list all available commands in SVN, use the svn help command.

Code Snippet:

bashCopy codesvn help

Explanation: This command displays a list of available subcommands and provides brief descriptions.


92. What is the purpose of the svnadmin verify command?

The svnadmin verify command is used to verify the integrity of a repository.

Code Snippet:

bashCopy codesvnadmin verify /path/to/repository

Explanation: This command checks for repository corruption and ensures data consistency.


93. How do you use the svnadmin dump and svnadmin load commands for repository migration?

To migrate a repository, first, use svnadmin dump to create a dump file, then use svnadmin load to import the dump file into a new repository.

Code Snippet (Dump):

bashCopy codesvnadmin dump /path/to/repository > repository-dumpfile

Code Snippet (Load):

bashCopy codesvnadmin load /path/to/new/repository < repository-dumpfile

Explanation: These commands help in safely transferring repository data to a new location.


94. How do you perform a reverse merge in SVN?

To perform a reverse merge in SVN, use the -c option with negative revision numbers.

Code Snippet:

bashCopy codesvn merge -c -1234 ^/trunk

Explanation: This command undoes changes made in revision 1234 from the trunk.


95. What is the purpose of the svn export command?

The svn export command creates a clean directory tree from a working copy or repository URL without the .svn metadata.

Code Snippet:

bashCopy codesvn export ^/trunk /path/to/export-directory

Explanation: This command is used to create a copy of the source code without any version control metadata.


96. How do you revert a specific revision in SVN?

To revert a specific revision in SVN, use the svn merge command with the -c option.

Code Snippet:

bashCopy codesvn merge -c -1234 ^/trunk

Explanation: This command undoes changes made in revision 1234 from the trunk.


97. What is the purpose of the svn copy command?

The svn copy command is used to create a copy of a file or directory within the repository.

Code Snippet:

bashCopy codesvn copy ^/trunk ^/branches/myfeature -m "Creating a feature branch"

Explanation: This command creates a branch named โ€œmyfeatureโ€ based on the current trunk content.


98. How do you show differences between two branches in SVN?

To show differences between two branches, use the svn diff command with the branch URLs.

Code Snippet:

bashCopy codesvn diff ^/trunk ^/branches/myfeature

Explanation: This command displays the differences between the trunk and the myfeature branch.


99. What is the purpose of the svn lock command?

The svn lock command is used to lock a file in the repository to prevent others from modifying it.

Code Snippet:

bashCopy codesvn lock filename.ext -m "Locking file for edits"

Explanation: This command prevents other users from making changes to the locked file.


100. How do you list locked files in SVN?

To list locked files in SVN, use the svn status command with the -u option.

Code Snippet:

bashCopy codesvn status -u

Explanation: This command displays the status of locked files and the users who locked them.