mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-06 09:20:57 +01:00
strip hg root value, news
This commit is contained in:
parent
0aaf9b3052
commit
a01ff4c82f
2 changed files with 14 additions and 1 deletions
13
news/vc.rst
Normal file
13
news/vc.rst
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
**Added:** None
|
||||||
|
|
||||||
|
**Changed:** None
|
||||||
|
|
||||||
|
**Deprecated:** None
|
||||||
|
|
||||||
|
**Removed:** None
|
||||||
|
|
||||||
|
**Fixed:**
|
||||||
|
|
||||||
|
* git/hg won't run unless we locate the binary
|
||||||
|
|
||||||
|
**Security:** None
|
|
@ -69,7 +69,7 @@ def get_hg_branch(root=None):
|
||||||
# not in repo
|
# not in repo
|
||||||
return None
|
return None
|
||||||
else:
|
else:
|
||||||
root = xt.decode_bytes(root)
|
root = xt.decode_bytes(root).strip()
|
||||||
if env.get('VC_HG_SHOW_BRANCH'):
|
if env.get('VC_HG_SHOW_BRANCH'):
|
||||||
# get branch name
|
# get branch name
|
||||||
branch_path = os.path.sep.join([root, '.hg', 'branch'])
|
branch_path = os.path.sep.join([root, '.hg', 'branch'])
|
||||||
|
|
Loading…
Add table
Reference in a new issue