- Dec 11, 2017
-
-
Matt Harbison authored
# skip-blame because this was mechanically rewritten the following script. I ran it on both *.t and *.py, but none of the *.py changes were proper. All *.t ones appear to be, and they run without addition failures on both Windows and Linux. import argparse import os import re ap = argparse.ArgumentParser() ap.add_argument('path', nargs='+') opts = ap.parse_args() globre = re.compile(r'^(.*) \(glob\)(.*)$') for p in opts.path: tmp = p + '.tmp' with open(p, 'rb') as src, open(tmp, 'wb') as dst: for line in src: m = globre.match(line) if not m or '$LOCALIP' in line or '*' in line: dst.write(line) continue if '?' in line[:-3] or ('?' in line[:-3] and line[-3:] != '(?)'): dst.write(line) continue dst.write(m.group(1) + m.group(2) + '\n') os.unlink(p) os.rename(tmp, p)
-
- Aug 22, 2017
-
-
durin42 authored
-
- Jul 15, 2017
-
-
Boris Feld authored
Share extension now also share caches reads and writes. Not sharing caches results in costly caches recomputations which can takes up to minutes when using shares on large repositories. There are a couple of file in the '.hg/cache/' that depends of the current visibility. Visibility can be affected by the working copy location, something which is specific to each share. We ignores them for this series because they: * are the minority, * already have a good fallback to other precomputed caches, * are only affected when people use the experimental evolution feature.
-
- Jul 02, 2017
-
-
Katsunori FUJIWARA authored
Temporarily enabling largefiles causes these output lines, only if tests are executed with fsmonitor.
-
- Apr 12, 2017
-
-
Matt Harbison authored
This has been done for clone since e1dbe0b215ae, so it makes sense here for the same reasons.
-
- Apr 01, 2017
-
-
Matt Harbison authored
Without the quoting, MSYS will remove the '\' directory separators, and the repo can't be opened.
-
Matt Harbison authored
-
- Mar 02, 2017
-
-
Yuya Nishihara authored
-
Yuya Nishihara authored
This must be a typo and it seems correct to drop the requirement since the repo is no longer a shared repository.
-
- Feb 13, 2017
-
-
Dan Villiom Podlaski Christiansen authored
Storing a relative path the source repository is useful when exporting repositories over the network or when they're located on external drives where the mountpoint isn't always fixed. Currently, Mercurial interprets paths in `.hg/shared` relative to $PWD. I suspect this is very much unintentional, and you have to manually edit `.hg/shared` in order to trigger this behaviour. However, on the off chance that someone might rely on it, I added a new capability called 'relshared'. In addition, this makes earlier versions of Mercurial fail with a graceful error. I should note that I haven't tested this patch on Windows.
-
- Feb 20, 2017
-
-
Katsunori FUJIWARA authored
Before this patch, checking HG_PENDING in bookmarks.py might cause unintentional reading unrelated '.hg/bookmarks.pending' in, because it just examines existence of HG_PENDING environment variable. This patch uses txnutil.trypending() to check HG_PENDING strictly. This patch also changes share extension. Enabling share extension (+ bookmark sharing) makes bookmarks._getbkfile() receive repo to be shared (= "srcrepo"). On the other hand, HG_PENDING always refers current working repo (= "currepo"), and bookmarks.pending is written only into currepo. Therefore, we should try to read .hg/bookmarks.pending of currepo in at first. If it doesn't exist, we try to read .hg/bookmarks of srcrepo in. Even after this patch, an external hook spawned in currepo can't see pending changes in currepo via srcrepo, even though such changes become visible after closing transaction, because there is no easy and cheap way to know existence of pending changes in currepo via srcrepo. Please see https://www.mercurial-scm.org/wiki/SharedRepository, too. BTW, this patch may cause failure of bisect in the repository of Mercurial itself, if examination at bisecting assumes that an external hook can see all pending changes while nested transactions across repositories. This invisibility issue will be fixed by subsequent patch, which allows HG_PENDING to refer multiple repositories.
-
- Jun 08, 2015
-
-
Matt Mackall authored
-
Matt Mackall authored
$TESTDIR is added to the path, so this is superfluous. Also, inconsistent use of quotes means we might have broken on tests with paths containing spaces.
-
- Dec 13, 2014
-
-
Ryan McElroy authored
This patch adds the -B/--bookmarks option to the share command added by the share extension. All it does for now is create a marker, 'bookmarks.shared', that will be used by future code to implement the sharing functionality.
-
Ryan McElroy authored
This does not cause any behavioral change unless a 'bookmarks.shared' marker file exists. A future change will add UI to create this file when a repository is shared.
-
- Aug 06, 2014
-
-
Matt Mackall authored
-
- Sep 12, 2012
-
-
Patrick Mézard authored
-
- Jun 21, 2012
-
-
kiilerix authored
get-with-headers.py took the http GET parameter as a command line parameter that had to start with '/'. MSYS on windows will mangle such paths. Instead of applying a workaround everywhere (such as an extra '/') we let get-with-headers.py add the mandatory '/'. That is consistent with the url path handling in the Mercurial url class. A few tests sent 'GET ?cmd=...' which is invalid. They will now send 'GET /?cmd=...'. This will not enable any tests for being run on windows - only remove one reason they were disabled.
-
- Jun 10, 2012
-
-
kiilerix authored
Many tests didn't change back from subdirectories at the end of the tests ... and they don't have to. The missing 'cd ..' could always be added when another test case is added to the test file. This change do that tests (99.5%) consistently end up in $TESTDIR where they started, thus making it simpler to extend them or move them around.
-
- Nov 07, 2011
- Sep 15, 2011
-
-
Greg Ward authored
This is extremely handy for those occasional circumstances where you need to edit .hg/sharedpath manually, since modern Unix text editors make it surprisingly difficult to create a text file with no trailing newline.
-
- Aug 12, 2011
-
-
Simon Heimberg authored
-
- Oct 09, 2010
-
-
kiilerix authored
Many globs now just match $TESTTMP and is no longer needed.
-
- Sep 26, 2010
-
-
Matt Mackall authored
-
- Feb 14, 2010
-
-
Patrick Mezard authored
-
- Dec 16, 2009
-
-
kiilerix authored
-
- Dec 15, 2009
-
-
Brendan Cully authored
It was calculating it directly, which is redundant and caused it to break with shared repositories.
-
- Dec 13, 2009
-
-
Patrick Mezard authored
-
- Dec 01, 2009
-
-
Greg Ward authored
-