Mercurial > python-hglib
view tests/test-move.py @ 171:2725547a5f92 2.0
commit: allow rev and node to be anywhere in the output
a01d3d32b53a in hg changed the output of commit --debug so the committed
changeset isn't necessarily the last line.
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Thu, 31 Dec 2015 16:53:51 -0800 |
parents | c1b966866ed7 |
children |
line wrap: on
line source
import os from tests import common from hglib.util import b class test_move(common.basetest): def test_basic(self): self.append('a', 'a') self.client.add(b('a')) self.assertTrue(self.client.move(b('a'), b('b'))) # hg returns 0 even if there were warnings #def test_warnings(self): # self.append('a', 'a') # self.client.add('a') # os.mkdir('c') # self.assertFalse(self.client.move(['a', 'b'], 'c'))