Changeset 172
- Timestamp:
- 04-04-07 03:52:10 (6 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 3 edited
-
ChangeLog (modified) (1 diff)
-
moap/vcs/darcs.py (added)
-
moap/vcs/svn.py (modified) (1 diff)
-
moap/vcs/vcs.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r171 r172 1 2007-04-04 Thomas Vander Stichele <thomas at apestaart dot org> 2 3 * moap/vcs/darcs.py (detect, Darcs, Darcs.getNotIgnored, Darcs.walker, 4 Darcs.ignore, Darcs.commit, Darcs.diff, Darcs.getFileMatcher, 5 Darcs.update): 6 Add first stab at darcs support. 7 * moap/vcs/svn.py (detect): 8 Update doc string. 9 * moap/vcs/vcs.py (detect, VCS.getFileMatcher, VCS.getChanges): 10 Since darcs has slightly different diff output, factor out 11 an overridable getFileMatcher to use in getChanges. 12 1 13 2007-04-03 Thomas Vander Stichele <thomas at apestaart dot org> 2 14 -
trunk/moap/vcs/svn.py
r141 r172 17 17 Detect if the given source tree is using svn. 18 18 19 @return: True if the given path looks like a CVStree.19 @return: True if the given path looks like a Subversion tree. 20 20 """ 21 21 if not os.path.exists(os.path.join(path, '.svn')): -
trunk/moap/vcs/vcs.py
r141 r172 22 22 path = os.getcwd() 23 23 systems = util.getPackageModules('moap.vcs', ignore=['vcs', ]) 24 log.debug('vcs', 'trying vcs modules %r' % systems) 24 25 25 26 for s in systems: … … 118 119 raise NotImplementedError 119 120 121 def getFileMatcher(self): 122 """ 123 Return an re matcher object that will expand to the file being 124 changed. 125 126 The default implementation works for CVS and SVN. 127 """ 128 return re.compile('^Index: (\S+)$') 129 120 130 def getChanges(self, path, diff=None): 121 131 """ … … 131 141 diff = self.diff(path) 132 142 changes = {} 133 fileMatcher = re.compile('^Index: (\S+)$') 143 fileMatcher = self.getFileMatcher() 144 134 145 # cvs diff can put a function name after the final @@ pair 135 146 changeMatcher = re.compile(
Note: See TracChangeset
for help on using the changeset viewer.
