Solved

Subversion locking at workspace or repository?

Posted on 2013-06-25
2
208 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
  • 2
2 Comments
 
LVL 21

Accepted Solution

by:
oleggold earned 100 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

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…
Article by: gr8gonzo
Git can be a complicated version control system for beginners, but it definitely is one of the best ones out there. Since this article assumes that you're starting at square one, it will skip over things that Git -can- do and will focus on the typic…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

707 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now