Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/cmdutil.py @ 16687:e34106fa0dc3
cleanup: "raise SomeException()" -> "raise SomeException"
author | Brodie Rao <brodie@sf.io> |
---|---|
date | Sat, 12 May 2012 16:00:58 +0200 |
parents | 5cf18921bb7b |
children | d947e1da1259 |
comparison
equal
deleted
inserted
replaced
16686:67964cda8701 | 16687:e34106fa0dc3 |
---|---|
1358 islink='l' in flags, | 1358 islink='l' in flags, |
1359 isexec='x' in flags, | 1359 isexec='x' in flags, |
1360 copied=copied.get(path)) | 1360 copied=copied.get(path)) |
1361 return mctx | 1361 return mctx |
1362 except KeyError: | 1362 except KeyError: |
1363 raise IOError() | 1363 raise IOError |
1364 else: | 1364 else: |
1365 ui.note(_('copying changeset %s to %s\n') % (old, base)) | 1365 ui.note(_('copying changeset %s to %s\n') % (old, base)) |
1366 | 1366 |
1367 # Use version of files as in the old cset | 1367 # Use version of files as in the old cset |
1368 def filectxfn(repo, ctx_, path): | 1368 def filectxfn(repo, ctx_, path): |
1369 try: | 1369 try: |
1370 return old.filectx(path) | 1370 return old.filectx(path) |
1371 except KeyError: | 1371 except KeyError: |
1372 raise IOError() | 1372 raise IOError |
1373 | 1373 |
1374 # See if we got a message from -m or -l, if not, open the editor | 1374 # See if we got a message from -m or -l, if not, open the editor |
1375 # with the message of the changeset to amend | 1375 # with the message of the changeset to amend |
1376 user = opts.get('user') or old.user() | 1376 user = opts.get('user') or old.user() |
1377 date = opts.get('date') or old.date() | 1377 date = opts.get('date') or old.date() |