--- a/eric7/Plugins/VcsPlugins/vcsMercurial/hg.py Tue May 25 17:17:04 2021 +0200 +++ b/eric7/Plugins/VcsPlugins/vcsMercurial/hg.py Tue May 25 17:37:59 2021 +0200 @@ -1835,8 +1835,9 @@ if res: dia.exec() if commit: + project = ericApp().getObject("Project") self.vcsCommit( - name, + project.getProjectPath(), self.tr("Created new branch <{0}>.").format( name))