lamer basic question reverting add
Harry Putnam
reader at newsguy.com
Fri Nov 15 14:28:28 CST 2013
I've added some files but never committed the add.
However I did commit a few other things individually, by name.
Now I want to backout the adds. Reading the man page it appears
`revert' is the tool to use but its not clear if I have to revert each
transaction in order, back to the adds. That is, revert a single
commit, revert another single commit, HERE comes the step where I
added files.
Or can I just revert the add directly without involving two other
transactions that occurred after the adds?
Stepping back thru the transactions... with `hd log', I don't see one
about adding anything so I guess until it's committed it isn't seen as
a transaction. But then `revert' is supposed to revert
transactions... so, well that is a bit confusing.
So to summarize:
I added some files
I went on to commit 2 individual files by name so DID NOT commit the
added files.
How can I undo the adds?
More information about the Mercurial
mailing list