changeset 4799:d00ca99bc54e

convert svn: minor improvement to tag detection. The better way is probably to list the latest tags directory and look up the last log message for each entry. This is surprisingly annoying to do.
author Brendan Cully <brendan@kublai.com>
date Tue, 03 Jul 2007 20:22:39 -0700
parents 83c1bbb934ec
children 27d5c4d51686
files hgext/convert/subversion.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/convert/subversion.py	Tue Jul 03 19:49:36 2007 -0700
+++ b/hgext/convert/subversion.py	Tue Jul 03 20:22:39 2007 -0700
@@ -532,6 +532,8 @@
             orig_paths, revnum, author, date, message, pool = arg
             orig_paths = svn_paths(orig_paths)
             for path in orig_paths:
+                if not path.startswith('/tags/'):
+                    continue
                 ent = orig_paths[path]
                 source = ent.copyfrom_path
                 rev = ent.copyfrom_rev
@@ -540,7 +542,7 @@
 
         start = self.revnum(self.head)
         try:
-            svn.ra.get_log(self.ra, ['/tags'], start, 0, 1, True, False,
+            svn.ra.get_log(self.ra, ['/tags'], 0, start, 0, True, False,
                            parselogentry)
             return tags
         except SubversionException: