changeset 1511:cb29f4bffcc7

replay: fix tests Upstream c0b16b801687be26d14cabe501678e24b2a3c117 now may set current branch if branch is not set in extras explicitly. This diff fixes it.
author Stanislau Hlebik <stash@fb.com>
date Wed, 07 Jun 2017 03:35:44 -0700
parents d4eb7b064085
children 6d0fe7ce9898
files hgsubversion/replay.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgsubversion/replay.py
+++ b/hgsubversion/replay.py
@@ -181,6 +181,8 @@ def _convert_rev(ui, meta, svn, r, tbdel
                                               copied=copied)
 
         meta.mapbranch(extra)
+        if 'branch' not in extra:
+            extra['branch'] = 'default'
         current_ctx = context.memctx(meta.repo,
                                      parents,
                                      meta.getmessage(rev),