1. Augie Fackler
  2. hgsubversion


Dan Villiom Podlaski Christiansen  committed 1afd308

tests: remove ability to toggle stupidity on less than class level

  • Participants
  • Parent commits 8f3a241
  • Branches default

Comments (0)

Files changed (1)

File tests/test_util.py

View file
-    def ui(self, stupid=False, layout='auto'):
-        return testui(self.stupid or stupid, layout)
+    def ui(self, layout='auto'):
+        return testui(self.stupid, layout)
     def load_svndump(self, fixture_name):
         '''Loads an svnadmin dump into a fresh repo. Return the svn repo
             tarball.extract(entry, path)
         return path
-    def fetch(self, repo_path, subdir=None, stupid=False, layout='auto',
+    def fetch(self, repo_path, subdir=None, layout='auto',
             startrev=0, externals=None, noupdate=True, dest=None, rev=None,
         if layout == 'single':
-        if self.stupid or stupid:
+        if self.stupid:
         if noupdate:
     def repo(self):
         return hg.repository(testui(), self.wc_path)
-    def pushrevisions(self, stupid=False, expected_extra_back=0):
+    def pushrevisions(self, expected_extra_back=0):
         before = repolen(self.repo)
-        self.repo.ui.setconfig('hgsubversion', 'stupid',
-                               str(self.stupid or stupid))
+        self.repo.ui.setconfig('hgsubversion', 'stupid', str(self.stupid))
         res = commands.push(self.repo.ui, self.repo)
         after = repolen(self.repo)
         self.assertEqual(expected_extra_back, after - before)