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

Issue 6304204159188992: Issue 1992 - createNightlies.py incorrectly determines repository name if repository path ends with… (Closed)

Created:
Feb. 12, 2015, 3:01 p.m. by Wladimir Palant
Modified:
Feb. 13, 2015, 6:20 p.m.
Visibility:
Public.

Description

Issue 1992 - createNightlies.py incorrectly determines repository name if repository path ends with…

Patch Set 1 #

Total comments: 2

Patch Set 2 : Use os.path.normpath() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M sitescripts/extensions/utils.py View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6
Wladimir Palant
Feb. 12, 2015, 3:01 p.m. (2015-02-12 15:01:56 UTC) #1
Felix Dahlke
LGTM
Feb. 12, 2015, 3:10 p.m. (2015-02-12 15:10:03 UTC) #2
Sebastian Noack
http://codereview.adblockplus.org/6304204159188992/diff/5629499534213120/sitescripts/extensions/utils.py File sitescripts/extensions/utils.py (right): http://codereview.adblockplus.org/6304204159188992/diff/5629499534213120/sitescripts/extensions/utils.py#newcode221 sitescripts/extensions/utils.py:221: return os.path.basename(self.repository) or os.path.basename(os.path.dirname(self.repository)) How about using normpath? os.path.basename(os.path.normpath(self.repository)) ...
Feb. 13, 2015, 10:47 a.m. (2015-02-13 10:47:15 UTC) #3
Wladimir Palant
http://codereview.adblockplus.org/6304204159188992/diff/5629499534213120/sitescripts/extensions/utils.py File sitescripts/extensions/utils.py (right): http://codereview.adblockplus.org/6304204159188992/diff/5629499534213120/sitescripts/extensions/utils.py#newcode221 sitescripts/extensions/utils.py:221: return os.path.basename(self.repository) or os.path.basename(os.path.dirname(self.repository)) On 2015/02/13 10:47:15, Sebastian Noack ...
Feb. 13, 2015, 4:45 p.m. (2015-02-13 16:45:10 UTC) #4
Felix Dahlke
LGTMer
Feb. 13, 2015, 5:15 p.m. (2015-02-13 17:15:53 UTC) #5
Sebastian Noack
Feb. 13, 2015, 5:17 p.m. (2015-02-13 17:17:17 UTC) #6
LGTM

Powered by Google App Engine
This is Rietveld