Auto-Commit does not work?

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
vrapp
Posts: 121
Joined: Tue Apr 06, 2004 12:34 pm
Contact:

Auto-Commit does not work?

Post by vrapp » Tue Apr 12, 2005 12:28 pm

In Options/Check In, I have "auto-commit after each operation" on. In Vault client, I delete a folder. Then in Pending Change Set I see Delete Folder operation as pending, and I can right-click it and "commit selected operations". Is that right?
Vadim Rapp

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Tue Apr 12, 2005 1:23 pm

This should work, unless something is preventing the deletion, such as a checked out file in the folder. If the delete doesn't work, check the messages tab.
Linda Bauer
SourceGear
Technical Support Manager

vrapp
Posts: 121
Joined: Tue Apr 06, 2004 12:34 pm
Contact:

Post by vrapp » Tue Apr 12, 2005 1:30 pm

It does work; I can't delete the folder unless there are no checked out items. When I delete it, it disappears from the tree. My concern is why it still shows up in the pending change set, and what does it mean that it is not commited.
Vadim Rapp

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Tue Apr 12, 2005 1:38 pm

Check under Tools->Options->Concurrent Development Style to see if Auto-Commit is checked there, too.

If it's checked in both places, but still isn't automatic, then what version of Vault are you using?

Is there anything in the Messages tab that might indicate why the commit didn't happen?

Do file operations automatically commit and not folder operations?
Linda Bauer
SourceGear
Technical Support Manager

vrapp
Posts: 121
Joined: Tue Apr 06, 2004 12:34 pm
Contact:

Post by vrapp » Wed Apr 13, 2005 7:35 am

lbauer wrote:Check under Tools->Options->Concurrent Development Style to see if Auto-Commit is checked there, too.
Yes, it is.
If it's checked in both places, but still isn't automatic, then what version of Vault are you using?

3.0.6
Is there anything in the Messages tab that might indicate why the commit didn't happen?
when I start Vault Client (after I deleted the folder X earler and closed Vault), I see the following:

X does not appear in the project tree
The lower part has this on the "pending change" tab:

Item=$/X , type = "delete folder", repository path = $/X

The tab "messages" is empty

The shortcut menu opened on the right-click on the item in pending change set list has "commit selected operations", but it does not have "undo selected operation", for which there's an icon above the tab (design inconsistency?). When I pressed that icon, the item disappeared from the pending change list, but did not appear in the project tree above, i.e. it was not restored, and no error message was given.
Do file operations automatically commit and not folder operations?
The list "pending change" also has many file operations with types "modified" and "unmodified". How to find out if they commit or not? All check-ins and check-outs always work without a problem. What does it mean to commit, what is supposed to happen?
Vadim Rapp

Guest

Post by Guest » Wed Apr 13, 2005 9:08 am

Items appear in the pending change set because they are "pending" -- they haven't been committed to the repository yet. You might think of a commit as a checkin of a change to the repository.

If you use the option to "Auto-commit" you may still have items in the pending change set.

When you checkout files, they appear in the pending changed set as "Unmodified." If you checkout a file and edit it (but don't check it in), it now appears "modified" in the pending change set. When you check in the file, it will no longer appear in the pending change set.

If a commit fails for some reason, there will be a message in the Messages tab that explains why.

For instance, when you try to delete folder that contains checked out files, this will fail. The item

Item=$/X , type = "delete folder", repository path = $/X

will remain in the pending change set.

If you checkin all the files in the folder and try to delete the folder again, this time the operation will succeed and be automatically committed. However the previous failed delete operation will still be in the pending change set. You would have to use "undo" (arrow icon) to eliminate it from the pending change set.

You can avoid "orphaned" items in the pending change set by correcting the problem that prevents the commit, and then trying to re-commit the operation from the pending change set, rather than doing the operation again.

For instance, if a folder delete fails, you would checkin any files in that folder, then commit the folder delete item in the pending change set, rather than doing another folder delete from the folder tree.

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Wed Apr 13, 2005 9:17 am

Sorry, I wasn't logged in. The previous post was mine.
Linda Bauer
SourceGear
Technical Support Manager

Post Reply