Changeset 10e6ab531de6…
Parent b4944cd04b48…
by Benjamin Pollack <benjamin@fogcreek.com>
Changes to 3 files · Browse files at 10e6ab531de6 Showing diff from parent b4944cd04b48 Diff from another changeset...
@@ -265,8 +265,8 @@ continue
# Append directory separator to avoid collisions
- if not fstandin.endswith('/'):
- fstandin += '/'
+ if not fstandin.endswith(os.sep):
+ fstandin += os.sep
# Prevalidate matching standin directories
if any(st for st in match._files if st.startswith(fstandin)):
@@ -834,6 +834,15 @@
getdata = getdatafn
write(f, 'x' in ff and 0755 or 0644, 'l' in ff, getdata)
+
+ if subrepos:
+ for subpath in ctx.substate:
+ sub = ctx.sub(subpath)
+ try:
+ sub.archive(repo.ui, archiver, prefix)
+ except TypeError:
+ sub.archive(archiver, prefix)
+
archiver.done()
# If a bfile is modified the change is not reflected in its standin until a commit.
|
@@ -107,12 +107,12 @@ r'^(((com[1-9]|lpt[1-9]|con|prn|aux)(\..*)?)|web\.config' +
r'|clock\$|app_data|app_code|app_browsers' +
r'|app_globalresources|app_localresources|app_themes' +
- r'|app_webreferences|bin)$', re.IGNORECASE)
+ r'|app_webreferences|bin|.*\.(cs|vb)html?)$', re.IGNORECASE)
p = path.split('?')
path = p[0]
query = '?' + p[1] if len(p) > 1 else ''
- return '/'.join('$' + part
- if reserved.match(part) or part.startswith('$')
+ return '/'.join('$' + part + '$'
+ if reserved.match(part) or part.startswith('$') or part.endswith('$')
else part
for part in path.split('/')) + query
|
|
@@ -1,55 +0,0 @@ - # Copyright (C) 2009-2010 Fog Creek Software. All rights reserved.
-#
-# This is a small extension for Mercurial (http://www.selenic.com/mercurial)
-# that discourages you from using the ``hg branch'' command.
-#
-# To enable the "nobranch" extension put these lines in your ~/.hgrc:
-# [extensions]
-# nobranch = /path/to/nobranch.py
-#
-# For help on the usage of "hg nobranch" use:
-# hg help nobranch
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-'''discourages using the branch command
-
-This extension discourages users from using hg branch by asking them
-to confirm that doing so is truly what they want to do.
-'''
-
-from mercurial import commands, extensions
-from mercurial.i18n import _
-
-warning = _("""
- Fog Creek recommends using Kiln branches instead of the
- named branch you are about to create. Read more at
- http://kiln.stackexchange.com/questions/127 .
-
- If you'd like to create a named branch anyway, use the
- --override option.
-
-""")
-
-def uisetup(ui):
- def reallybranch(orig, ui, repo, label=None, override=False, **opts):
- if not override and label:
- ui.warn(warning)
- else:
- return orig(ui, repo, label=label, **opts)
-
- entry = extensions.wrapcommand(commands.table, 'branch', reallybranch)
- entry[1].append(('', 'override', False,
- _('allow the creation of a named branch')))
|
Loading...