This job is used to list all elements not added to tfs(due to tfs) in project.
static void Krishh_projectElementsNotaddedtoTFS(Args _args)
{
Treenode parentNode,childnode;
TreenodeIterator rootiterator;
VersionControl vs;
ProjectNode pln,plnproj;
ProjectListNode list;
;
vs=new VersionControl();
vs.init();
parentNode = infolog.projectRootNode();
list=infolog.projectRootNode().AOTfindChild("Private");
rootiterator=list.AOTiterator();
pln=list.AOTfindChild("Testproject");
plnproj=pln.loadForInspection();
rootiterator=plnproj.AOTiterator();
childnode=rootiterator.next();
while(childnode)
{
if(vs.allowCreate(childnode))
{
info(childnode.AOTname());
}
childnode=rootiterator.next();
}
}
static void Krishh_projectElementsNotaddedtoTFS(Args _args)
{
Treenode parentNode,childnode;
TreenodeIterator rootiterator;
VersionControl vs;
ProjectNode pln,plnproj;
ProjectListNode list;
;
vs=new VersionControl();
vs.init();
parentNode = infolog.projectRootNode();
list=infolog.projectRootNode().AOTfindChild("Private");
rootiterator=list.AOTiterator();
pln=list.AOTfindChild("Testproject");
plnproj=pln.loadForInspection();
rootiterator=plnproj.AOTiterator();
childnode=rootiterator.next();
while(childnode)
{
if(vs.allowCreate(childnode))
{
info(childnode.AOTname());
}
childnode=rootiterator.next();
}
}
No comments:
Post a Comment
Thanks for visiting my blog,
I will reply for your comment within 48 hours.
Thanks,
krishna.