llvm.org GIT mirror llvm / 71f2897
[git-llvm] Don't attempt to propget files that don't exist yet in SVN svn propget will fail halfway through, and the patch will fail to apply. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303359 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Kleckner 2 years ago
1 changed file(s) with 2 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
201201 files = git('diff-tree', '--no-commit-id', '--name-only', '-r', rev, '--',
202202 sr).split('\n')
203203 files = [f.split('/', 1)[1] for f in files]
204 # Skip files that don't exist in SVN yet.
205 files = [f for f in files if os.path.exists(os.path.join(svn_sr_path, f))]
204206 # Use ignore_errors because 'svn propget' prints errors if the file doesn't
205207 # have the named property. There doesn't seem to be a way to suppress that.
206208 eol_props = svn(svn_sr_path, 'propget', 'svn:eol-style', *files,