This is an archive of the discontinued Mercurial Phabricator instance.

py3: use regular expression to deal with ENOENT formatting change
AbandonedPublic

Authored by durin42 on Jan 24 2019, 3:57 PM.

Details

Reviewers
pulkit
Group Reviewers
hg-reviewers
Summary

Yes, really.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

durin42 created this revision.Jan 24 2019, 3:57 PM
durin42 updated this revision to Diff 13433.Jan 24 2019, 3:58 PM
yuja added a subscriber: yuja.Jan 25 2019, 5:15 AM
$ hg log -b --cwd=inexistent default
  • abort: $ENOENT$: 'inexistent'

+ abort: \$ENOENT\$: ('inexistent'|inexistent) (re)

That's our fault. The exception is caught as IOError on Python 3, and our
formatting of IOError and OSError are slightly different!

Maybe we should unify them.

durin42 abandoned this revision.Jan 30 2019, 5:16 PM