Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Subversion locking at workspace or repository?

Posted on 2013-06-25
2
Medium Priority
?
230 Views
Last Modified: 2013-09-11
Anyone know what is the difference in locking a file in a workspace or directly at the repository level?

Ex. At the workspace

     svn lock /home/user/workspace/trunk/somefile.txt


Ex. At the repository
 
     svn lock http://svn_server/svn_repository/trunk/somefile.txt

Is there a difference?  Just want to keep others from overwriting the file until I am finished editing and committing.

Thanks
0
Comment
Question by:jkit001
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 21

Accepted Solution

by:
oleggold earned 400 total points
ID: 39340099
the difference is that locking on the repository level will override any later locking that You'd try to execute so the the advised action is to lock on the file level in the workspace or just use check out command to temporarily lock for your editing and check in to save new version.
0
 
LVL 21

Expert Comment

by:oleggold
ID: 39340104
i;d also advise using gui tools such as  tortoise svn as they will allow You to see all the available commands in the file/folder context rather than guess what syntax to use in command line
0

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

INTRODUCTION Subversion is a fantastic version management and software configuration management tool for teams and individuals to manage software applications. It offers many advantages over it's CVS ancestor such as it's built-in compatibility w…
When working in a large software development team, whether you have many developers working on the same projects, or your project is linked to other projects; it is very important that developers regularly perform "get latest" to ensure that the cha…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question