Mercurial > hgsubversion
comparison cmdutil.py @ 243:2027f851d60c
Small cleanups: remove unneeded imports, useless superclass.
| author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
|---|---|
| date | Wed, 08 Apr 2009 17:54:30 +0200 |
| parents | 06130689a2c8 |
| children | 28d0ee605308 |
comparison
equal
deleted
inserted
replaced
| 242:06130689a2c8 | 243:2027f851d60c |
|---|---|
| 5 | 5 |
| 6 import svnwrap | 6 import svnwrap |
| 7 import svnexternals | 7 import svnexternals |
| 8 | 8 |
| 9 | 9 |
| 10 class BaseException(Exception): | 10 class NoFilesException(Exception): |
| 11 pass | |
| 12 | |
| 13 | |
| 14 class NoFilesException(BaseException): | |
| 15 """Exception raised when you try and commit without files. | 11 """Exception raised when you try and commit without files. |
| 16 """ | 12 """ |
| 17 | 13 |
| 18 | 14 |
| 19 def replay_convert_rev(hg_editor, svn, r): | 15 def replay_convert_rev(hg_editor, svn, r): |
| 126 if '.hgsvnexternals' in ctx: | 122 if '.hgsvnexternals' in ctx: |
| 127 ext.read(ctx['.hgsvnexternals'].data()) | 123 ext.read(ctx['.hgsvnexternals'].data()) |
| 128 return ext | 124 return ext |
| 129 | 125 |
| 130 | 126 |
| 131 def commit_from_rev(ui, repo, rev_ctx, hg_editor, svn_url, base_revision | 127 def commit_from_rev(ui, repo, rev_ctx, hg_editor, svn_url, base_revision, |
| 132 username, password): | 128 username, password): |
| 133 """Build and send a commit from Mercurial to Subversion. | 129 """Build and send a commit from Mercurial to Subversion. |
| 134 """ | 130 """ |
| 135 file_data = {} | 131 file_data = {} |
| 136 svn = svnwrap.SubversionRepo(svn_url, username, password) | 132 svn = svnwrap.SubversionRepo(svn_url, username, password) |
