##// END OF EJS Templates
mq: fix qrefresh case sensitivity (issue3271)...
mq: fix qrefresh case sensitivity (issue3271) When calling qrefresh with filenames, the filenames were being treated as case-sensistive on case-insensitive file systems. So 'qrefresh foo' would not match file 'Foo', and it failed silently. This fix makes it work correctly on case-insensitive file systems. Previously the matching function was applied directly to the filenames. Now we apply the matching function through repo.status, which handles the case logic for us. A side effect of using repo.status is that if the qrefresh file doesn't exist, there is output stating it doesn't exist. Adds a test to an existing mq refresh case test.

File last commit:

r6365:1d3eb332 default
r17888:39b7052b stable
Show More
convert-repo
27 lines | 643 B | text/plain | TextLexer
Edouard Gomez
Add a wrapper script for convert extension
r4514 #!/usr/bin/env python
#
# Wrapper script around the convert.py hgext extension
# for foreign SCM conversion to mercurial format.
#
import sys
from mercurial import ui, fancyopts
from hgext import convert
# Options extracted from the cmdtable
func, options, help = convert.cmdtable['convert']
# An ui instance
u = ui.ui()
opts = {}
args = []
try:
Patrick Mezard
convertrepo: make it work with refactored convert extension
r6365 args = list(fancyopts.fancyopts(sys.argv[1:], options, opts))
args += [None]*(3 - len(args))
src, dest, revmapfile = args
except (fancyopts.getopt.GetoptError, ValueError), inst:
u.warn('Usage:\n%s\n' % help)
Edouard Gomez
Add a wrapper script for convert extension
r4514 sys.exit(-1)
Patrick Mezard
convertrepo: make it work with refactored convert extension
r6365 convert.convert(u, src, dest, revmapfile, **opts)