mercurial/commands.py
branchstable
changeset 13470 64ce09e93aff
parent 13454 afc84a879ac8
child 13472 6c70ca0b7e07
equal deleted inserted replaced
13469:07a6460f829a 13470:64ce09e93aff
  1364         if len(filelog):
  1364         if len(filelog):
  1365             r = filelog
  1365             r = filelog
  1366 
  1366 
  1367     format = opts.get('format', 0)
  1367     format = opts.get('format', 0)
  1368     if format not in (0, 1):
  1368     if format not in (0, 1):
  1369         raise util.Abort("unknown format %d" % format)
  1369         raise util.Abort(_("unknown format %d") % format)
  1370 
  1370 
  1371     if not r:
  1371     if not r:
  1372         r = revlog.revlog(util.opener(os.getcwd(), audit=False), file_)
  1372         r = revlog.revlog(util.opener(os.getcwd(), audit=False), file_)
  1373 
  1373 
  1374     if format == 0:
  1374     if format == 0:
  2277             rev = revs[0]
  2277             rev = revs[0]
  2278         if not rev:
  2278         if not rev:
  2279             rev = "tip"
  2279             rev = "tip"
  2280         if num or branch or tags:
  2280         if num or branch or tags:
  2281             raise util.Abort(
  2281             raise util.Abort(
  2282                 "can't query remote revision number, branch, or tags")
  2282                 _("can't query remote revision number, branch, or tags"))
  2283         output = [hexfunc(repo.lookup(rev))]
  2283         output = [hexfunc(repo.lookup(rev))]
  2284     elif not rev:
  2284     elif not rev:
  2285         ctx = repo[None]
  2285         ctx = repo[None]
  2286         parents = ctx.parents()
  2286         parents = ctx.parents()
  2287         changed = False
  2287         changed = False