Accurev: Restore workspace to older version

892 Views Asked by At

I'm a brand new to Accurev and I'm having many troubles with it. One of the developers I'm working with has promoted bad code (things are now broken that weren't before) for 2 months on a stream, and I'm wanting to get a copy of the original code before any changes were made to it.

I currently have a workspace, and whenever the other developer creates code, I pull his changes into this workspace attempting to fix the bugs. These changes are promoted to an existing issue within Accurev.

Is there any way I can perhaps create a second workspace and obtain a copy of the original code (before any changes were made)? My target date is March 14th.

3

There are 3 best solutions below

1
Yuki On BEST ANSWER

To do this, I right-clicked the stream >> New Snapshot.
I select "Specified" and enter the date (with a relative time).
From the Snapshot, I created a New Workspace which was then populated with previous code.

Hope this helps!

1
jstanley On

I would suggest you revert or demote the bad code that was promoted into the stream (Depending on what version of AccuRev you are using). This would put the stream back into the state it was before the promotion occurred.

Below are some suggested readings on the related topics.

Best way to "un-promote" files in Accurev?

https://community.microfocus.com/borland/managetrack/accurev/w/wiki/26745/purge-revert-and-demote

https://community.microfocus.com/borland/managetrack/accurev/w/accurev_knowledge_base/25951/how-to-revert-changes-in-a-stream

https://community.microfocus.com/borland/managetrack/accurev/w/accurev_knowledge_base/26079/what-is-the-proper-way-to-revert-by-change-package

1
Mike Abusheery On

As an alternative, you could create a time-based stream below the one with the bad code. Set a time basis that predates the bad promote.