Lucas_Werkmeister_WMDE added a comment.

  Yes, git filter-repo <https://github.com/newren/git-filter-repo/> worked 
//very// nicely (and finished in less than four seconds, extremely impressive):
  
  1. in /tmp: `git clone wmge:Wikibase.git` – clone a fresh Wikibase whose 
history we can mess with; your clone syntax may vary, I configured 
<https://github.com/lucaswerkmeister/home/commit/8b1e6bb5cb2ef9290a24c091dc7c03d79e60954e>
 wmge: as Wikimedia gerrit extensions
  2. in /tmp/Wikibase: `git-filter-repo --path lib/includes/changes/ --path 
lib/includes/Changes/ --path lib/tests/phpunit/changes/ --path 
lib/tests/phpunit/Changes/ --path-rename lib/includes/changes:src --path-rename 
lib/includes/Changes:src --path-rename lib/tests/phpunit/changes:tests 
--path-rename lib/tests/phpunit/Changes:tests` – rewrite the history to keep 
only the changes directories, and rename them into their new locations
  3. steps 11 and 12 from the other list (but pushing to /tmp/Wikibase instead 
of /tmp/changes)
  4. in /tmp/Wikibase: `git replace moved master`
  
  And now, like before, any further changes commits can be pushed with `git 
subtree push`, and the history will do the right thing, thanks to the `git 
replace`. (At some point, you’ll want to get rid of the current `master` branch 
and rename `moved` to `master`, because `moved` is where the history continues.)
  
  (Also, `git filter-repo` preserves all the other branches – wmf/, REL_, and 
some random stuff we should probably throw away even in Wikibase? – which we 
probably want to delete.)

TASK DETAIL
  https://phabricator.wikimedia.org/T258395

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucas_Werkmeister_WMDE
Cc: Lucas_Werkmeister_WMDE, Addshore, Aklapper, Tarrow, Akuckartz, 
darthmon_wmde, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, 
_jensen, rosalieper, Scott_WUaS, Wikidata-bugs, aude, Lydia_Pintscher, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to