GitRewrite icon indicating copy to clipboard operation
GitRewrite copied to clipboard

--fix-trees: System.NotImplementedException: The method or operation is not implemented

Open dennisbk opened this issue 3 years ago • 6 comments

when running with the option --fix-trees, I get the following exception GitRewrite myrepo --fix-trees Unhandled exception. System.AggregateException: One or more errors occurred. (The method or operation is not implemented.) ---> System.NotImplementedException: The method or operation is not implemented. at GitRewrite.IO.PackReader.GetGitObject(ObjectHash hash) at GitRewrite.IO.PackReader.GetTree(ObjectHash hash) at GitRewrite.GitObjectFactory.ReadTree(String repositoryPath, ObjectHash hash) at GitRewrite.Program.HasDefectiveTree(String vcsPath, Commit commit) at GitRewrite.Program.<>c__DisplayClass6_0.<FindCommitsWithDuplicateTreeEntries>b__0(Commit commit) at System.Linq.Parallel.SelectQueryOperator2.SelectQueryOperatorEnumerator1.MoveNext(TOutput& currentElement, TKey& currentKey) at System.Linq.Parallel.PipelineSpoolingTask2.SpoolingWork() at System.Linq.Parallel.SpoolingTaskBase.Work() at System.Linq.Parallel.QueryTask.BaseWork(Object unused) at System.Linq.Parallel.QueryTask.<>c.<.cctor>b__10_0(Object o) at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.<>c.<.cctor>b__277_0(Object obj) at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of inner exception stack trace --- at System.Linq.Parallel.QueryTaskGroupState.QueryEnd(Boolean userInitiatedDispose) at System.Linq.Parallel.AsynchronousChannelMergeEnumerator1.MoveNextSlowPath() at System.Linq.Parallel.AsynchronousChannelMergeEnumerator1.MoveNext() at System.Linq.Parallel.QueryOpeningEnumerator1.MoveNext() at GitRewrite.Program.FindCommitsWithDuplicateTreeEntries(String vcsPath)+MoveNext() at System.Collections.Generic.List1..ctor(IEnumerable1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) at GitRewrite.Program.Main(String[] args)

dennisbk avatar Aug 03 '22 16:08 dennisbk

Hi, most likely your pack file contains a kind of diff that I did not implement yet (OBJ_REF_DELTA), as I have yet to find a repository where these diffs are used. Is there any chance that I could get access to the repository? While it should be fairly easy to implement, I really would not like to do so without a repo I can test against.

tiavision avatar Aug 07 '22 18:08 tiavision

I don’t think my employer would like me giving out access to the repository. I could put it in debug mode and try to see what’s wrong and send you some more information. If I get some time this week, I’ll give it a try. Thanks, Dennis

Dennis Kennedy Senior Software Engineer MiCROTEC Inc.

155 SW Madison Ave Corvallis, OR 97333, USA T +1 541 753 5111 microtec.us

This e-mail, including attachments, may contain confidential information, which may be protected by legal privilege. If you perceive not to be the intended recipient, please notify us immediately. Thank you.

From: Tim @.> Sent: Sunday, August 7, 2022 11:35 AM To: TimHeinrich/GitRewrite @.> Cc: Dennis Kennedy @.>; Author @.> Subject: Re: [TimHeinrich/GitRewrite] --fix-trees: System.NotImplementedException: The method or operation is not implemented (Issue #15)

Hi, most likely your pack file contains a kind of diff that I did not implement yet (OBJ_REF_DELTA), as I have yet to find a repository where these diffs are used. Is there any chance that I could get access to the repository? While it should be fairly easy to implement, I really would not like to do so without a repo I can test against.

— Reply to this email directly, view it on GitHubhttps://github.com/TimHeinrich/GitRewrite/issues/15#issuecomment-1207462501, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJUAGTCFBO54PEAWYXDPFXTVX76WDANCNFSM55PQQRAA. You are receiving this because you authored the thread.Message ID: @.@.>>

dennisbk avatar Aug 08 '22 17:08 dennisbk