GitLab diff between commits... how does this work? - gitlab

I need to get a diff between two commits in GitLab. I've read the instructions for doing that, but they aren't consistent with GitLab's diff form.
I have to specify the name of the "to" project (the "from" project is pegged to the current project) and the "from" and "to" commits. But when I select Repository > Compare I get this:
The form prompts me for the name of the "to" project and "from" and "to" branches. There's no place to select the "from" and "to" commits!
Could I have displayed a form that's just for comparing the latest commits of different branches, even though I followed instructions for comparing different commits of the selected branch? I don't think so; the last button is labeled "Swap revisions," not "Swap branches." The form thinks it's inviting me to select two commits, but doesn't let me do it.
I tried entering commit IDs in the "branch" fields. GitLab won't let me. The fields are dropdowns. They let me enter a value, but it's just a filter for a list of branch names; when I enter a commit ID GitLab finds no matching branches and I can't select anything.
How is this supposed to work?

It is a bit confusing, but in the dropdown there is a field that you can use to filter your branch. In that field, you can enter the SHA of the commit, and press enter. In this way, you can compare commits

Related

How do you find who has approved the most merge requests GitLab?

As it says on the tin, is it possible for me to find who has approved the most merge request in Git please? Thanks!
There are two ways, depending on whether you want to know based on a group or a project:
For a group, you select "Analytics > Contribution" and scroll down to "Contributions per Group Member", where you can sort by Approved MR count
For a project, you select "Merge Requests", then click the "Merged" tab and export it to CSV using the button in the upper right. Then you can open the CSV and create a chart using something like excel.

Merging changes from one branch to another

My colleague has changed a bunch of files in a specific branch (let's call it b1). He has shared with me the changelist ID.
I want to copy all those changes to another branch (b2) which is locally copied to my machine as well.
How can I achieve the same using Perforce?
Type this into a command prompt:
p4 integrate b1/...#CHANGE,CHANGE b2/...
p4 resolve
p4 submit
Source: https://www.perforce.com/perforce/doc.current/manuals/cmdref/
make sure both b1 and b2 are defined in your workspace
Right-click on the changelist from the Submitted Changelists view and select "Merge/Integrate using Selected Changelist nnnn"
From the Merge/Integrate view, if you don't already have a defined Branch Map (that's recommended if you will be doing this often), choose "Specify source and target files" and choose b1 as your source and b2 as your target.
Fill out the rest as you prefer and resolve (if necessary)
Details Merging Files Between Codelines

Bugzilla buglist.cgi search by change history gives wrong result

I'm trying to get a csv list of bugs that were assigned to a certain assignee (e.g. newAssignee) within a given time slot in the past (e.g. January 2015), using the following query:
http://mybugzilla/buglist.cgi?chfieldfrom=2015-01-01&chfieldto=2015-01-31&chfieldvalue=newAssignee&chfield=assigned_to&ctype=csv
The result appears to be a list where the assignee changed to the desired value at ANY time, ignoring given chfieldfrom and chfieldto. Also, bugs are listed that have no change in the history within given time at all.
Your link does not work for me .. however here what I would do:
Search By People: flag "the Bug Assignee" and write in the account-name of "newAssignee"
Search By Change History: Enter the time-frame for which you want to search. Dont select any value for the fields "where ANY of the fields:" and "changed to"
Or, if you only want to see the bugs which were newly assigned to "newAssignee" in that time-slot, select "Assigne" in "where ANY of the fields:" and write the account of "newAssignee" into the field "changed to"

autoCrat naming google documents

Can autocrat be set up to use a column heading to name the document when it is merged. I have a form that creates student information and final grades in a spreadsheet and I use autocrat to merge data from the spreadsheet to a google doc., but each document merged has the same name unless I change it in the merge process or after the merge is complete. It seems if we could use <<Student>> in the "File naming convention to use" in the Set merge type step this would solve the problem.
If I got it right, you just have to use the proper tag at the fifth step of autocrat configuration. It'll probably be something like $student.

In SharePoint, how can the "Issue ID" column of an issues list be included in the detail form (DispForm.aspx) and/or alert emails?

We've created a pretty standard issue tracking system based off of SharePoint's template with just a few extra columns. On the list view (AllItems.aspx), the first column is called "Issue ID" and has a number. Our developers and QC use that number in discussions. However, that number doesn't seem to want to show up on the detail form (DispForm.aspx) nor in the alert email.
Can this field be included in at least one of these communication methods? If so, how?
Thank you.
We did something similar and used workflow via SharePoint Designer to copy the ID field into a field called "Issue Number". The workflow gets triggered automatically on Create / Edit (we included edit because the field can be modified by the user on the edit form and if that happens we want the number refreshed with the actual ID).
Before you create the workflow in SharePoint Designer, you need to add a column called "Issue Number" to the list you want to tweak.
List item
Open Sharepoint Designer
List item
Click File New -> Workflow
Give a name for the workflow
a. select the list from the dropdown
b. Uncheck Allow this workflow to be manually started and check automatically start on new and change then press Next
Give the step a name like "Assign Issue Number"
Create a Condition
If Compare a field -> If Issue Number not equals Current_Item:ID
Create an Action
Update List Item -> Set Issue Number to Current_Item:ID
Press Finished and test out by creating a new issue.
*The Issue Number will appear on the form and if you have emails setup to notify on assignment it will appear in the reassigned template.
*It will not appear in the created email confirmation because the workflow gets triggered after that email was executed.
I just added the issue ID using a total of 4 characters. Create a new column, set it to a Calculated column, in the formula type [ID]. Voila! The ID is now in your detail view.
The ID link returned the for me, however, the work around which sufficed for me was to enter 'Created' in the Calculated Column formula and ensure it is set at date and time. That then creates a unique idenity (unless you receive more than 1 list update per minute) than can be viewed in the email alert message

Resources