comparison hgext/convert/p4.py @ 25805:584044e5ad57

convert: use 'default' for specifying branch name in branchmap (issue4753) A fix for issue2653 with 1d155582a8ea introduced a discrepancy how default branch should be denoted when converting with branchmap from different SCM. E.g. for Git and Mercurial you need to use 'default' whilst for Perforce and SVN you had to use 'None'. This changeset unifies 'default' for such purposes whilst falling back to 'None' when no 'default' mapping specified.
author Eugene Baranov <eug.baranov@gmail.com>
date Tue, 14 Jul 2015 14:40:56 +0100
parents a36fd0993522
children 97a9f7602014
comparison
equal deleted inserted replaced
25804:f0a77cb6316a 25805:584044e5ad57
138 parents = [] 138 parents = []
139 139
140 date = (int(d["time"]), 0) # timezone not set 140 date = (int(d["time"]), 0) # timezone not set
141 c = commit(author=self.recode(d["user"]), 141 c = commit(author=self.recode(d["user"]),
142 date=util.datestr(date, '%Y-%m-%d %H:%M:%S %1%2'), 142 date=util.datestr(date, '%Y-%m-%d %H:%M:%S %1%2'),
143 parents=parents, desc=desc, branch='', 143 parents=parents, desc=desc, branch=None,
144 extra={"p4": change}) 144 extra={"p4": change})
145 145
146 files = [] 146 files = []
147 copies = {} 147 copies = {}
148 copiedfiles = [] 148 copiedfiles = []