a bug in "hg convert" with subversion sources?

Patrick Mézard pmezard at gmail.com
Fri Feb 12 19:08:30 CST 2010


Le 11/02/10 23:29, Giorgos Keramidas a écrit :
> 
> I rechecked my conversion script, and this is not the right fix.  It
> will abort commits that shouldn't be aborted too.
> 
> A better fix is probably to handle IOError differently than OSError in
> localrepo.commitctx():
> 
> %%%
> # HG changeset patch
> # User Giorgos Keramidas <keramida at ceid.upatras.gr>
> # Date 1265922942 -7200
> # Node ID 41adba0ab8eafc44a4f763ccf2584b40fb5d288a
> # Parent  25baec9de39b55863b23692938945953567fb990
> convert: differentiate between IOError and OSError on commitctx()
> 
> The IOError exception is overloaded to mean 'this file was deleted in
> the current commit'.  Separate the code that handles IOError and file
> deletion from general OSError exceptions.  The latter are real errors,
> but IOError is not always a throwable error.
> 
> This solves the accidental marking of files as 'deleted' in commits that
> try to write for example in .hg/store/data revlogs that the current user
> has no permission to modify (a normal OSError that should abort the
> current commit).

In crew-stable: http://hg.intevation.org/mercurial/crew/rev/e553a425751d with a minor change

Thanks!

--
Patrick Mézard


More information about the Mercurial-devel mailing list