コード例 #1
0
	def test_hasPendingChanges_whenPendingModification(self) :
		self.addFile('remoteChange')
		self.addRevisions('remoteChange',1)
		self.rewind(1)

		s = GitSandbox(self.defs['sandbox'])
		self.assertTrue(s.hasPendingChanges())
コード例 #2
0
	def test_hasPendingChanges_whenPendingRemove(self) :
		self.addFile('remoteRemove')
		self.removeFile('remoteRemove')
		self.rewind(1)

		s = GitSandbox(self.defs['sandbox'])
		self.assertTrue(s.hasPendingChanges())
コード例 #3
0
    def test_hasPendingChanges_whenPendingRemove(self):
        self.addFile('remoteRemove')
        self.removeFile('remoteRemove')
        self.rewind(1)

        s = GitSandbox(self.defs['sandbox'])
        self.assertTrue(s.hasPendingChanges())
コード例 #4
0
    def test_hasPendingChanges_whenPendingModification(self):
        self.addFile('remoteChange')
        self.addRevisions('remoteChange', 1)
        self.rewind(1)

        s = GitSandbox(self.defs['sandbox'])
        self.assertTrue(s.hasPendingChanges())
コード例 #5
0
	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())
コード例 #6
0
    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())
コード例 #7
0
	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())
コード例 #8
0
    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())
コード例 #9
0
	def test_hasPendingChanges_whenMissingFile(self) :
		self.addFile('nonsvnRemove')
		self.x('rm %(sandbox)s/nonsvnRemove')

		s = GitSandbox(self.defs['sandbox'])
		self.assertTrue(s.hasPendingChanges())
コード例 #10
0
    def test_hasPendingChanges_whenMissingFile(self):
        self.addFile('nonsvnRemove')
        self.x('rm %(sandbox)s/nonsvnRemove')

        s = GitSandbox(self.defs['sandbox'])
        self.assertTrue(s.hasPendingChanges())