This is an archive of the discontinued LLVM Phabricator instance.

Speed up git-llvm script by only svn up'ing affected directories.
ClosedPublic

Authored by jyknight on Nov 9 2018, 11:55 AM.

Details

Summary

Also, support modifications to toplevel files in git (which need to be
committed to "monorepo-top" in svn).

Diff Detail

Repository
rL LLVM

Event Timeline

jyknight created this revision.Nov 9 2018, 11:55 AM
rnk accepted this revision.Nov 9 2018, 12:52 PM

I guess you should update the commit message to say "monorepo-root" instead of "monorepo-top". Otherwise, neat!

This revision is now accepted and ready to land.Nov 9 2018, 12:52 PM
This revision was automatically updated to reflect the committed changes.

This fails with this on Python 3.7:

Pushing 1 commit:

71b82b6e1cb Add missing triple from llvm-mc command line.

Traceback (most recent call last):

File "D:\src\llvm-mono\llvm\utils\git-svn\git-llvm", line 418, in <module>
  args.func(args)
File "D:\src\llvm-mono\llvm\utils\git-svn\git-llvm", line 373, in cmd_push
  svn_push_one_rev(svn_root, r, dry_run)
File "D:\src\llvm-mono\llvm\utils\git-svn\git-llvm", line 290, in

svn_push_one_rev

for sr, files in subrepo_files.iteritems():

AttributeError: 'collections.defaultdict' object has no attribute
'iteritems'

So at the moment I'm blocked from pushing commits :D

Any chance you could take a look?

Hopefully resolved the python3 compatibility with r347113.

r347114 suggests that your fix worked :)