Mercurial > hgsubversion
comparison tests/test_push_command.py @ 626:8e621dbb82d4 1.1.1
push: return reasonable status codes to the end user
| author | Augie Fackler <durin42@gmail.com> |
|---|---|
| date | Sun, 27 Jun 2010 21:18:47 -0500 |
| parents | 96552e855d7e |
| children | d2ef7220a079 |
comparison
equal
deleted
inserted
replaced
| 625:96552e855d7e | 626:8e621dbb82d4 |
|---|---|
| 269 def test_push_to_non_tip(self): | 269 def test_push_to_non_tip(self): |
| 270 self.test_push_to_branch(push=False) | 270 self.test_push_to_branch(push=False) |
| 271 wc2path = self.wc_path + '_clone' | 271 wc2path = self.wc_path + '_clone' |
| 272 u = self.repo.ui | 272 u = self.repo.ui |
| 273 hg.clone(self.repo.ui, self.wc_path, wc2path, update=False) | 273 hg.clone(self.repo.ui, self.wc_path, wc2path, update=False) |
| 274 self.pushrevisions() | 274 res = self.pushrevisions() |
| 275 self.assertEqual(0, res) | |
| 275 oldf = open(os.path.join(self.wc_path, '.hg', 'hgrc')) | 276 oldf = open(os.path.join(self.wc_path, '.hg', 'hgrc')) |
| 276 hgrc = oldf.read() | 277 hgrc = oldf.read() |
| 277 oldf.close() | 278 oldf.close() |
| 278 shutil.rmtree(self.wc_path) | 279 shutil.rmtree(self.wc_path) |
| 279 hg.clone(u, wc2path, self.wc_path, update=False) | 280 hg.clone(u, wc2path, self.wc_path, update=False) |
