equal
deleted
inserted
replaced
24 if secretlist: |
24 if secretlist: |
25 ui.status(_("no changes found (ignored %d secret changesets)\n") |
25 ui.status(_("no changes found (ignored %d secret changesets)\n") |
26 % len(secretlist)) |
26 % len(secretlist)) |
27 else: |
27 else: |
28 ui.status(_("no changes found\n")) |
28 ui.status(_("no changes found\n")) |
|
29 |
|
30 def checknewlabel(repo, lbl): |
|
31 if lbl in ['tip', '.', 'null']: |
|
32 raise util.Abort(_("the name '%s' is reserved") % lbl) |
29 |
33 |
30 def checkfilename(f): |
34 def checkfilename(f): |
31 '''Check that the filename f is an acceptable filename for a tracked file''' |
35 '''Check that the filename f is an acceptable filename for a tracked file''' |
32 if '\r' in f or '\n' in f: |
36 if '\r' in f or '\n' in f: |
33 raise util.Abort(_("'\\n' and '\\r' disallowed in filenames: %r") % f) |
37 raise util.Abort(_("'\\n' and '\\r' disallowed in filenames: %r") % f) |