Teams That Must Lock Large Files: Comparing SVN, Git LFS and Perforce

For a team working on 600MB drawings that cannot be merged, what matters is whether the second person notices the lock before starting to edit. A test that compares lock behavior across the three tools with one file and two accounts, what to check when the lock owner disappears, and three values to put in the evaluation.

John Baek
John Baek
Founder, CollabOps
2 min read

Two people open the same 600MB plant drawing. One moves a pipe run, the other fixes dimensions. That afternoon they try to combine the files, and the CAD tool can't merge the changes. When this team picks a tool, the question that matters is specific: can the second person tell that someone is already working on the file before they start editing?

For teams working with large files that cannot be merged, a lock is only worth what it tells the second person before they begin editing.

How do the three tools' locks actually behave?

To compare them, prepare one drawing and two accounts. The first user locks the file. The second user, in the client they normally use, tries to open it, start editing, and submit a change, in that order. Every product's documentation says "locking," but the moment a user feels the difference is not the same.

ApproachWhat the first person doesWhat to check for the second person
SVNLocks the file path in the repository. For files with the svn:needs-lock property, the working copy becomes writable once the lock is acquired.Can they see who owns the lock? What message do they get when committing to a path someone else locked?
Git LFSRegisters a lock on the path with a server that supports LFS locking. Large content lives in LFS and Git stores a pointer.Is the lock visible in the GUI and CLI the team uses? Which checks apply on the push and merge paths? Include server and client settings as test conditions.
PerforceManage the binary with the +l file type and only one user at a time can open it for edit.Is the second user blocked from opening for edit? A plain p4 lock still lets others open for edit and restricts submit instead, so test the two behaviors separately (Perforce: preventing multiple checkouts).

The details of SVN locking are in the SVN book's locking chapter, and the Git LFS side in the Git LFS file locking docs.

What should you check when the lock owner is gone?

In practice, what happens after a normal unlock matters more. Say it's Friday evening and the person holding the lock is away because their laptop died before they submitted. An admin can break the lock and the next person can start. But changes that existed only on the first person's laptop don't come back. Check who may break a lock, how to recover the last submitted version, and how unfinished work gets handed over, each on its own.

What goes into the evaluation?

Instead of ticking "large file support," write down three values: when the second person noticed the lock, how long it took to resume work with the lock owner absent, and whether you could reopen the actual drawing from an earlier revision.

A team that already reviews code in Git and a team whose work starts with exclusive edit rights on drawings may weigh these results differently. What changes when a lock-based team moves to concurrent development is picked up in We lock files before editing them.

  • #svn
  • #git
  • #scm
  • #migration
  • #adoption