From 9d4d26250df72ec8b5652852f3a95bc1607a6a98 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 14 Jan 2015 17:58:34 -0700 Subject: [PATCH] Added a fix if the specified directory isn't added to the repo but still in one, it'll be scanned and contents cleaned up. The only thing is, as of right now the folder itself won't be deleted, you'd have to run the script from a higher directory. --- p4RemoveUnversioned.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/p4RemoveUnversioned.py b/p4RemoveUnversioned.py index 06c8d8f..12ae84a 100644 --- a/p4RemoveUnversioned.py +++ b/p4RemoveUnversioned.py @@ -152,6 +152,8 @@ def get_client_set( path ): proc.wait( ) for line in proc.stderr: + if "no such file" in line: + continue raise Exception(line) return files