##// END OF EJS Templates
imported patch rev-help
Matt Mackall -
r5574:d4ec6d61 default
parent child Browse files
Show More
@@ -2273,7 +2273,10 b' def rename(ui, repo, *pats, **opts):'
2273 2273 del wlock
2274 2274
2275 2275 def revert(ui, repo, *pats, **opts):
2276 """revert files or dirs to their states as of some revision
2276 """restore individual files or dirs to an earlier state
2277
2278 (use update -r to check out earlier revisions, revert does not
2279 change the working dir parents)
2277 2280
2278 2281 With no revision specified, revert the named files or directories
2279 2282 to the contents they had in the parent of the working directory.
@@ -2282,12 +2285,9 b' def revert(ui, repo, *pats, **opts):'
2282 2285 working directory has two parents, you must explicitly specify the
2283 2286 revision to revert to.
2284 2287
2285 Modified files are saved with a .orig suffix before reverting.
2286 To disable these backups, use --no-backup.
2287
2288 2288 Using the -r option, revert the given files or directories to their
2289 2289 contents as of a specific revision. This can be helpful to "roll
2290 back" some or all of a change that should not have been committed.
2290 back" some or all of an earlier change.
2291 2291
2292 2292 Revert modifies the working directory. It does not commit any
2293 2293 changes, or change the parent of the working directory. If you
@@ -2301,6 +2301,9 b' def revert(ui, repo, *pats, **opts):'
2301 2301 If names are given, all files matching the names are reverted.
2302 2302
2303 2303 If no arguments are given, no files are reverted.
2304
2305 Modified files are saved with a .orig suffix before reverting.
2306 To disable these backups, use --no-backup.
2304 2307 """
2305 2308
2306 2309 if opts["date"]:
@@ -3085,7 +3088,7 b' table = {'
3085 3088 _('forcibly copy over an existing managed file')),
3086 3089 ] + walkopts + dryrunopts,
3087 3090 _('hg rename [OPTION]... SOURCE... DEST')),
3088 "^revert":
3091 "revert":
3089 3092 (revert,
3090 3093 [('a', 'all', None, _('revert all changes when no arguments given')),
3091 3094 ('d', 'date', '', _('tipmost revision matching date')),
General Comments 0
You need to be logged in to leave comments. Login now