Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 6068640302497792: Issue 2311 - Track remote Git branches when required (Closed)

Created:
April 30, 2015, 5:30 p.m. by kzar
Modified:
May 7, 2015, 11:21 a.m.
Visibility:
Public.

Description

Issue 2311 - Track remote Git branches when required

Patch Set 1 #

Total comments: 12

Patch Set 2 : Make Git.pull track all remote branches #

Patch Set 3 : Rebased #

Total comments: 4

Patch Set 4 : Track "master" branch too #

Patch Set 5 : Only need to fetch remote branches from origin #

Total comments: 11

Patch Set 6 : Addressed feedback #

Total comments: 4

Patch Set 7 : Improved comment #

Total comments: 3

Patch Set 8 : Simplified regexp by not avoiding HEAD #

Total comments: 3

Patch Set 9 : Simplify regexp some more #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -0 lines) Patch
M ensure_dependencies.py View 1 2 3 4 5 6 7 8 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 30
kzar
Patch Set 1
April 30, 2015, 5:33 p.m. (2015-04-30 17:33:18 UTC) #1
Sebastian Noack
http://codereview.adblockplus.org/6068640302497792/diff/5629499534213120/ensure_dependencies.py File ensure_dependencies.py (right): http://codereview.adblockplus.org/6068640302497792/diff/5629499534213120/ensure_dependencies.py#newcode101 ensure_dependencies.py:101: subprocess.check_call(["git", "checkout", rev], cwd=repo) Wasn't the problem you try ...
April 30, 2015, 5:54 p.m. (2015-04-30 17:54:33 UTC) #2
kzar
http://codereview.adblockplus.org/6068640302497792/diff/5629499534213120/ensure_dependencies.py File ensure_dependencies.py (right): http://codereview.adblockplus.org/6068640302497792/diff/5629499534213120/ensure_dependencies.py#newcode101 ensure_dependencies.py:101: subprocess.check_call(["git", "checkout", rev], cwd=repo) On 2015/04/30 17:54:34, Sebastian Noack ...
April 30, 2015, 7:31 p.m. (2015-04-30 19:31:45 UTC) #3
Sebastian Noack
http://codereview.adblockplus.org/6068640302497792/diff/5629499534213120/ensure_dependencies.py File ensure_dependencies.py (right): http://codereview.adblockplus.org/6068640302497792/diff/5629499534213120/ensure_dependencies.py#newcode101 ensure_dependencies.py:101: subprocess.check_call(["git", "checkout", rev], cwd=repo) On 2015/04/30 19:31:46, kzar wrote: ...
April 30, 2015, 8:53 p.m. (2015-04-30 20:53:57 UTC) #4
kzar
http://codereview.adblockplus.org/6068640302497792/diff/5629499534213120/ensure_dependencies.py File ensure_dependencies.py (right): http://codereview.adblockplus.org/6068640302497792/diff/5629499534213120/ensure_dependencies.py#newcode101 ensure_dependencies.py:101: subprocess.check_call(["git", "checkout", rev], cwd=repo) On 2015/04/30 20:53:57, Sebastian Noack ...
May 1, 2015, 9:43 a.m. (2015-05-01 09:43:54 UTC) #5
Sebastian Noack
http://codereview.adblockplus.org/6068640302497792/diff/5629499534213120/ensure_dependencies.py File ensure_dependencies.py (right): http://codereview.adblockplus.org/6068640302497792/diff/5629499534213120/ensure_dependencies.py#newcode101 ensure_dependencies.py:101: subprocess.check_call(["git", "checkout", rev], cwd=repo) On 2015/05/01 09:43:55, kzar wrote: ...
May 4, 2015, 11:44 a.m. (2015-05-04 11:44:31 UTC) #6
kzar
http://codereview.adblockplus.org/6068640302497792/diff/5629499534213120/ensure_dependencies.py File ensure_dependencies.py (right): http://codereview.adblockplus.org/6068640302497792/diff/5629499534213120/ensure_dependencies.py#newcode101 ensure_dependencies.py:101: subprocess.check_call(["git", "checkout", rev], cwd=repo) On 2015/05/04 11:44:31, Sebastian Noack ...
May 5, 2015, 1:33 p.m. (2015-05-05 13:33:55 UTC) #7
Sebastian Noack
http://codereview.adblockplus.org/6068640302497792/diff/5629499534213120/ensure_dependencies.py File ensure_dependencies.py (right): http://codereview.adblockplus.org/6068640302497792/diff/5629499534213120/ensure_dependencies.py#newcode101 ensure_dependencies.py:101: subprocess.check_call(["git", "checkout", rev], cwd=repo) Ok, got it. But this ...
May 5, 2015, 3:08 p.m. (2015-05-05 15:08:54 UTC) #8
kzar
http://codereview.adblockplus.org/6068640302497792/diff/5629499534213120/ensure_dependencies.py File ensure_dependencies.py (right): http://codereview.adblockplus.org/6068640302497792/diff/5629499534213120/ensure_dependencies.py#newcode101 ensure_dependencies.py:101: subprocess.check_call(["git", "checkout", rev], cwd=repo) On 2015/05/05 15:08:54, Sebastian Noack ...
May 5, 2015, 3:26 p.m. (2015-05-05 15:26:52 UTC) #9
Sebastian Noack
http://codereview.adblockplus.org/6068640302497792/diff/5629499534213120/ensure_dependencies.py File ensure_dependencies.py (right): http://codereview.adblockplus.org/6068640302497792/diff/5629499534213120/ensure_dependencies.py#newcode101 ensure_dependencies.py:101: subprocess.check_call(["git", "checkout", rev], cwd=repo) On 2015/05/05 15:26:52, kzar wrote: ...
May 5, 2015, 4 p.m. (2015-05-05 16:00:54 UTC) #10
Sebastian Noack
http://codereview.adblockplus.org/6068640302497792/diff/5629499534213120/ensure_dependencies.py File ensure_dependencies.py (right): http://codereview.adblockplus.org/6068640302497792/diff/5629499534213120/ensure_dependencies.py#newcode101 ensure_dependencies.py:101: subprocess.check_call(["git", "checkout", rev], cwd=repo) But either way, this will ...
May 5, 2015, 4:59 p.m. (2015-05-05 16:59:01 UTC) #11
Sebastian Noack
http://codereview.adblockplus.org/6068640302497792/diff/5629499534213120/ensure_dependencies.py File ensure_dependencies.py (right): http://codereview.adblockplus.org/6068640302497792/diff/5629499534213120/ensure_dependencies.py#newcode101 ensure_dependencies.py:101: subprocess.check_call(["git", "checkout", rev], cwd=repo) After thinking a little more ...
May 5, 2015, 5:35 p.m. (2015-05-05 17:35:05 UTC) #12
kzar
Patch Set 2 : Make Git.pull track all remote branches http://codereview.adblockplus.org/6068640302497792/diff/5629499534213120/ensure_dependencies.py File ensure_dependencies.py (right): http://codereview.adblockplus.org/6068640302497792/diff/5629499534213120/ensure_dependencies.py#newcode101 ...
May 6, 2015, 11:04 a.m. (2015-05-06 11:04:44 UTC) #13
kzar
Patch Set 3 : Rebased
May 6, 2015, 11:11 a.m. (2015-05-06 11:11:22 UTC) #14
Sebastian Noack
http://codereview.adblockplus.org/6068640302497792/diff/5673385510043648/ensure_dependencies.py File ensure_dependencies.py (right): http://codereview.adblockplus.org/6068640302497792/diff/5673385510043648/ensure_dependencies.py#newcode104 ensure_dependencies.py:104: for match in re.finditer(r"origin/(\S+)", remotes): I think we should ...
May 6, 2015, 11:23 a.m. (2015-05-06 11:23:09 UTC) #15
kzar
Patch Set 4 : Track "master" branch too http://codereview.adblockplus.org/6068640302497792/diff/5673385510043648/ensure_dependencies.py File ensure_dependencies.py (right): http://codereview.adblockplus.org/6068640302497792/diff/5673385510043648/ensure_dependencies.py#newcode104 ensure_dependencies.py:104: for ...
May 6, 2015, 11:49 a.m. (2015-05-06 11:49:14 UTC) #16
kzar
Patch Set 5 : Only need to fetch remote branches from origin
May 6, 2015, 11:59 a.m. (2015-05-06 11:59:53 UTC) #17
Sebastian Noack
http://codereview.adblockplus.org/6068640302497792/diff/5661458385862656/ensure_dependencies.py File ensure_dependencies.py (left): http://codereview.adblockplus.org/6068640302497792/diff/5661458385862656/ensure_dependencies.py#oldcode100 ensure_dependencies.py:100: subprocess.check_call(["git", "fetch", "--quiet", "--all", "--tags"], cwd=repo) Please specify "origin" ...
May 6, 2015, 12:18 p.m. (2015-05-06 12:18:54 UTC) #18
Sebastian Noack
http://codereview.adblockplus.org/6068640302497792/diff/5661458385862656/ensure_dependencies.py File ensure_dependencies.py (right): http://codereview.adblockplus.org/6068640302497792/diff/5661458385862656/ensure_dependencies.py#newcode104 ensure_dependencies.py:104: for match in re.finditer(r"origin/(\S+)", remotes): On 2015/05/06 12:18:55, Sebastian ...
May 6, 2015, 12:45 p.m. (2015-05-06 12:45:00 UTC) #19
kzar
Patch Set 6 : Addressed feedback http://codereview.adblockplus.org/6068640302497792/diff/5661458385862656/ensure_dependencies.py File ensure_dependencies.py (left): http://codereview.adblockplus.org/6068640302497792/diff/5661458385862656/ensure_dependencies.py#oldcode100 ensure_dependencies.py:100: subprocess.check_call(["git", "fetch", "--quiet", ...
May 6, 2015, 12:51 p.m. (2015-05-06 12:51:04 UTC) #20
Sebastian Noack
http://codereview.adblockplus.org/6068640302497792/diff/5665117697998848/ensure_dependencies.py File ensure_dependencies.py (right): http://codereview.adblockplus.org/6068640302497792/diff/5665117697998848/ensure_dependencies.py#newcode100 ensure_dependencies.py:100: # First perform a fetch so we have a ...
May 6, 2015, 1:24 p.m. (2015-05-06 13:24:08 UTC) #21
kzar
Patch Set 7 : Improved comment http://codereview.adblockplus.org/6068640302497792/diff/5665117697998848/ensure_dependencies.py File ensure_dependencies.py (right): http://codereview.adblockplus.org/6068640302497792/diff/5665117697998848/ensure_dependencies.py#newcode100 ensure_dependencies.py:100: # First perform ...
May 6, 2015, 1:32 p.m. (2015-05-06 13:32:28 UTC) #22
Sebastian Noack
LGTM
May 6, 2015, 1:43 p.m. (2015-05-06 13:43:23 UTC) #23
Wladimir Palant
http://codereview.adblockplus.org/6068640302497792/diff/5723151296102400/ensure_dependencies.py File ensure_dependencies.py (right): http://codereview.adblockplus.org/6068640302497792/diff/5723151296102400/ensure_dependencies.py#newcode105 ensure_dependencies.py:105: for match in re.finditer(r"(?:^|\s)(origin/((?!HEAD(?:$|\s))\S+))", remotes): Is HEAD really worth ...
May 6, 2015, 2:27 p.m. (2015-05-06 14:27:40 UTC) #24
Sebastian Noack
http://codereview.adblockplus.org/6068640302497792/diff/5723151296102400/ensure_dependencies.py File ensure_dependencies.py (right): http://codereview.adblockplus.org/6068640302497792/diff/5723151296102400/ensure_dependencies.py#newcode105 ensure_dependencies.py:105: for match in re.finditer(r"(?:^|\s)(origin/((?!HEAD(?:$|\s))\S+))", remotes): On 2015/05/06 14:27:41, Wladimir ...
May 6, 2015, 2:31 p.m. (2015-05-06 14:31:48 UTC) #25
kzar
Patch Set 8 : Simplified regexp by not avoiding HEAD http://codereview.adblockplus.org/6068640302497792/diff/5723151296102400/ensure_dependencies.py File ensure_dependencies.py (right): http://codereview.adblockplus.org/6068640302497792/diff/5723151296102400/ensure_dependencies.py#newcode105 ...
May 6, 2015, 2:37 p.m. (2015-05-06 14:37:31 UTC) #26
Sebastian Noack
http://codereview.adblockplus.org/6068640302497792/diff/5150194068881408/ensure_dependencies.py File ensure_dependencies.py (right): http://codereview.adblockplus.org/6068640302497792/diff/5150194068881408/ensure_dependencies.py#newcode105 ensure_dependencies.py:105: for match in re.finditer(r"(?:^|\s)(origin/(\S+))", remotes): I just realized that ...
May 6, 2015, 2:45 p.m. (2015-05-06 14:45:11 UTC) #27
kzar
Patch Set 9 : Simplify regexp some more http://codereview.adblockplus.org/6068640302497792/diff/5150194068881408/ensure_dependencies.py File ensure_dependencies.py (right): http://codereview.adblockplus.org/6068640302497792/diff/5150194068881408/ensure_dependencies.py#newcode105 ensure_dependencies.py:105: for ...
May 6, 2015, 3:11 p.m. (2015-05-06 15:11:13 UTC) #28
Sebastian Noack
http://codereview.adblockplus.org/6068640302497792/diff/5150194068881408/ensure_dependencies.py File ensure_dependencies.py (right): http://codereview.adblockplus.org/6068640302497792/diff/5150194068881408/ensure_dependencies.py#newcode105 ensure_dependencies.py:105: for match in re.finditer(r"(?:^|\s)(origin/(\S+))", remotes): On 2015/05/06 15:11:13, kzar ...
May 6, 2015, 3:17 p.m. (2015-05-06 15:17:56 UTC) #29
Wladimir Palant
May 6, 2015, 4:44 p.m. (2015-05-06 16:44:50 UTC) #30
LGTM

Powered by Google App Engine
This is Rietveld