Ignore:
Timestamp:
22-05-08 21:48:59 (5 years ago)
Author:
thomas
Message:
  • moap/vcs/vcs.py: Add getPropertyChanges() to get paths that have changed properties.
  • moap/test/test_vcs_svn.py:
  • moap/vcs/svn.py: Implement it for svn.
  • moap/command/cl.py: Use it in moap cl prep so that we allow commenting on property changes. Fixes #286.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/moap/test/test_vcs_svn.py

    r333 r344  
    179179            (1, 1, 1, 1), 
    180180        ]) 
     181 
     182class TestChangeProperties(SVNTestCase): 
     183 
     184    def testGetPropertyChanges(self): 
     185        v = svn.VCSClass(self.livedir)  
     186        self.failUnless(v) 
     187 
     188        # create a file 
     189        path = self.liveWriteFile('test', "test\n") 
     190        path2 = self.liveWriteFile('test2', "test\n") 
     191 
     192        # add it 
     193        os.system('svn add %s' % path) 
     194        os.system('svn add %s' % path2) 
     195        os.system('svn commit -m "test" %s' % self.livedir) 
     196         
     197        # change property on it 
     198        os.system('svn ps property value %s' % path) 
     199        os.system('svn ps property value %s' % path2) 
     200 
     201        # now get changes 
     202        c = v.getPropertyChanges(self.livedir) 
     203        self.assertEquals(c, [path, path2]) 
Note: See TracChangeset for help on using the changeset viewer.