Page MenuHomePhabricator

Possibly fix issue where refs engine finds empty refs?
ClosedPublic

Authored by epriestley on Feb 24 2014, 8:52 PM.
Tags
None
Referenced Files
F13223389: D8326.diff
Sun, May 19, 4:33 AM
F13207593: D8326.id19801.diff
Thu, May 16, 1:06 AM
F13207592: D8326.id19800.diff
Thu, May 16, 1:06 AM
F13207520: D8326.id.diff
Thu, May 16, 12:42 AM
F13207476: D8326.diff
Thu, May 16, 12:19 AM
F13178065: D8326.diff
Wed, May 8, 8:08 PM
Unknown Object (File)
Sun, Apr 28, 5:20 AM
Unknown Object (File)
Wed, Apr 24, 11:39 PM
Subscribers

Details

Summary

@mbishopim3 reported an issue in IRC:

mbishopim3: epriestley: "Error updating working copy: Commit "" has not been discovered yet! Run discovery before updating refs." any ideas?

I can't reproduce it and it went away for him, but one theory is that we're getting here and git/hg are spitting out nothing, which we incorrectly parse as array("") when we intend array().

Test Plan

Pushed some new commits, ran bin/repositoy refs X, got expected results.

I can't actually reproduce the bug, but this might fix it and appears to make the code more correct.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

Could this in any way be related to T4445 or T1621? The issue seemed to occur when a tag was created and did not resolve until later "normal" commits were pushed.