hg_backslash.diff

Fixes the backslash issue with mercurial. - Terkhen, 2010-09-08 14:56

Download (1001 Bytes)

View differences:

scripts/Makefile.def Tue Sep 07 21:51:39 2010 +0200
105 105
REPO_MODIFIED  := $(shell [ "`$(HG) id | cut -c13`" = "+" ] && echo "M" || echo "")
106 106
REPO_BRANCH    := $(shell $(HG) id -b | sed "s/default/$(DEFAULT_BRANCH_NAME)/")
107 107
REPO_TAGS      := $(shell $(HG) id -t | grep -v "tip")
108
REPO_FILES_CMD := $(HG) st -A | grep -v  "^I" | grep -v "^?" | grep -v "^R" | grep -v "^\!" | cut -d\  -f2
108
REPO_FILES_CMD := $(HG) --config "ui.slash=1" st -A | grep -v  "^I" | grep -v "^?" | grep -v "^R" | grep -v "^\!" | cut -d\  -f2
109 109
REPO_FILES     := $(shell $(REPO_FILES_CMD))
110 110
REPO_DIRS      := $(shell for i in $(REPO_FILES); do dirname $$i; done | sort | uniq)
111 111
REPO_TITLE     := $(REPO_NAME) $(shell [ -n "$(REPO_TAGS)" ] && echo $(REPO_TAGS)$(REPO_MODIFIED) || echo $(REPO_BRANCH)-r$(REPO_REVISION)$(REPO_MODIFIED))