diff -r 88c8b9eefc45 -r 4a7e25ee406c Plugins/VcsPlugins/vcsMercurial/hg.py --- a/Plugins/VcsPlugins/vcsMercurial/hg.py Sun May 23 14:36:54 2010 +0200 +++ b/Plugins/VcsPlugins/vcsMercurial/hg.py Sun May 23 15:09:37 2010 +0200 @@ -1311,16 +1311,19 @@ res = dia.hasAddOrDelete() self.checkVCSStatus() - def hgPush(self, name): + def hgPush(self, name, force = False): """ Public method used to push changes to a remote Mercurial repository. @param name directory name of the project to be pushed from (string) + @keyparam force flag indicating a forced push (boolean) """ args = [] args.append('push') self.addArguments(args, self.options['global']) args.append('-v') + if force: + args.append('-f') # find the root of the repo repodir = self.splitPath(name)[0]