Auto Formatting merge message in TortoiseSVN - tortoisesvn

I try to configure svn properties of my project to make TortoiseSVN generate merge message logs automatically.
There's a manual on TSVN site and a question at stackoverflow.
So I edited properties of /trunk folder and set my custom tsvn:mergelogtemplatetitle and tsvn:mergelogtemplatereversetitle properties there.
But after that nothing changed. I tried to merge some commits from /branches/mybranch to /trunk. But after merging in commit window I pressed "Recent Messages" button and there're auto-generated commit messages in default format. Not in my.
What do I do wrong?
And some more questions.
How to open a window like in Figure 4.48 at TSVN manual?
Can I change format of log message in form with selecting revisions to merge?

Related

Where can I see the commit history on the gitHub website?

I am looking for the history button on gitHub for all the past git commits.
These are buttons on the gitHub page.
Code
Issues
Pull requests
Actions
Projects
Wiki
Security
Insights
Settings
1 branch
0 tags
On the repository page there is commits button below the Big Green Pull-Down Code button to see all commits. Clicking on it will open all the history
On the repository page there is a button labeled with three dots that has a pull-down menu. One of the options on this pull-down menu is "Commits":
[Note: this should just be a correction to the answer by #Hamza Mughal, but when I tried to edit that answer I get an error that the "Edit queue is full." If someone knows how to paste my picture into the original answer, since it's just an update, that would be great.]

IntelliJ: Lost files after "Update project" and can't find them on Local history

I have a nodjs project and i use IntelliJ to run it. Lately the project structure is not appearing as it used to, as if the project was not compiling. So, while searching for answeres, I clicked on the "Update project" button on the right top, but quickly realised it was going to update based on what was on the remote repo.
I've been developing for a few weeks without a single commit because my company asked me to (don't ask why), and the code had sensible data so I didn't have a backup.
After clicking that button, IntelliJ asked me if I wanted to merge my project files with the remote ones, I just pressed Cancel, and that was enough for IntelliJ to merge my entire project and lose a bunch of files I've been working with.
Suprisingly, they're not even on the Local History list. Even though it says "279 files" there I can't click or find any of the files.
Despite not being able to find them, I went to the changes.storageData file under IntelliJIdea2017.2\system\LocalHistory, searched for the names of the files I'm looking for, and found them all there, which makes me think there's still a way of finding them.
So, does anyone know where I can find deleted files after pressing the git "Update project" button on IntelliJ when they're not on the Local History file list?
Thanks a lot in advance!
As I understand, the files were not committed, so Update could not delete them, because git merge/rebase do not start when there are uncommitted changes (see e.g. this question)
They were probably automatically stashed before the update, and not unstashed because the update was actually canceled.
So the first place to check is git stash VCS - Git - Unstash... or Shelf (if Update project is configured to use Shelf)

How to link a work load item with a commited change?

I am working with Git for Visual Studio Online
I added a Product Back Log item.
I added some files & commited the change. (It did not linked for some reason)
I made some more commits to the project & synced.
My 1st change was not linked with the Back log item & it still shows
as pending under tasks.
How do I link the work item with my first commit?
Normally to link a commit to a work item you just reference the work item number in the commit message, for example git commit -am "related to PBI #1234". If it didn't work, you may have made a typo in the commit message.
Now, given you have already pushed your changes, amending your earlier comment to change the message would require an interactive rebase and pushing the result of that would be a bad thing (I'm assuming the repo is shared).
What you can do instead is go to the work item and under the Links tab, click the Link To... icon to add a new link. Select 'Commit' and then enter the SHA1 of the commit you want to link to.
Don't worry if you don't know the SHA1. Just use the ... button to browse your history and select the commit you're interested in.

Create a patch with Tortoise SVN

I'm new on Tortoise SVN so maybe this question could seem silly...
Is there a way to create a "real" patch with Tortoise SVN?
I mean, I'd wish to export only latest files, so I can upload only them, instead of uploading everything every time.
How can I do that?
In TortoiseSVN, follow these steps
Context menu -> Show log
Select 2 revisions (using Ctrl+Click)
Right click -> Compare revisions
TortoiseSVN will display all related files for these 2 revisions
Select the files you want, right click -> Export selection to
To create a patch file, right-click on the versioned folder, go the TortoiseSVN context menu and select "Create patch"
ok, i found how can i do that:
http://www.electrictoolbox.com/subversion-export-changed-files-cli/

How do I create a patch from diff between revisions using TortoiseSVN?

I'm working on a project where Subversion is used to maintain version control. I use TortoiseSVN to access the project repository.
Some changes were made between two revisions on a project (let's call them rev1 and rev2), and I want to be able to apply these changes to a working copy somewhere that temporarily does not have access to the repository.
I right-clicked on a project folder, clicked 'SVN show log', selected the two revisions and selected 'Show changes as unified diff'.
This causes a window to be shown, displaying output that very much looks like a patch file that I could save. Unfortunately, I find that there is no option in the window that lets me save this as a patch file.
How can I create the patch file?
The next version of TortoiseSVN (1.7.x) will have that save option. In the meantime, you can configure a plain text editor as your unified diff viewer:
Settings dialog->External Programs->Unified Diff Viewer
There you could, for example, specify notepad.exe as your diff viewer.
One way to achieve you goal is to right click on the revision in the TortoiseSVN log and choose "Merge revision to...". Then you select you local working project and click OK.

Resources