FailDuplicateLabel but label doesn't exist

This forum is now locked, since Gold Support is no longer offered.

Moderator: SourceGear

Locked
Tilman
Posts: 52
Joined: Thu Mar 08, 2007 3:49 am

FailDuplicateLabel but label doesn't exist

Post by Tilman » Tue Jul 24, 2007 8:41 am

Hi,

I'm getting this error message in the log

AddLabel returned: FailDuplicateLabel

when trying to label via CCNet. When I run the command line by hand i get this

C:\Program Files\MSBuild\Red Gate>"C:\Program Files\SourceGear\Vault Client\vault.exe" label "$/Red Gate/Current products/xxx/xxx/Install" 1 39 -host xxx -user xxx -password xxx -repository xxx
<vault>
<error>
$/Red Gate/Current products/xxx/xxx/Install has inherited the label 2 already
</error>
<exception>
System.Exception: $/Red Gate/Current products/xxx/xxx/Install has inherited the label 1 already
at VaultCmdLineClient.VaultCmdLineClient.ProcessCommandLabel(String strReposPath, String labelName, Int64 versionID)
at VaultCmdLineClient.VaultCmdLineClient.ProcessCommand(Args curArg)
at VaultCmdLineClient.VaultCmdLineClient.Main(String[] args)
</exception>
<result success="no" />
</vault>

When I then look at the labels on that folder with the GUI, it says it has none, even when i tick 'show inherited labels'.

On another, similar folder this is working fine.

Any suggestions?

Thanks,

Tilman

Tilman
Posts: 52
Joined: Thu Mar 08, 2007 3:49 am

Post by Tilman » Tue Jul 24, 2007 8:57 am

A colleague has suggested this is because of a shared file in a subfolder which already has said label. Is that the case? is there anything I can do still label that folder?

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Post by jeremy_sg » Tue Jul 24, 2007 9:09 am

Yes, that's the case. The best thing that you could do is to give your labels a more spceific name, so that the labels on one parent wouldn't conflict with the labels from the other parent. Labels with the same name from two different parents are only allowed if they are both referencing the same version of the shared object.

Tilman
Posts: 52
Joined: Thu Mar 08, 2007 3:49 am

Post by Tilman » Tue Jul 24, 2007 9:19 am

Thanks for the quick reply. Sadly CCNet doesn't allow custom labels. We might have to roll our own.

Locked