Mercurial > hg
comparison hgext/bookmarks.py @ 10882:f0bfe42c7b1f
rollback: add dry-run argument, emit transaction description
author | Steve Borho <steve@borho.org> |
---|---|
date | Fri, 09 Apr 2010 17:23:37 -0500 |
parents | 717c35d55fb3 |
children | a156ce543a5b |
comparison
equal
deleted
inserted
replaced
10881:a685011ed38e | 10882:f0bfe42c7b1f |
---|---|
239 if mark == '': | 239 if mark == '': |
240 mark = None | 240 mark = None |
241 file.close() | 241 file.close() |
242 return mark | 242 return mark |
243 | 243 |
244 def rollback(self): | 244 def rollback(self, *args): |
245 if os.path.exists(self.join('undo.bookmarks')): | 245 if os.path.exists(self.join('undo.bookmarks')): |
246 util.rename(self.join('undo.bookmarks'), self.join('bookmarks')) | 246 util.rename(self.join('undo.bookmarks'), self.join('bookmarks')) |
247 return super(bookmark_repo, self).rollback() | 247 return super(bookmark_repo, self).rollback(*args) |
248 | 248 |
249 def lookup(self, key): | 249 def lookup(self, key): |
250 if key in self._bookmarks: | 250 if key in self._bookmarks: |
251 key = self._bookmarks[key] | 251 key = self._bookmarks[key] |
252 return super(bookmark_repo, self).lookup(key) | 252 return super(bookmark_repo, self).lookup(key) |