Page MenuHomePhabricator

Mark IMPORTED_CHANGE more consistently
ClosedPublic

Authored by epriestley on Nov 1 2013, 3:55 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 24, 9:47 PM
Unknown Object (File)
Mon, Apr 22, 10:56 AM
Unknown Object (File)
Sun, Apr 21, 3:44 PM
Unknown Object (File)
Thu, Apr 18, 3:29 PM
Unknown Object (File)
Thu, Apr 18, 3:29 PM
Unknown Object (File)
Thu, Apr 18, 3:29 PM
Unknown Object (File)
Thu, Apr 18, 2:34 PM
Unknown Object (File)
Thu, Apr 18, 2:04 PM
Subscribers

Details

Reviewers
btrahan
Commits
Restricted Diffusion Commit
rPd1649d176f67: Mark IMPORTED_CHANGE more consistently
Summary

See https://github.com/facebook/phabricator/issues/425. There are some ways that the change parsers may not reach finishParse(), but we now need them to in order to mark the commit imported, advance the progress bar, and eventually kick the repository out of IMPORTING status.

Take all the copy/pasted code in the parsers and move it into the parent. Specifically, this is:

  • Printing a status message about starting a parse;
  • checking for bad commits;
  • queueing the next parse stage; and
  • marking the import step complete.
Test Plan

Used reparse.php --change to reparse Git, SVN and Mercurial repos.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

epriestley updated this revision to Unknown Object (????).Nov 1 2013, 3:57 PM

Smaller diff.