Check if a file is already committed to svn
Fresh3 days ago
Mar 15, 202614852 viewsConfidence Score0%
0%
Problem
How do I check if a file/folder is already committed to svn ? I have a shell script where I want to ensure that the file/folder selected by user for check-in isn't already committed. For eg if I try to check-in a folder that's already committed using svn add myfolder I get the following warning: sv…
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Check if a file is already committed to svn
Low Risk
Use the return code of . It's if under version control, non-zero otherwise. My shell displays non-zero return codes after a command, so it looks like this: How you'd do it in a script (similar in other shells), with suppressing output:
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix