|
@@ -724,7 +724,10 @@ class ArchiverTestCase(ArchiverTestCaseBase):
|
|
self.assert_in("A input/file2", output)
|
|
self.assert_in("A input/file2", output)
|
|
|
|
|
|
def test_create_topical(self):
|
|
def test_create_topical(self):
|
|
|
|
+ now = time.time()
|
|
self.create_regular_file('file1', size=1024 * 80)
|
|
self.create_regular_file('file1', size=1024 * 80)
|
|
|
|
+ os.utime('input/file1', (now-5, now-5))
|
|
|
|
+ self.create_regular_file('file2', size=1024 * 80)
|
|
self.cmd('init', self.repository_location)
|
|
self.cmd('init', self.repository_location)
|
|
# no listing by default
|
|
# no listing by default
|
|
output = self.cmd('create', self.repository_location + '::test', 'input')
|
|
output = self.cmd('create', self.repository_location + '::test', 'input')
|
|
@@ -733,11 +736,11 @@ class ArchiverTestCase(ArchiverTestCaseBase):
|
|
output = self.cmd('create', self.repository_location + '::test0', 'input')
|
|
output = self.cmd('create', self.repository_location + '::test0', 'input')
|
|
self.assert_not_in('file1', output)
|
|
self.assert_not_in('file1', output)
|
|
# should list the file as unchanged
|
|
# should list the file as unchanged
|
|
- #output = self.cmd('create', '--unchanged', self.repository_location + '::test1', 'input')
|
|
|
|
- #self.assert_in('file1', output)
|
|
|
|
|
|
+ output = self.cmd('create', '--unchanged', self.repository_location + '::test1', 'input')
|
|
|
|
+ self.assert_in('file1', output)
|
|
# should *not* list the file as changed
|
|
# should *not* list the file as changed
|
|
- #output = self.cmd('create', '--changed', self.repository_location + '::test2', 'input')
|
|
|
|
- #self.assert_not_in('file1', output)
|
|
|
|
|
|
+ output = self.cmd('create', '--changed', self.repository_location + '::test2', 'input')
|
|
|
|
+ self.assert_not_in('file1', output)
|
|
# change the file
|
|
# change the file
|
|
self.create_regular_file('file1', size=1024 * 100)
|
|
self.create_regular_file('file1', size=1024 * 100)
|
|
# should list the file as changed
|
|
# should list the file as changed
|