Questions tagged [backout]
23 questions
20
votes
1 answer
What is the difference between hg revert and hg backout?
Both hg revert and hg backout revert changes made by a former revision. What is the difference between the two?

Iodnas
- 3,414
- 24
- 26
11
votes
3 answers
How to do "hg backout X" in Git?
I have to use Git and want to undo one commit that was some commits before the tip. In Hg it's hg backout. What's the analog command in Git?
(I duckduckwent before posting this and dont's see an analog command.)

culebrón
- 34,265
- 20
- 72
- 110
10
votes
3 answers
Can I make an older revision the tip and push (using Mercurial)?
Say if I have a good revision: 3200. Then I want to test something, and since it has 10 lines of change, and I need to remove a few lines, even though I am still testing I commit first, and after some changes, commit again, and let's say, I did 6…

nonopolarity
- 146,324
- 131
- 460
- 740
9
votes
3 answers
Fixing renames in a Mercurial repository after committing
Many files in our Mercurial repository were moved in a single commit, but these files were not marked as renamed. To make matters worse, some of the files were also modified in the same commit.
How can I backout the changeset and detect renames…

Petrus Theron
- 27,855
- 36
- 153
- 287
9
votes
3 answers
How to undo "hg qnew"?
I issued hg qnew without realizing that it includes any outstanding changes into the patch. I'd like to back that out and pick only specific changes using hg qrecord. How can I undo qnew?

Petr
- 62,528
- 13
- 153
- 317
4
votes
2 answers
Backout many commits (15) in mercurial
I have "test" branch, and I have incorrect 15 commits in it (they are last commits in this branch). I don't need these commits, and I want to back them out. But I also need to have "test" branch, I can't just close it.
How to backout many commits?…

nkuhta
- 10,388
- 12
- 41
- 54
2
votes
1 answer
P4: I made a mistake renaming files and loose its history. How can I fix it?
I was asked to change the extension of a file to another like:
file.a --> file.b
The thing I did (wrong) was something like :
cp file.a file.b
p4 add file.b
p4 delete file.a
And then submitted to my branch.
The thing is my team want to keep…

avalencia
- 33
- 8
1
vote
2 answers
Mercurial undoing push to main branch
I accidentally pushed some changes to the main branch which weren't ready, so I immediately did a backout. Later I tried merging new changes from the trunk into my branch, but the merge didn't work very well. In particular, it seemed that it thought…

Casebash
- 114,675
- 90
- 247
- 350
1
vote
1 answer
How to find backout commits in Mercurial?
After performing a hg backout, the console outputs something like this:
changeset 3:a2b2d103c5ee backs out changeset 2:487a64ab45d0
The message suggests that backout metadata is recorded somewhere within Mercurial. Is this true? Given a revision,…

rodrigorgs
- 855
- 2
- 9
- 20
1
vote
1 answer
Perforce: rollback the entire workspace to a state prior to a Change List
Is it possible to rollback my workspace to a state which was prior to a change list.
Note: This is not the direct roll back or backout on a specific changelist
Example Scenario:
1: User x submitted a change list, everything is working fine. Let…

dman
- 11
- 2
1
vote
2 answers
Perforce - Check out all files after back out
Lets say a CL was submitted with large number of files. Now the entire CL was backed out due to bug in all those files. How do I now checkout all those files at once? Any easy way do this?

user3347694
- 11
- 1
1
vote
2 answers
Mercurial extension or hook to prevent backout of merge changesets
As noted in the documentation, the hg backout command can cause problems when used with merge changesets. We have had a couple of cases recently of newer developers backing out merge changesets and causing code that we wanted to keep to be reverted…

Chris Phillips
- 11,607
- 3
- 34
- 45
1
vote
1 answer
SVN Backout but keep changes locally
With SVN command line, whats the best way to back out committed changes but to retain them on your local revision? i.e. I want the final state of the remote repository to be what it was before the last commit, and I want the final state of my local…

James
- 1,237
- 4
- 22
- 43
0
votes
1 answer
How to check whether given Changelist is backout or not in child branch?
Basically we have one CL ( e.g.1000000) that is integrated in one master branch as well as in all of its child branch . Now suppose that CL 1000000 is backout in master branch . Is there any way to check whether this changes are backed out in all of…

RAJAN_PARMAR
- 139
- 2
- 9
0
votes
1 answer
Queue name from poison message - MQ / JMS
I'm developing a solution to retrieve poison messages from a backout queue in Websphere 6.1.
My question is: when this msg (ie. TextMessage) is re-queue from a regular queue to backout queue, what is the queue name in msg.getJMSDestination() and…

André Schuster
- 165
- 6
- 18