svn fun: <path> has no ancestry information
source link: https://blog.jakubholy.net/2010/11/23/svn-fun-path-has-no-ancestry-information/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
svn fun: <path> has no ancestry information
.../rootFolder/svnProject$ svn commit .
svn: '/path/to/my/rootFolder' has no ancestry information
There is an easy fix. Notice that the error is reported for the parent folder of the svn-managed one (from) which we've tried to commit. It actually seems that SVN checks the folder structure and fails if some parts of the folder tree above the folder being commited have svn metadata and some do not (another example):
- /path/to/my - has .svn/ folder (a totaly unrelated one, a left-over from the old times)
- rootFolder - no .svn here
- svnProject - has a valid .svn/ metadata folder, this is the project/folder we're trying to commit
- rootFolder - no .svn here
Solution: Check the ancestor folders (especially above the one reported in the commit failure message) and if you find an .svn/ folder in any of them, as I suppose, remove it. Alternatively, move the folder of interest into another location where it has no ancestor folder with .svn/ within it.
Environment: SVN 1.4.6, on Ubuntu 10.04.
Are you benefitting from my writing? Consider buying me a coffee or supporting my work via GitHub Sponsors. Thank you! You can also book me for a mentoring / pair-programming session via Codementor or (cheaper) email.
Allow me to write to you!
Let's get in touch! I will occasionally send you a short email with a few links to interesting stuff I found and with summaries of my new blog posts. Max 1-2 emails per month. I read and answer to all replies.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK