equal
deleted
inserted
replaced
7 |
7 |
8 from i18n import _ |
8 from i18n import _ |
9 import util, error, osutil, revset, similar, encoding |
9 import util, error, osutil, revset, similar, encoding |
10 import match as matchmod |
10 import match as matchmod |
11 import os, errno, re, stat, sys, glob |
11 import os, errno, re, stat, sys, glob |
|
12 |
|
13 def nochangesfound(ui, secretlist=None): |
|
14 '''report no changes for push/pull''' |
|
15 if secretlist: |
|
16 ui.status(_("no changes found (ignored %d secret changesets)\n") |
|
17 % len(secretlist)) |
|
18 else: |
|
19 ui.status(_("no changes found\n")) |
12 |
20 |
13 def checkfilename(f): |
21 def checkfilename(f): |
14 '''Check that the filename f is an acceptable filename for a tracked file''' |
22 '''Check that the filename f is an acceptable filename for a tracked file''' |
15 if '\r' in f or '\n' in f: |
23 if '\r' in f or '\n' in f: |
16 raise util.Abort(_("'\\n' and '\\r' disallowed in filenames: %r") % f) |
24 raise util.Abort(_("'\\n' and '\\r' disallowed in filenames: %r") % f) |