|
|
Created:
5 years, 2 months ago by scottmg Modified:
5 years, 2 months ago CC:
chromium-reviews, dpranke+depot_tools_chromium.org, iannucci+depot_tools_chromium.org, Primiano Tucci (use gerrit) Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@master Target Ref:
refs/heads/master Project:
depot_tools Visibility:
Public. |
DescriptionAttempt at making git-drover work on Windows
BUG=404755
R=sammc@chromium.org
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=297055
Patch Set 1 #
Total comments: 2
Patch Set 2 : don't monkey patch #
Messages
Total messages: 21 (7 generated)
scottmg@chromium.org changed reviewers: + sammc@chromium.org
FWIW, I needed to merge a change to M47 today, so I tested this inside msysgit bash, and it seemed to work correctly.
iannucci@chromium.org changed reviewers: + iannucci@chromium.org
lgtm
https://codereview.chromium.org/1387223002/diff/1/git_drover.py File git_drover.py (right): https://codereview.chromium.org/1387223002/diff/1/git_drover.py#newcode39 git_drover.py:39: os.symlink = emulate_symlink_windows Though I'm not totally sold on adding this back into os Maybe do if 'nt': mk_symlink = shell to mklink else: mk_symlink = os.symlink ?
https://codereview.chromium.org/1387223002/diff/1/git_drover.py File git_drover.py (right): https://codereview.chromium.org/1387223002/diff/1/git_drover.py#newcode39 git_drover.py:39: os.symlink = emulate_symlink_windows On 2015/10/07 22:58:26, iannucci wrote: > Though I'm not totally sold on adding this back into os > > Maybe do > > if 'nt': > mk_symlink = shell to mklink > else: > mk_symlink = os.symlink > > ? It sort of has to be os.symlink, or else various code in git_common.py code needs to be changed. I didn't really digest Primiano's message https://groups.google.com/a/chromium.org/d/msg/chromium-dev/uVQt89p9ZY0/NZI_6..., but it sounds like there's a better way than symlinks now anyway? So maybe we should do this for now and then replace the symlink with alternates later.
The CQ bit was checked by scottmg@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1387223002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1387223002/1
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
I guess it's not so bad. Updated to not monkeypatch 'os'.
lgtm I think this shouldn't work, since some of the symlinks are to files, but msys seems happy to follow junctions to files so it ends up working.
On 2015/10/07 23:29:55, Sam McNally wrote: > lgtm > > I think this shouldn't work, since some of the symlinks are to files, but msys > seems happy to follow junctions to files so it ends up working. My pseudo-symlink copies if it's a file rather than a dir. Is that what you mean?
Anyway, I guess I'll land and we can distribute the decision on its workingness or failingness.
The CQ bit was checked by scottmg@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from iannucci@chromium.org Link to the patchset: https://codereview.chromium.org/1387223002/#ps20001 (title: "don't monkey patch")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1387223002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1387223002/20001
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as http://src.chromium.org/viewvc/chrome?view=rev&revision=297055
Message was sent while issue was closed.
On 2015/10/07 23:30:37, scottmg wrote: > On 2015/10/07 23:29:55, Sam McNally wrote: > > lgtm > > > > I think this shouldn't work, since some of the symlinks are to files, but msys > > seems happy to follow junctions to files so it ends up working. > > My pseudo-symlink copies if it's a file rather than a dir. Is that what you > mean? Sorry, I misread your change; please disregard.
Message was sent while issue was closed.
mzlan5251@gmail.com changed reviewers: + mzlan5251@gmail.com
Message was sent while issue was closed.
lgtm If lny |