def test_hasPendingChanges_whenPendingModification(self) : self.addFile('remoteChange') self.addRevisions('remoteChange',1) self.rewind(1) s = GitSandbox(self.defs['sandbox']) self.assertTrue(s.hasPendingChanges())
def test_hasPendingChanges_whenPendingRemove(self) : self.addFile('remoteRemove') self.removeFile('remoteRemove') self.rewind(1) s = GitSandbox(self.defs['sandbox']) self.assertTrue(s.hasPendingChanges())
def test_hasPendingChanges_whenPendingRemove(self): self.addFile('remoteRemove') self.removeFile('remoteRemove') self.rewind(1) s = GitSandbox(self.defs['sandbox']) self.assertTrue(s.hasPendingChanges())
def test_hasPendingChanges_whenPendingModification(self): self.addFile('remoteChange') self.addRevisions('remoteChange', 1) self.rewind(1) s = GitSandbox(self.defs['sandbox']) self.assertTrue(s.hasPendingChanges())
def test_hasPendingChanges_whenNoPendingChanges(self) : self.addFile('remoteChange', False) self.addFile('remoteRemove', False) self.addFile('localRemove', False) self.addFile('localChange', False) self.addFile('nonsvnRemove', False) self.commitAll("State were we want to go back") s = GitSandbox(self.defs['sandbox']) self.assertFalse(s.hasPendingChanges())
def test_hasPendingChanges_whenNoPendingChanges(self): self.addFile('remoteChange', False) self.addFile('remoteRemove', False) self.addFile('localRemove', False) self.addFile('localChange', False) self.addFile('nonsvnRemove', False) self.commitAll("State were we want to go back") s = GitSandbox(self.defs['sandbox']) self.assertFalse(s.hasPendingChanges())
def test_hasPendingChanges_whenLocalChanges(self) : self.addFile('localRemove', False) self.addFile('localChange', False) self.commitAll("State were we want to go back") # any local modifications (but non-svn deletion) self.addRevisions('localChange', 1, False) self.removeFile('localRemove', False) self.addFile('localAdd', False) self.x('echo nonsvnAdd > %(sandbox)s/nonsvnAdd') s = GitSandbox(self.defs['sandbox']) self.maxDiff = None self.assertFalse(s.hasPendingChanges())
def test_hasPendingChanges_whenLocalChanges(self): self.addFile('localRemove', False) self.addFile('localChange', False) self.commitAll("State were we want to go back") # any local modifications (but non-svn deletion) self.addRevisions('localChange', 1, False) self.removeFile('localRemove', False) self.addFile('localAdd', False) self.x('echo nonsvnAdd > %(sandbox)s/nonsvnAdd') s = GitSandbox(self.defs['sandbox']) self.maxDiff = None self.assertFalse(s.hasPendingChanges())
def test_hasPendingChanges_whenMissingFile(self) : self.addFile('nonsvnRemove') self.x('rm %(sandbox)s/nonsvnRemove') s = GitSandbox(self.defs['sandbox']) self.assertTrue(s.hasPendingChanges())
def test_hasPendingChanges_whenMissingFile(self): self.addFile('nonsvnRemove') self.x('rm %(sandbox)s/nonsvnRemove') s = GitSandbox(self.defs['sandbox']) self.assertTrue(s.hasPendingChanges())