This is an archive of the discontinued Mercurial Phabricator instance.

tersestatus: make sure we use os.path.* to split paths (issue5715)
AbandonedPublic

Authored by durin42 on Oct 27 2017, 4:40 PM.

Details

Reviewers
yuja
pulkit
Group Reviewers
hg-reviewers
Summary

Not using os.path.* functions can cause problem on windows which led to failure
of test-status-terse.t on windows. This patch make sure we use them.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

pulkit created this revision.Oct 27 2017, 4:40 PM

@mharbison72 I didn't has access to windows machine but I think this should solve the issue, apart from test failure related to different separator which we can glob out. Please test it and let me know whether it works or not.

No joy. But it looks like you can use '/' unconditionally, because scmutil.status paths are in repo normalized format. I'll send a patch.

I think there's something else goofy here:

$ ../hg st -c --terse c ../mercurial/help/
C ..\mercurial\

I'd expect the output to be:

$ ../hg st -c --terse c ../mercurial/help/
C ..\mercurial\help

I can write up another bug if you don't have any ideas off the top of your head.

yuja requested changes to this revision.Oct 28 2017, 3:59 AM
yuja added a subscriber: yuja.

New patch landed.

This revision now requires changes to proceed.Oct 28 2017, 3:59 AM
durin42 commandeered this revision.
durin42 added a subscriber: durin42.

Obsoleted by 362096 as far as I can tell.

durin42 abandoned this revision.Oct 30 2017, 5:02 PM