##// END OF EJS Templates
convert: add config option to turn off use of branch names
Bryan O'Sullivan -
r5038:8f157190 default
parent child Browse files
Show More
@@ -24,6 +24,7 b' class mercurial_sink(converter_sink):'
24 raise NoRepo("could not open hg repo %s as sink" % path)
24 raise NoRepo("could not open hg repo %s as sink" % path)
25 self.lock = None
25 self.lock = None
26 self.wlock = None
26 self.wlock = None
27 self.branchnames = ui.configbool('convert', 'hg.usebranchnames', True)
27
28
28 def before(self):
29 def before(self):
29 self.lock = self.repo.lock()
30 self.lock = self.repo.lock()
@@ -76,7 +77,7 b' class mercurial_sink(converter_sink):'
76
77
77 text = commit.desc
78 text = commit.desc
78 extra = {}
79 extra = {}
79 if commit.branch:
80 if self.branchnames and commit.branch:
80 extra['branch'] = commit.branch
81 extra['branch'] = commit.branch
81 if commit.rev:
82 if commit.rev:
82 extra['convert_revision'] = commit.rev
83 extra['convert_revision'] = commit.rev
General Comments 0
You need to be logged in to leave comments. Login now