[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] Add "copied" subcommand to svnlook

From: Paul Dugas <paul_at_dugas.cc>
Date: 2005-09-23 02:59:58 CEST

The attached patch adds a new "copied" subcommand to the svnlook command.
I've been looking for something like this to help enforce some constraints
on how tags and branches are created in my repositories. I need to ensure
tags are copies of trunk and branches start as copies of tags.

All I've done is copy the code from the "changed" subcommand the, instead
of displaying A/D/R/U entries, I'm printing a line for each node where

  ((node->action == 'A') && (node->copyfrom_path))

Two questions...

  Is there a better way to do this?

  Is there a prefered (more easily parsed) way to display the info?

I'm sure I've not done 100% testing of this. All I can say is "works for
me" ;)



PS: my first subversion patch, pls be gentle

Paul Dugas, Computer Engineer           Dugas Enterprises, LLC
paul@dugas.cc     phone: 404-932-1355   522 Black Canyon Park
http://dugas.cc     fax: 866-751-6494   Canton, GA 30114 USA
Onsite at GDOT W.Annex 404-463-2860 x199

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Fri Sep 23 03:00:51 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.