23.04.2014 Views

AccuRev Online Help

AccuRev Online Help

AccuRev Online Help

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>AccuRev</strong> documentation often uses the term active to describe the elements that are members of<br />

the default group.<br />

2. Improving the performance of the non-member search.<br />

To improve performance, timestamp and pathname optimizations enable Update to avoid<br />

examining every file in the workspace tree.<br />

3. Anchor-required workspaces and exclusive file locking.<br />

By default, <strong>AccuRev</strong> allows you to edit any file in a workspace at any time -- it doesn't require<br />

you to perform a "check out" operation on a file before editing it. This provides convenience and<br />

flexibility, but the edited files (with "non-member" status) can abort an Update. You can use the<br />

anchor-required workspace and/or exclusive file locking feature to ensure files never get "nonmember"<br />

status, thus guaranteeing that Update will always proceed. See “File Locking” on<br />

page 255.<br />

4. Determining which elements need to be updated: performance note.<br />

This step is efficient and speedy. Update needs to consider only the elements that were involved in<br />

transactions recorded since the workspace's previous update. Only these transactions can contain<br />

changes that have not yet been incorporated into the workspace.<br />

Transferring Data from the Repository<br />

Update next applies both content changes and namespace changes to elements in the workspace:<br />

• It applies content changes to file elements by copying the backing-stream versions from the<br />

repository to the workspace tree. For (modified)(overlap)-status files, it merges the backingstream<br />

version with the file in the workspace tree.<br />

• It handles namespace changes to file and directory elements by creating, removing, renaming,<br />

and/or moving objects in the workspace tree.<br />

Recording the Update<br />

After it has completed the updating of versions in the workspace, Update changes the values of<br />

two workspace parameters:<br />

• scan threshold: the more recent this value, the more effective the timestamp optimization used<br />

both by Update and by certain File Browser searches.<br />

• update level: after an update, the workspace is "up to date as of transaction N "; N is the<br />

workspace's update level. The higher this value, the fewer transactions your next invocation of<br />

Update will need to examine, in order to determine which elements need to be updated.<br />

When Update does not Work<br />

Sometimes <strong>AccuRev</strong> is not able to complete an Update operation, typically because a file cannot<br />

be overwritten due to permissions, or because it is open in another application. In this case, you<br />

30 <strong>AccuRev</strong> ® On-Line <strong>Help</strong> Guide

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!