Mercurial > hgsubversion
comparison tests/test_util.py @ 531:cf4fe45bf8fd
Change all instantiations of IOError to set both errno and strerror.
author | Dan Villiom Podlaski Christiansen <danchr@gmail.com> |
---|---|
date | Tue, 26 Jan 2010 17:36:13 +0100 |
parents | 2be9f14bd23f |
children | d84116dda52d |
comparison
equal
deleted
inserted
replaced
530:76e9504db03b | 531:cf4fe45bf8fd |
---|---|
238 else: | 238 else: |
239 changed.append(dest) | 239 changed.append(dest) |
240 | 240 |
241 def filectxfn(repo, memctx, path): | 241 def filectxfn(repo, memctx, path): |
242 if path in removed: | 242 if path in removed: |
243 raise IOError() | 243 raise IOError(errno.ENOENT, |
244 "File \"%s\" no longer exists" % path) | |
244 entry = [e for e in changes if path == e[1]][0] | 245 entry = [e for e in changes if path == e[1]][0] |
245 source, dest, newdata = entry | 246 source, dest, newdata = entry |
246 if newdata is None: | 247 if newdata is None: |
247 newdata = parentctx[source].data() | 248 newdata = parentctx[source].data() |
248 copied = None | 249 copied = None |