DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
The Latest "Software Integration: The Intersection of APIs, Microservices, and Cloud-Based Systems" Trend Report
Get the report
  1. DZone
  2. Data Engineering
  3. Data
  4. SVN Fun: has no Ancestry Information

SVN Fun: has no Ancestry Information

Jakub Holý user avatar by
Jakub Holý
·
Nov. 23, 10 · Interview
Like (0)
Save
Tweet
Share
18.17K Views

Join the DZone community and get the full member experience.

Join For Free

Subversion is at times really annoying and difficult to use due to its cryptic and confusing error messages and unnecessary failures. An example is when you have an svn-managed folder (‘svnProject’) where svn -u status and svn info and even commiting individual files work correctly but commit of the complete folder (which is necessary e.g. if you’ve changes some SVN proprties such as svn:ignore) fails:

.../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

Verification: You can verify that by moving the folder that you are trying to commit to some other location (e.g. /tmp or even /) and retrying to commit it from there. If it succeeds then you’ve encountered this problem. If not then you have likely some other issue.

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.

 

From http://theholyjava.wordpress.com/2010/11/23/svn-fun-path-has-no-ancestry-information/

Commit (data management) Metadata source control ubuntu Tree (data structure)

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Integrate AWS Secrets Manager in Spring Boot Application
  • Configure Kubernetes Health Checks
  • Introduction Garbage Collection Java
  • Host Hack Attempt Detection Using ELK

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: