##// END OF EJS Templates
archive: add support to specify hidden revs if directaccess config is set...
Pulkit Goyal -
r35553:ffd7b7cd default
parent child Browse files
Show More
@@ -467,7 +467,10 b' def archive(ui, repo, dest, **opts):'
467 '''
467 '''
468
468
469 opts = pycompat.byteskwargs(opts)
469 opts = pycompat.byteskwargs(opts)
470 ctx = scmutil.revsingle(repo, opts.get('rev'))
470 rev = opts.get('rev')
471 if rev:
472 repo = scmutil.unhidehashlikerevs(repo, [rev], 'nowarn')
473 ctx = scmutil.revsingle(repo, rev)
471 if not ctx:
474 if not ctx:
472 raise error.Abort(_('no working directory: please specify a revision'))
475 raise error.Abort(_('no working directory: please specify a revision'))
473 node = ctx.node()
476 node = ctx.node()
@@ -148,6 +148,11 b' Testing with hash'
148 $ hg status --change 28ad74
148 $ hg status --change 28ad74
149 A c
149 A c
150
150
151 `hg archive`
152
153 This should not throw error
154 $ hg archive -r 28ad74 foo
155
151 `hg update`
156 `hg update`
152
157
153 $ hg up 28ad74
158 $ hg up 28ad74
General Comments 0
You need to be logged in to leave comments. Login now