Actually what I want is like this on Git command answer.
But I need to this TFVC Command.
I have project on TFS Local Server, and I'm using Java Process Builder and I need to command for get last committer information with specific line number on TFVC.
I looked at this site but could not find enough information.
Related
Is it possible to provide a user with permissions to view the history of a project without giving that user access to the code?
Just as comment mentioned, there is no way to do this in Azure DevOps.
Git uses the parent reference information stored in each commit to manage a full history of your development. Review this commit history could find out when file changes were made and determine differences between versions of your code.
If someone could see repo history, they could also see source code.
As a workaround, you could try to export the history info for commit then give them to the QA user which without access to your code.
launch MS-DOS command line in the .git subdirectory for the solution
issue command: git log --pretty=format:%h,%an,%aD,%s > ./GitLog.csv
wait for GitLog.csv file to appear and open in spreadsheet program
Format option meanings:
%h = commit hash
%an = Author Name
%aD = commit date
%s = subject (comment of commit)
More details please take a look at this question: Export list of all commit details in VSTS / Azure DevOps into file?
I have been forced to use other apps, and the command line since Github for Windows is not allowing me to commit changes. I would like to understand what's the problem, but I simply get a prompt with this message:
Commit failed
Failed to create new commit
Then, it gives me the option of go to the Git Shell or to cancel. While I am not an expert with the terminal, I am able to make commits when I choose to go to the Git Shell (or to any other application for that matter).
I am using Github 2.0.5 on Windows 7.
After an exchange with the Github for Windows developers, the issue has something to do with Windows inability to work with paths when they're too long. The node_modules folders generated by Node.js is the culprit of this issue in my particular case.
However, the node_modules folders in my repository are gitignored. The fact that even when gitignored they create a problem in Github for Windows means the developers have to address the situation.
I expect a response or a patch from the developers soon. They have been very helpful. In the meantime, I am using SourceTree as my Windows Git GUI.
I have tried running svn log command to list the commits occurred in SVN repository for a day.
But after running the below command in the output, i could see first line was previous day's commit.
Is there any way to get the changes happened in a same day. Any explanation on where i did the mistake?
Command I tried:- svn log <\repo-url> -r {2014-06-03T00:00:00}:{2014-06-03T23:59:59}
result shown as below:-
Maybe you'll try to read SVN Book "Revision Specifiers", "Is Subversion a Day Early?" note at least once?!
Remember that Subversion will find the most recent revision of the repository as of the date you give
I.e when you use date-range in log, first record will be always earlier, than range-start and you have to skip first record
For SVN 1.8+ and reasonable short range you can use --search + --search-and options as additional or main filter
As #LazyBadger has already suggested, you can use --search and --search-and options with Apache Subversion 1.8+ command-line client. These command-line options are described in Subversion 1.8 Release Notes.
GUI clients such as TortoiseSVN provide you with an interface to do such searches / filtering / grouping / etc. See TortoiseSVN example here.
I need static download link for nuget itself (Command line thing) , ideally for nuget source tarball.
The only way I can see to get nuget from source is via git but I can't be sure in git version, I can get git version on some commit but I even want to avoid git requirement so I need to know if there are already some places where I can get it.
The pattern for the download zips is:
http://download-codeplex.sec.s-msft.com/Download/SourceControlFileDownload.ashx?ProjectName=*projectNameHere*&changeSetId=*setIdHere*
So for the current build as of 7/28/2013 11:33 CST the link is
http://download-codeplex.sec.s-msft.com/Download/SourceControlFileDownload.ashx?ProjectName=nuget&changeSetId=2764f6c71ea206a60eb136c27c04005975712c19
You must include the changeset id and there is no automatic way I know of to find the latest id. Getting the id's themselves is easy, just click the History button and the changeset id will be in the address of the changeset you choose.
I am working on setting up a development/deploy cycle for one of our latest projects. Here is what I am trying to do,
Commit the latest code to local "mercurial" clone.
Push it to central repo hosted at "bitbucket"
Open some web based management console (this is the part I need help with) on my server, which is already configured to use the bitbucket repo automatically fetches the latest commits and shows a list.
Choose one of the revisions and perform an update which will effectively update the website.
If there are some issues with the latest revision, go back to previous version using the same web console.
I am using "SourceTree" for step1 and step2 and I want to keep the whole cycle GUI based. Can anyone suggest any tool which I can use for the server side management (step 3,4,5) ?
This is more simple than you'd think:
Clone the website on your server using bitbucket as the source
Write a small web app which calls hg pull -u in the root folder of your website. Mercurial remembers where to pull from, so you won't need anything here.
The second feature can be implemented using hg id -i (see this answer) to get the current revision. Write that to file.
Now you need a web page which lists all the revisions in that file and runs hg up -r <revision> when you click on one of them.
But maybe a better approach would be to push directly to the web server using hg push from your local repo (see here). You can then use a hook to update the files and save the last revision to a file.
Now you'll only need a web service to revert to a former revision.
Team City is a web app which can do that for you.
It is a continuous integration server but can be configured to only publish when you use the application.
There are many continuous integration servers and I imagine that most/all can do what you want so search around if that one doesn't quite fit your needs.