Thread (3 messages) 3 messages, 3 authors, 2016-06-15

Re: What's going on here? Bad repo, no error locally?

From: Brandon Casey <hidden>
Date: 2016-06-15 22:46:38

John Dlugosz wrote:
quoted
The dangling objects can happen if you push over dumb transport and
interrupt in the middle, or you force a push of a rewound branch, so
it
quoted
does not necessarily indicate any errors, but a missing object is
always an error.

Thanks.

That's what I thought danglings were.  But why doesn't gc get rid of
them?
Jeff already explained why in his email to you about "dangling commits ...".

What you may not realize (and Jeff hinted at) is that unreferenced objects
are created often.  This is because the object must be created _before_
the reference to the object is created.  The existence of a reference to an
object is what differentiates a dangling,unreferenced object from one that is
not dangling,unreferenced.  Usually, an unreferenced object exists in the
repository for a very short time before becoming referenced by the creation
of a commit which references it.  But, there is always some period of time
that an object exists in the repository as a dangling,unreferenced object.
That is why gc does not delete all dangling,unreferenced objects that it
encounters immediately.  As Jeff pointed out, it only deletes those that are
two weeks old by default.

-brandon
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help