[issue3323] import --no-commit creates a repository transaction

roman-neuhauser bugs at mercurial.selenic.com
Fri Mar 16 07:21:10 CDT 2012


New submission from roman-neuhauser <neuhauser at sigpipe.cz>:

rollback after import --no-commit reports rolling back the import.  import 
--no-commit should not create a repository transaction: it does not clobber 
the repository.

the test case is attached.

$ HGPLAIN=. sh -exu hg-import-rollback-bug.sh
+ hg --version
Mercurial Distributed SCM (version 2.1.1+36-7b9bf72430ba)
(see http://mercurial.selenic.com for more information)

Copyright (C) 2005-2012 Matt Mackall and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ mkdir hg-import-rollback-bug
+ cd hg-import-rollback-bug
+ hg init
+ echo random
+ hg add snafu
+ hg commit -m expected-after-rollback
+ echo random
+ hg commit -m actual-after-rollback
+ echo random
+ hg diff
+ hg revert --all
reverting snafu
+ hg import --no-commit changes
applying changes
+ hg revert --all
reverting snafu
+ hg rollback
repository tip rolled back to revision 1 (undo import)

----------
files: hg-import-rollback-bug.sh
messages: 19395
nosy: roman-neuhauser
priority: bug
status: unread
title: import --no-commit creates a repository transaction

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue3323>
____________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hg-import-rollback-bug.sh
Type: application/octet-stream
Size: 470 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20120316/3f2b7c5a/attachment.obj>


More information about the Mercurial-devel mailing list