[llvm-dev] How to deal with accidental directory tree deletes, downstream?

Eric Christopher via llvm-dev llvm-dev at lists.llvm.org
Wed Apr 17 23:35:06 PDT 2019


FWIW I do apologize... I'm not entirely certain how that happened
since neither the commit nor the email for the commit had 5k files
being deleted, but I can imagine it was quite inconvenient.

-eric

On Wed, Apr 17, 2019 at 5:35 AM via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> Hello fellow downstream residents,
>
> I see that r358546 accidentally deleted an entire subtree, which was
> reverted in r358552.  This of course caused a big merge conflict in
> our local repo, and internally we've been debating tactics for dealing
> with it, hopefully without losing our original history.
>
> Has anyone else handled this in a way that they are happy with?  We
> found a StackOverflow post that is potentially helpful:
> https://stackoverflow.com/questions/44990103/how-to-undelete-file-in-git-and-keep-his-original-blame-history
> Doing this on our local copy of the upstream repo means we would not
> have an exact copy anymore, which seems like a Bad Idea.
>
> Is there a smooth way to resolve the merge conflict that does *not*
> delete our local tree? I suppose we can somehow not accept the
> accidental deletes, and then when we run forward to r358552 it will
> decide we already have those files and it will Just Work?
>
> Tips and hints welcome.
> Thanks,
> --paulr
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev


More information about the llvm-dev mailing list