Skip to content

Commit 2932657

Browse files
author
Lukasz Stempniewicz
committed
Merge branch 'dev' of https://github.com/Azure/azure-powershell into dev
2 parents b52f0d6 + fe09e68 commit 2932657

File tree

300 files changed

+208728
-73129
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

300 files changed

+208728
-73129
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ For detail descriptions and examples of the cmdlets, type
7272
You can also find the standalone installers for all the versions at [Downloads](https://github.com/Azure/azure-powershell/releases)
7373

7474
### PowerShell Gallery
75-
1. Install [Windows Management Framework 5 with PowerShellGet cmdlets](https://www.powershellgallery.com/GettingStarted?section=Get%20Started)
75+
1. Install [Windows Management Framework 5 with PowerShellGet cmdlets](https://msdn.microsoft.com/en-us/powershell/gallery/psgallery/psgallery_gettingstarted)
7676
2. In an elevated PowerShell session, run ```Install-Module AzureRM```
7777
3. Run ```Install-AzureRm```
7878
4. To install RDFE cmdlets, run ```Install-Module Azure```

documentation/cleaning-up-commits.md

Lines changed: 33 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,28 @@ It can be difficult to follow the changes in a pull request when the number of c
1717

1818
### Rebasing
1919

20-
Sometimes a pull request can be based on a much earlier commit in the branch that you are trying to merge into it, causing a large amount of commits and file changes to litter the pull request. In this case, it would be better to **rebase** (move branches around by changing the commit that they are based on). After rebasing, you will want to close the pull request and open a new one, which will now have fewer commits.
20+
Sometimes a pull request can be based on a much earlier commit in the branch that you are trying to merge into it, causing a large amount of commits and file changes to litter the pull request. In this case, it would be better to **rebase** (move branches around by changing the commit that they are based on).
2121

22-
For example, if you're working from the branch **feature** and are trying to rebase with **master**, you may run one of the following commands:
23-
> `git rebase master`
24-
> `git rebase master feature`
22+
For example, if you're working from the branch **feature** and are trying to rebase with **dev**, you'll first want to pull the latest changes from **dev**:
2523

26-
You can also rebase with the following command:
27-
> `git pull --rebase`
24+
```
25+
git pull upstream dev
26+
```
2827

29-
A normal `git pull` is equivalent to `git fetch` followed by `git merge FETCH_HEAD`, but when you run `git pull --rebase`, it runs `git rebase` instead of `git merge`.
28+
Next, you'll want to "uncommit" all of the changes in **feature** that differ from **dev**:
29+
30+
```
31+
git reset --soft upstream/dev
32+
```
33+
34+
Finally, make a small number of commits with the changes you have made and push them to your fork:
35+
36+
```
37+
< commit changes >
38+
git push origin feature -f
39+
```
40+
41+
**Note**: the `-f` must be included when pushing to your fork for the rebase to be successful
3042

3143
For more information on rebasing, click [here](https://git-scm.com/docs/git-rebase).
3244

@@ -35,7 +47,10 @@ For more information on rebasing, click [here](https://git-scm.com/docs/git-reba
3547
When your pull request has a group of commits that can be condensed into one, logical commit, use **squashing**. This will clean up the number of commits your pull request has while also grouping together common commits.
3648

3749
For example, if you wanted to squash the last three commits into one, you may run the following command:
38-
> `git rebase -i HEAD~3`
50+
51+
```
52+
git rebase -i HEAD~3
53+
```
3954

4055
This will bring up an editor showing your last three commits. Pick a commit to keep (as the message), and squash the other two into it.
4156

@@ -46,13 +61,19 @@ For more information on squashing, click [here](https://git-scm.com/book/en/v2/G
4661
If you want to merge specific commits from another branch into the current one you are working from, use **cherry-picking**.
4762

4863
For example, if you're working on the **master** branch and want to pull commit X (the commit-hash) from the **feature** branch, you may run the following commands:
49-
> `git checkout master`
50-
> `git cherry-pick X -n`
64+
65+
```
66+
git checkout master
67+
git cherry-pick X -n
68+
```
5169

5270
The `-n`, or `--no-commit`, is recommended for cherry-picking because it won't automatically create a commit for the cherry-picked change; this will allow you to view the changes first and make sure that you want to add all everything from the cherry-picked commit.
5371

5472
Now, if you want to cherry-pick a range of commits, say X through Y, from the **feature** branch, you may run the following commands:
55-
> `git checkout -b temp-branch X`
56-
> `git rebase --onto master Y^`
73+
74+
```
75+
git checkout -b temp-branch X
76+
git rebase --onto master Y^
77+
```
5778

5879
For more information on cherry-picking, click [here](https://git-scm.com/docs/git-cherry-pick).

setup/azurecmdfiles.wxi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2331,6 +2331,9 @@
23312331
<Component Id="cmp902DC2364C6FF451A60B4D115B5DC7A9" Guid="*">
23322332
<File Id="filDFC93A6AA2A808957B249CC88C7D6EE5" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.RecoveryServices.Backup\Microsoft.Rest.ClientRuntime.Azure.Authentication.dll" />
23332333
</Component>
2334+
<Component Id="cmpDB3F89FCB6F69647096085E3C07D2EA7" Guid="*">
2335+
<File Id="fil981731C42616352E119DFCB2CDFCF8BB" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.RecoveryServices.Backup\Microsoft.Rest.ClientRuntime.Azure.dll" />
2336+
</Component>
23342337
<Component Id="cmpF8AEF0C5D785D40AEC8F1BF4ACE4E939" Guid="*">
23352338
<File Id="filA708CDDEB8C8A8363E22F4C83953E14E" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.RecoveryServices.Backup\Microsoft.Rest.ClientRuntime.dll" />
23362339
</Component>
@@ -6277,6 +6280,7 @@
62776280
<ComponentRef Id="cmp13B3F08D31DD4410B1934B82517CAC9A" />
62786281
<ComponentRef Id="cmpA2EFAF047A9595A3CA7DFC6031140F27" />
62796282
<ComponentRef Id="cmp902DC2364C6FF451A60B4D115B5DC7A9" />
6283+
<ComponentRef Id="cmpDB3F89FCB6F69647096085E3C07D2EA7" />
62806284
<ComponentRef Id="cmpF8AEF0C5D785D40AEC8F1BF4ACE4E939" />
62816285
<ComponentRef Id="cmp0FB4C1F5BB0FB399774156C4B56696B8" />
62826286
<ComponentRef Id="cmp7B84FC694FB5281CF08E6F1B41D07E12" />

src/Common/Commands.Common/Commands.Common.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,4 +183,4 @@
183183
</ProjectReference>
184184
</ItemGroup>
185185
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
186-
</Project>
186+
</Project>

src/ResourceManager/AzureBatch/Commands.Batch.Test/BatchTestHelpers.cs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,27 @@ public static RequestInterceptor CreateFakeGetFileAndPropertiesFromComputeNodeRe
618618
return response;
619619
}
620620

621+
/// <summary>
622+
/// Builds a JobListFromJobScheduleResponse object
623+
/// </summary>
624+
public static AzureOperationResponse<IPage<ProxyModels.CloudJob>, ProxyModels.JobListFromJobScheduleHeaders> CreateJobListFromJobScheduleResponse(IEnumerable<string> jobIds)
625+
{
626+
var response = new AzureOperationResponse<IPage<ProxyModels.CloudJob>, ProxyModels.JobListFromJobScheduleHeaders>();
627+
response.Response = new HttpResponseMessage(HttpStatusCode.OK);
628+
629+
List<ProxyModels.CloudJob> jobs = new List<ProxyModels.CloudJob>();
630+
631+
foreach (string id in jobIds)
632+
{
633+
ProxyModels.CloudJob job = new ProxyModels.CloudJob(id: id);
634+
jobs.Add(job);
635+
}
636+
637+
response.Body = new MockPagedEnumerable<ProxyModels.CloudJob>(jobs);
638+
639+
return response;
640+
}
641+
621642
/// <summary>
622643
/// Builds a CloudTaskGetResponse object
623644
/// </summary>

0 commit comments

Comments
 (0)