# HG changeset patch # User Adrian Buehlmann # Date 1307959520 -7200 # Node ID a6467dfbe5dc68b18f082c9bfbdbbead81fcbbd9 # Parent da40ee1adc2bab056d6dec61aabfd44ab5fcbfa7 mq: rename check_substate to checksubstate diff -r da40ee1adc2b -r a6467dfbe5dc hgext/mq.py --- a/hgext/mq.py Mon Jun 13 12:03:38 2011 +0200 +++ b/hgext/mq.py Mon Jun 13 12:05:20 2011 +0200 @@ -833,7 +833,7 @@ return top, patch return None, None - def check_substate(self, repo): + def checksubstate(self, repo): '''return list of subrepos at a different revision than substate. Abort if any subrepos have uncommitted changes.''' inclsubs = [] @@ -893,7 +893,7 @@ diffopts = self.diffopts({'git': opts.get('git')}) if opts.get('checkname', True): self.checkpatchname(patchfn) - inclsubs = self.check_substate(repo) + inclsubs = self.checksubstate(repo) if inclsubs: inclsubs.append('.hgsubstate') if opts.get('include') or opts.get('exclude') or pats: @@ -1348,7 +1348,7 @@ if repo.changelog.heads(top) != [top]: raise util.Abort(_("cannot refresh a revision with children")) - inclsubs = self.check_substate(repo) + inclsubs = self.checksubstate(repo) cparents = repo.changelog.parents(top) patchparent = self.qparents(repo, top)