New submission from Panu A Kalliokoski <[EMAIL PROTECTED]>: As is well known, darcs permits some dangerous actions, such as unpulling a patch that was never pulled, or amending a patch that has already been distributed. It seems to me that these dangerous actions could be prevented by relatively simple measures.
For instance, unpull and obliterate could be separated so that unpull requires the user to specify a repository "from which" the patch is unpulled. darcs unpull would then refuse to unpull the patch if the patch did not exist in that repository. The repository would naturally default to the same repository as with darcs pull, darcs push etc. This way, it would be impossible to unpull the last copy of a patch, because to unpull it, there must always be a repository where it still exists. Another measure, not much more complicated, would be a feature to track whether a patch has been distributed. Every repository could simply have a list of not-yet-distributed patches and protect against unrecording or amending patches that have been distributed. Panu ---------- messages: 2207 nosy: beschmi, droundy, kowey, panu.kalliokoski, tommy status: unread title: Wishlist bug: add safety guards against well-known dangerous actions __________________________________ Darcs bug tracker <[EMAIL PROTECTED]> <http://bugs.darcs.net/issue557> __________________________________ _______________________________________________ darcs-devel mailing list [email protected] http://lists.osuosl.org/mailman/listinfo/darcs-devel
