On 2/7/07, William Stein <[EMAIL PROTECTED]> wrote:
> All patches are text files. All "patch bundles" are binary files.
> But the good thing about patch bundles is that you're guaranteed you
> can apply them (assuming you do hg_sage.pull() first), and get a
> sensible result.
Ok, this makes sense now.
> You can apply the reverse of any given changeset at any time using "hg
> backout":
>
> backout reverse effect of earlier changeset
>
> This makes much more sense than unapplying, since unapplying would
> get you totally out of sync with other people and merging wouldn't
> make sense. It also gives you the option of undoing your undo,
> ad infintum. And given that hg scales fine to massive numbers of
> changesets (tens of thousands, easily), this is quite reasonable.
Ah thanks, this is one of the features I use the most in any RCS.
>
> You can undo the last thing you've done using hg_sage.rollback().
> E.g., if you do hg_sage.pull(); hg_sage.merge() and don't like
> the result, do hg_sage.rollback() and you're back to before the pull
> (at least your pristine repository is rolled back). You'll also
> have to do hg_sage.revert('--all') to revert all your files to
> the state recorded in your .hg repository directory.
When you execute "hg --revert" succesfully, does it display a
meaningful message? When I've tried it, I didn't get any any message
and I just assumed that the commnd had failed silently.
> So you would like this:
>
> rank4:~/d/sage was$ hg ci
> [... i don't record a message ...]
> transaction abort!
> rollback completed
>
> to instead be
>
>
> rank4:~/d/sage was$ hg ci
> [... i don't record a message ...]
> transaction abort!
> You must enter a log message in order to record your changes.
> rollback completed
Yes please. Also, the whole "transaction abort!/rollback completed" is
confusing to a distracted used like me: on the one hand I see
"abort!", on the other, I see "completed". What have I exactly done?
I think my main problem with hg are the error messages. I don't find
them that helpful.
didier
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---