changeset 398:f13dd964d10c

tags: obey usebranchnames setting
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Wed, 10 Jun 2009 09:30:32 +0200
parents 1b9d004a8c0a
children 94f7e8c53c36
files hgsubversion/hg_delta_editor.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgsubversion/hg_delta_editor.py
+++ b/hgsubversion/hg_delta_editor.py
@@ -582,6 +582,8 @@ class HgChangeReceiver(delta.Editor):
                                           islink=False, isexec=False,
                                           copied=None)
             extra = util.build_extra(rev.revnum, b, self.uuid, self.subdir)
+            if not self.usebranchnames:
+                extra.pop('branch', None)
             ctx = context.memctx(self.repo,
                                  (parent.node(), node.nullid),
                                  rev.message or ' ',