Mercurial > treepkg > treepkg
comparison treepkg/subversion.py @ 541:8b49548aa8d4
provide stubs for short_revision number
author | Bjoern Ricks <bricks@intevation.de> |
---|---|
date | Tue, 11 Jan 2011 16:27:02 +0000 |
parents | f7613aaa6a4e |
children |
comparison
equal
deleted
inserted
replaced
540:f7613aaa6a4e | 541:8b49548aa8d4 |
---|---|
266 | 266 |
267 def last_changed_revision(self): | 267 def last_changed_revision(self): |
268 """Returns the last changed rev of the working copy""" | 268 """Returns the last changed rev of the working copy""" |
269 return self.repository.last_changed_revision(self.localdir) | 269 return self.repository.last_changed_revision(self.localdir) |
270 | 270 |
271 def get_revision(self): | |
272 return self.last_changed_revision() | |
273 | |
274 def get_short_revision(self): | |
275 # TODO: revision should be cached to avoid several calls to svn | |
276 return self.get_revision() | |
277 | |
271 | 278 |
272 class ManualWorkingCopy(object): | 279 class ManualWorkingCopy(object): |
273 | 280 |
274 """A manually managed working copy""" | 281 """A manually managed working copy""" |
275 | 282 |