how to implement a "dead end" ?

Asked by Luciano

Hallo everybody,

I am making my journey through bazaar.
I find it very nice,especially for non-gurus,
and a definite step forward with respect to older software.

I am at a point where I can merge and commit, and resolve
simple conflicts within the "solo" workflow model:
that is I am experimenting
with one computer and one contributor (myself).

I really much need the possibility to impement a "dead end":
that is the possibility to go back a couple of releases, and keep on going from this point,
without loosing what I did wrong in the "dead end".

How could I do this?

Thanks in advance
Luciano

Question information

Language:
English Edit question
Status:
Answered
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
EdB (ed-marsfire) said :
#1

Hi Luciano,

I do this all the time in the following manner:

1) Make a copy of the "dead end" branch in another subdirectory. Copying everything including the hidden .bzr folder also makes a copy of the revision history.

2) Roll back to your desired revision on the original branch from which you plan to move forward.

It's really that easy. You can then keep the "dead end" as a live, separate bzr branch with full Bazaar capabilities, or, you could remove the hidden .bzr folder to remove the revision history.

You could also branch the branch, using a specific revision, and then move forward on that new copy just as described above, leaving the old copy. Bazaar is totally flexible and the revision history is self-contained with your project.

Revision history for this message
Martin Pool (mbp) said :
#2

Rather than copying the thing, I suggest you branch using 'bzr branch'.

You can also use 'bzr tag' to mark a point in time. If you later want
to permanently discard all the changes since then, you can use 'bzr
pull -r my_tag', or you can look at the changes since then with 'bzr
diff -r my_tag'.

--
Martin <http://launchpad.net/~mbp/>

Can you help with this problem?

Provide an answer of your own, or ask Luciano for more information if necessary.

To post a message you must log in.