Ticket #31644 (closed defect: fixed)
port -d sync fails on port tree after Subversion 1.7 update
| Reported by: | dave.evans55@… | Owned by: | macports-tickets@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | MacPorts 2.1.0 |
| Component: | base | Version: | 2.0.99 |
| Keywords: | Cc: | ak.ml@…, ryandesign@… | |
| Port: |
Description
I have two ports trees fetched with Subversion - the Macports tree and the feiri.eu tree
The macports tree no longer updates with port -d sync, instead I have to do it manually with Subversion. This started happening after Subversion was upgraded to 1.7
Subversion no longer has .svn directories in each directory of the ports tree. Instead there is one .svn at the base of the trunk tree, which in my case also includes the Macports tcl source files and documentation.
Looking at the source in base/src/macports1.0/macports.tcl, there is a check for the existence of a .svn directory. It's not there anymore, so Subversion is never used.
Here's the output of a port -d sync
svn is only called for the macports.feiri.eu tree
Script started on Mon Oct 17 17:07:10 2011 DEBUG: Synchronizing ports tree(s) DEBUG: Skipping file:///Users/davidevans/localports/ Synchronizing local ports tree from file:///Users/davidevans/macports.feiri.eu DEBUG: /opt/local/bin/svn update --non-interactive /Users/davidevans/macports.feiri.eu Updating '/Users/davidevans/macports.feiri.eu': Skipped '/Users/davidevans/macports.feiri.eu/PortIndex.quick' -- Node remains in conflict Skipped '/Users/davidevans/macports.feiri.eu/PortIndex' -- Node remains in conflict At revision 530. Summary of conflicts: Skipped paths: 2 Creating port index in /Users/davidevans/macports.feiri.eu Total number of ports parsed: 0 Ports successfully parsed: 0 Ports failed: 0 Up-to-date ports skipped: 19 Synchronizing local ports tree from file:////Users/davidevans/macports/svn-repo/macports-trunk/dports/ Creating port index in /Users/davidevans/macports/svn-repo/macports-trunk/dports Total number of ports parsed: 0 Ports successfully parsed: 0 Ports failed: 0 Up-to-date ports skipped: 12350 Script done on Mon Oct 17 17:07:15 2011
Attachments
Change History
comment:2 follow-up: ↓ 3 Changed 20 months ago by ak.ml@…
I think you're right about the .svn check.
My suggestion would be to replace the .svn check with a check on the exit status of:
svn info ${portdir}
See the attached patch.


Cc Me!