[PATCH] D41404: [git-llvm] Handle files ignored by svn correctly
Walter Lee via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 22 13:20:04 PST 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL321388: [git-llvm] Handle files ignored by svn correctly (authored by waltl, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D41404?vs=127596&id=128055#toc
Repository:
rL LLVM
https://reviews.llvm.org/D41404
Files:
llvm/trunk/utils/git-svn/git-llvm
Index: llvm/trunk/utils/git-svn/git-llvm
===================================================================
--- llvm/trunk/utils/git-svn/git-llvm
+++ llvm/trunk/utils/git-svn/git-llvm
@@ -178,7 +178,7 @@
# Unfortunately it appears there's no svn equivalent for git clean, so we
# have to do it ourselves.
- for line in svn(svn_repo, 'status').split('\n'):
+ for line in svn(svn_repo, 'status', '--no-ignore').split('\n'):
if not line.startswith('?'):
continue
filename = line[1:].strip()
@@ -252,7 +252,7 @@
if not subrepos:
raise RuntimeError('Empty diff for rev %s?' % rev)
- status = svn(svn_repo, 'status')
+ status = svn(svn_repo, 'status', '--no-ignore')
if status:
die("Can't push git rev %s because svn status is not empty:\n%s" %
(rev, status))
@@ -272,10 +272,11 @@
"first?")
sys.exit(2)
- status_lines = svn(svn_repo, 'status').split('\n')
+ status_lines = svn(svn_repo, 'status', '--no-ignore').split('\n')
- for l in (l for l in status_lines if l.startswith('?')):
- svn(svn_repo, 'add', l[1:].strip())
+ for l in (l for l in status_lines if (l.startswith('?') or
+ l.startswith('I'))):
+ svn(svn_repo, 'add', '--no-ignore', l[1:].strip())
for l in (l for l in status_lines if l.startswith('!')):
svn(svn_repo, 'remove', l[1:].strip())
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41404.128055.patch
Type: text/x-patch
Size: 1468 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171222/1844b8a1/attachment.bin>
More information about the llvm-commits
mailing list