how commit files tfs version control, using java sdk, without having create workspace?
having create (and manipulate, destroy) workspace every time want simple tfs version control operation complicated, time consuming , error-prone, rather avoid (it's challenging when arbitrary number of processes may performing different operations on different things @ same time).
i can enumerate , retrieve files fine:
tfsteamprojectcollection tpc = new tfsteamprojectcollection(new uri("http://tfs/"), new defaultntcredentials()); versioncontrolclient versioncontrolclient = tpc.getversioncontrolclient(); item item = versioncontrolclient.getitem("$/project/some/file.txt", latestversionspec.instance, deletedstate.non_deleted, true); versioncontrolclient.downloadfiletostream(new downloadspec(item.getdownloadurl()), outputstream, true);
what reverse? there way push file or changeset tfs programmatically, without having map workspace?
you can't. need create workspace first. batch pending changes , commit them. suppose due fact tfs commit files @ once when submitting multiple changes.
Comments
Post a Comment