changeset 222:f2c65dd3d5c0

Avoid problems in _localname for commits to tags by ignoring them
author Luke Opperman <luke@loppear.com>
date Tue, 31 Mar 2009 15:23:38 -0500
parents ced45b753ba7
children 330f0b15d417
files hg_delta_editor.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hg_delta_editor.py
+++ b/hg_delta_editor.py
@@ -221,6 +221,8 @@ class HgChangeReceiver(delta.Editor):
                     parentdir = '/'.join(path[:-1])
                     filepaths = [p for p in filepaths if not '/'.join(p).startswith(parentdir)]
                     branchpath = self._normalize_path(parentdir)
+                    if branchpath.startswith('tags/'):
+                        continue
                     branchname = self._localname(branchpath)
                     if branchpath.startswith('trunk/'):
                         branches[self._localname('trunk')] = 'trunk'