Mercurial > hgsubversion
diff hg_delta_editor.py @ 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 | a360ddc97719 |
children | f71af18c4379 |
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'